Fonction SAP CBRC_SO_DATA_SEP_OR - Check: Export to Validity Area and Assigned Only Representative Role

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLG_IMPORT ESEBOOLE C 1 TRUE X Obsolete: Indicator: Import to Validity Area
I_FLG_RESOLVE ESEBOOLE C 1 TRUE Indicator: Break Down Regulatory List into Subordinate Lists
I_LIKP_WA LIKP u 1192 X SD Document: Delivery Header Data
I_LIPS_WA LIPS u 1776 X SD Document: Delivery: Item Data
I_MKPF_WA MKPF u 290 X Header: Material Document
I_MSEG_WA MSEG u 1156 X Document Segment: Material
I_REG ESESLSTID C 10 Regulatory List
I_SCEN CCRCE_SCEN C 10 Scenario
I_VALFR SYST-DATUM D 8 X Start Date of Current Tracking Period
I_VALTO SYST-DATUM D 8 X End Date of Current Tracking Period
I_VBAK_WA VBAK u 888 X Sales Document: Header Data
I_VBAP_WA VBAP u 1552 X Sales Document: Item Data
I_VBEP_TAB CCRCTT_VBEP h 344 X Sales Document: Schedule Line Data
I_VBPA_TAB CCRCTT_VBPA h 178 X Sales Document: Partner

Paramètre Reférence Type Long. Description
E_ERROR_TAB CCRCTT_MSG h 642 Message Table for Application Log
E_FLG_ERROR ESEBOOLE C 1 Error Indicator
E_REG_TAB CCRCTT_TCG81 h 548 Relevant Regulatory Lists

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_SOPL_WA CCRCT_SOPL u 232 Current Record

Functionality
This function module determines the country of origin and recipientcountry by calling the standard function moduleCBRC_SO_DATA_SEP_BY_VA and checkswhether there is an import to the validity area of the regulatory listin the current logistics document (sales order or delivery). An importto the validity area exists when the recipient country of the documentis in the validity area but the country of origin is not.
When this function module is used in a scenario for data separation,only logistics documents for which an import to the validity area of theregulatory list exists are relevant for the regulatory list in thisscenario. Other documents are not checked or tracked.
Furthermore, this function module checks whether an only representativerole exists for the relevant company code. For this, the company code isdetermined for the sales organization. The function module then checkswhether a material-specific or a material-independent onlyrepresentative (that is maintained via the transactionsOnly Representative: External Business Partners orOnly Representative: Internal Business Partners) isassigned to this company code. If this is the case, the onlyrepresentative is written to the relevant data record (changing variableX_SOPL_WA).

Example

Notes
The module can be customized for each scenario type in theData Separation field in the Customizingactivity Specify Scenarios.

1373210Specify only representatives for ext. & int. bus. partner
1411224SVT: Selection criteria and export indicator