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. |