Fonction SAP CBRC_PUR_DATA_SEP_OR - Check: Import to EU (Purchase Order) and Only Representative Role

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_EBAN_WA EBAN u 980 X Purchase Requisition
I_EKET_WA EKET u 456 X Sch. Agmt Sched. Lines
I_EKKO_WA EKKO u 765 X Purchasing Document Header
I_EKPO_WA EKPO u 1560 X Purchasing Document Item
I_FLG_NO_EU ESEBOOLE C 1 SPACE X Obsolete: Indicator: Do not Check for Import to EU ('X' - no Check)
I_FLG_RESOLVE ESEBOOLE C 1 TRUE X Indicator: Break Down Regulatory List into Subordinate Lists
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

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 Table Type for TCG81

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_PUPL_WA CCRCT_PUPL u 216 Current Record

Functionality
This function module determines the country of origin or recipientcountry by calling the standard function moduleCBRC_PUR_DATA_SEP_BY_VA and checkswhether there is an import to the validity area of the regulatory listin the current logistics document (purchase order or purchaserequisition). An import to the validity area exists when the recipientcountry of the document is in the validity area and the country oforigin is outside it.
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.
INCLUDE CBRC_IMPORTER_RELEVANCE OBJECT DOKU ID TX
Furthermore, this function module checks whether a material-specific ora material-independent only representative is assigned to thecorresponding supplier. If an only representative exists that wasmaintained via transaction Only Representative: ExternalBusiness Partners or Only Representative: InternalBusiness Partners, the change variable X_PUPL_WA is initialized. As aresult, the corresponding quantity is not tracked.

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