Fonction SAP CBRC_OR_BD_DATA_DELETE - Delete 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_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 Table Type Application Log
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 delete only representative data.
Assign the data records to be deleted to the function module via thechanging parameter X_OR_BD_DATA_TAB.
To delete 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 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' if alocking error or other error occurred while the data was being deletedfrom the database. Corresponding error messages are written to theexporting parameter E_ERROR_TAB.

Example