Fonction SAP BAPI_CMS_SEC_CREATE - CREATE SECURITIES BAPI

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADMIN_DATA BAPICMS_STR_OMS_ORGUNIT_CRT u 66 X BAPI : Organizational Units and Bank area.
PROCESSEXTENSION BAPI_CMS_STR_CENTRAL-PROCESSEXTENSION C 1 X Flag: Execute Customer Extensions (BAdIs) in BAPI
SECURITIES_ACCOUNT BAPICMS_STR_SEC_ACC_CRT u 333 X BAPI : Structure for Securities account
TESTRUN BAPI_CMS_STR_CENTRAL-TESTRUN C 1 X Switch to Simulation Session for Write BAPIs

Paramètre Reférence Type Long. Description
SECURITIES_ACCOUNT_IDENTIFIER BAPICMS_STR_SEC_IDENTIFIER_GET-SEC_ACC_IDENTIFIER C 32 GET: Securities account identifier primary key
SECURITIES_ACCOUNT_KEYS BAPICMS_STR_SEC_ACC_SKY_CRT u 38 BAPI : Securities semantic key

Paramètre Reférence Long. Facultatif Description
BUSINESS_PARTNERS BAPICMS_STR_OMS_BP_CRT 64 X BAPI : Structure for Business Partner Link details
DOCUMENTS BAPICMS_STR_OMS_DOC_CRT 114 X BAPI : Structure for Document Service Link details
EXTENSIONIN BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
EXTENSIONOUT BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
NOTES BAPICMS_STR_OMS_NOTES_CRT 162 X BAPI : Structure for Notes created on Movables
POSITIONS BAPICMS_STR_SEC_ACC_POS_CRT 274 X BAPI : Structure for securities account position
RETURN BAPIRET2 548 X Return Parameter
SYSTEM_STATUS BAPICMS_STR_OMS_SYS_STAT_CRT 5 X System status

Functionality
Use this method to create a securities object.
You can use the import parameters to provide information for thesecurities object. You use tables to enter your data for the securitiesobject including data for the specific business of the securities objectaccount position, business partners, documents, and notes.
This method returns :
Semantic key of the Securities object (ID) and the Securities objecttype
A table of return codes

Description
Unique identification number assigned to a securities account.
This parameter passes the unique semantic identifier assigned to thenewly securities object. These are:
Securities ID
Securities Type
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
This parameter must be implemented to create a new securities object.Mandatory values to be passed are:
Administration organizational unit
Bank area
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
Use this parameter to specify specify whether the details specified bythe Customers in a Business Add-In of this method, must be retrieved.
You will find information on the meaning of the parameter in thedocumentation for the data element Execute Extension(s)(BAdI).

Value range
X = Yes: In general the planned customer extensions should be executed.
This parameter contains the data specific to securities object. Thefollowing values may be entered:
Securities account number
Description
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
If this parameter is set, the method will only be executed in the testrun. All checks are then carried out, without an entry being made in thedatabase.
This is used for write BAPIs to check the entries for the objectinstance in the database before actually creating the instance. Theobject instance is not actually created, merely simulated, and the datais not written to the database (updated).

Value range
' ' (no value)
No value means that the database is updated. This is the default settingand corresponds to the expectations of the calling program.
'X'
This value means that the BAPI is called in simulation mode and that nodata is written to the database.

Description
This table contains the values for the business partners assigned to theobjects. The mandatory values are:
Business partner identification
Business partner function
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
This table contains the values for the documents relevant to theobjects. The mandatory values are:
Document reference identification
Document type
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
You can use this parameter to transfer user-specific enhancments to aBAPI. The customer has to complete the EXTENSION structure and thesystem automatically continues processing it. If you have not definedany user-specific fields, then you can transfer a blank EXTENSIONINstructure.

Default

Further information
You can find more information in the BAPI programming guide in thechapter for enhancements to BAPIs.

Description
You can use this parameter to transfer user-specific enhancments to aBAPI. The customer has to complete the EXTENSION structure and thesystem automatically continues processing it. If you have not definedany user-specific fields, then you can transfer a blank EXTENSIONINstructure.

Default

Further information
You can find more information in the BAPI programming guide in thechapter for enhancements to BAPIs.

Description
This table contains the details of the notes created for the securitiesobject. These details are transfered only if you have checked the flagFLAG_NOTES while determining the scope for the import parameters.

Description
This parameter contains the common data of the securities objects.
For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

Description
This table contains all the return messages (including the errormessages for plausibility checks ) from the method call.
This parameter contains the details of the internal status of theobject.

Value range
The following system statuses are possible for securities objects :
Created
Active
Inactive
Legally active
Calculation relevant
Note : Only the following combinations of system statuses are allowed:
Created + Calculation relevant
Active + Calculation relevant
Inactive + Calculation relevant
Legally active + Calculation relevant
If you want to set the system status to Calculation relevant, then inthe Implementation Guide (IMG) Customizing, you must explicity set thestatus to a combination of a system status with calculation relevant.
Note : Internal plausibility checks are defined to validate the inputdata before a system status is set for a securities object.

Default
By default, all new securities objects assume the status Created.