Fonction SAP CBRC_OR_BD_DATA_MODIFY - Create/Change Representative Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLG_COMMIT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Execute Commit
I_FLG_DATA_CHECK ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Perform Checks
I_FLG_REC_LOCK ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Single Data Record Lock

Paramètre Reférence Type Long. Description
E_ERROR_TAB EHSB_TT_RCGEXTERROR h 608 EHS: Table Type RCGEXTERROR (Extended Error Table)
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Indicator: Lock Error

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_OR_BD_DATA_TAB CCRCTT_OR_BD_APIDATA h 390 Table Type for CCRCS_OR_BD_DATA_IOT

Exception Description
COMMIT_ERROR Error During Commit
INTERNAL_ERROR Internal error

Functionality
You can use this function module to create or change only representativedata and importer data.
Assign the data records to be created or changed to the function modulevia the changing parameter X_OR_BD_DATA_TAB.
To change the data, this function module sets a lock on the tableMaterial Business Partner Only Representative Assignment(CCRCT_OR). If a single data record lock is required, you can set thevalue 'X' for the importing parameter I_FLG_REC_LOCK.
If you want the data to be checked, set the value 'X' for the importingparameter I_FLG_DATA_CHECK. For more information about checking data,see the BAdI method Validations of Only Representative Data.
If you want a database commit to be executed, set the value 'X' for theimporting parameter I_FLG_COMMIT. If an error occurs, the exceptionCOMMIT_ERROR is triggered.
The exporting parameter E_FLG_LOCKFAIL is filled with the value 'X' whena locking error occurs.
The exporting parameter E_FLG_ERROR is filled with the value 'X' when alocking error occurs, a check error occurs, or errors occur when data iswritten to the database. Corresponding error messages are written to theexporting parameter E_ERROR_TAB.