Fonction SAP CBRC_CU_LIST_DATA_SAVE_TO_DB - Save Customer List in Database

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_CUSTOMER_LIST_TAB CCRCTT_CU_LIST h 760 X Customer List
I_FLG_COMMIT ESEBOOLE C 1 FALSE X Indicator: Perform Commit
I_FLG_SAVE_BUFFER ESEBOOLE C 1 TRUE X Indicator: Save Buffer Contents

Paramètre Reférence Type Long. Description
E_ERROR_TAB CCRCTT_MSG h 642 Message Table Application Log
E_FLG_ERROR ESEBOOLE C 1 Error Indicator

Exception Description
COMMIT_ERROR Error During COMMIT WORK
INTERNAL_ERROR Internal Error

Functionality
This function module saves the content of the specified customer list orcustomer list buffer to the database.
The function module writes the data to the database tables

  • CCRCT_CU: Customer List # Header Data

  • CCRCT_CUPOS: Customer List # Item Data

  • If the import parameter I_FLG_SAVE_BUFFER contains the value X(TRUE), the content of the customer list buffer is written to thedatabase.
    If the import parameter I_FLG_COMMIT contains the value X (TRUE),a COMMIT WORK or ROLLBACK WORK is executed if an error occurs. If thevalue is ' ' (FALSE), the COMMIT WORK or ROLLBACK WORK is left to thecaller.
    Specify the data to be written to the database in the import parameterI_CUSTOMER_LIST_TAB.
    The exporting parameter E_FLG_ERROR is filled with the value X(True) if an error occurred during processing.
    The exporting parameter E_ERROR_TAB contains all of the messages thatoccurred while the function module was being processed.