Fonction SAP CBRC_CU_LIST_DATA_READ - Read Customer List from Database

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLG_CONDENSE_TRACK_SUBST ESEBOOLE C 1 FALSE X Indicator: Summarize Data for Each Tracked Substance
I_FLG_READ_CUSTOMER_ADR ESEBOOLE C 1 FALSE X Indicator: Read Customer Address Data
I_RESTRICTION_TAB EHSB_TT_RCGSTDRECN h 20 X Restrictions Table
I_RFCDEST RFCDEST C 32 'NONE' X Logical Destination (Specified when Calling Function)
I_SELOPT_TAB CCRCTT_SELECT h 123 X Selection Conditions

Paramètre Reférence Type Long. Description
E_CUPOS_TAB CCRCTT_CUPOS h 43 Customer List Item Data from Table CCRCT_CUPOS
E_CUSTOMER_LIST_TAB CCRCTT_CU_LIST h 760 Customer List
E_CU_TAB CCRCTT_CU_LIST_HEADER h 752 Customer List Header Data from Table CCRCT_CU
E_ERROR_TAB CCRCTT_MSG h 642 Message Table Application Log
E_FLG_ERROR ESEBOOLE C 1 Error Indicator

Exception Description
INTERNAL_ERROR Internal Error
NO_RECORD_FOUND No Data Records Found

Functionality
This function module reads the customer list entries from the database.
Enter the selection criteria for each field in the importing parameterI_SELOPT_TAB. Do not specify any selection criteria if you want toretrieve all of the data records.
If you want only specific data records to be read, you can specify theserecords in the importing parameter I_RESTRICTION_TAB.
The header records of the customer list are returned in the exportingparameter E_CU_TAB. The customer records are returned in the exportingparameter E_CUPOS_TAB.
If the importing parameter I_FLG_CONDENSE_TRACK_SUBST contains the value'X' (True), the data read is summarized on the basis of the trackedsubstance, that is, the hit list is reduced. The MATNR (material number)and SUBID (specification) fields are cleared at the same time.
If the importing parameter I_FLG_READ_CUSTOMER_ADR contains the value'X' (True), the address data for each customer is returned in theexporting parameter E_CUSTOMER_LIST_TAB.
If the exporting parameter E_CUSTOMER_LIST_TAB is requested, thefunction module returns a nested table in which each customer record isassigned to a header record.
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.