Fonction SAP CBRC_OR_CUSTOMER_LIST_SAVE - Save Only Representative Customer List in EHS Property Tree

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_API_HEADER_EXIST_TAB ESPRH_APIRH_TAB_TYPE 0 Existing Specification Data
I_API_PROP_DATA_EXIST_TAB ESPRH_APIPR_TAB_TYPE 0 Existing Data from Value Assignment Instance
I_API_PROP_EXIST_TAB ESPRH_APIVA_TAB_TYPE 0 Existing Value Assignment Instances
I_API_PROP_FTEXT_EXIST_TAB ESPRH_APIDF_TAB_TYPE 0 Existing User-Defined Texts for Value Assignment
I_API_PROP_HEADER_EXIST_TAB ESPRH_APIVH_TAB_TYPE 0 Existing Header Records for Value Assignment
I_API_PROP_USAGE_EXIST_TAB ESPRH_APIDU_TAB_TYPE 0 Existing Data for Requested Use
I_CSV_SEPERATOR CHAR1 C 1 ',' X Separator for CSV File
I_CUSTOMER_LIST_TAB CCRCTT_CU_LIST h 760 Read Data Related to Customer List
I_DATA_CARRIER DRAW-DTTRG C 10 'SAP-SYSTEM' X Name of Data Carrier
I_DVS_APPL DAPPL C 3 Application
I_DVS_DOCTYPE DRAW-DOKAR C 3 Document Type
I_ENCODING ABAP_ENCOD C 20 'windows-1252' X Identifier for Character Format (UTF-8, UCS-2, ...)
I_TABLE_NAME CCRCE_TABNAME C 30 Table or Structure
I_TCG81 TCG81 u 548 EHS: Regulatory List
I_TEXTCAT ESETEXTCAT C 10 User-Defined Text Type

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

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_API_HEADER_UPD_TAB ESPRH_APIRH_TAB_TYPE 0
X_API_PROP_DATA_UPD_TAB ESPRH_APIPR_TAB_TYPE 0
X_API_PROP_FTEXT_UPD_TAB ESPRH_APIDF_TAB_TYPE 0
X_API_PROP_HEADER_UPD_TAB ESPRH_APIVH_TAB_TYPE 0
X_API_PROP_UPD_TAB ESPRH_APIVA_TAB_TYPE 0
X_API_SUB_NEW_TAB ESPRH_API_SUB_TAB_TYPE 0

Functionality
This function module converts the customer list to a CSV(comma-separated values) file and saves it as a document in the documentmanagement system. The document is linked as a free text to the valueassignment instance of the substance using the following fields:

  • Regulatory list

  • Company code

  • Internal/external only representative

  • Year

  • Period
  • Notes
    The customer list is always created at company code level. If you aretracking substance quantities for more than one plant in a company code,the customer list for each value assignment instance is linked to thatof the company code.

    Further information
    If the SVT_CLASS_PRAEFIX parameterhas been entered in the Customizing activitySpecify Environment Parameters, thecorresponding customer-specific classes and characteristics are used forfiltering.