Fonction SAP CBRC_OR_BD_DATA_CHECK_ENH - Check Only Representative Roles

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ACTYPE RCGDIALCTR-ACTYPE C 1 X Activity Type in the Transaction
I_OR_DATA_TAB CCRCTT_OR_BD_APIDATA h 390 X Table of Existing Entries
I_REPID SYST-REPID C 40 Name of Calling Program
I_TCODE SYST-TCODE C 20 Current Transaction Code
I_UCOMM SYST-UCOMM C 70 X Function Code That Triggered PAI

Paramètre Reférence Type Long. Description
E_ERROR_TAB EHSB_TT_RCGEXTERROR h 608 EHS: Table Type RCGEXTERROR (Extended Error Table)
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_OR_MOD_TAB CCRCTT_OR_BD_APIDATA h 390 Table of Changed Entries

Exception Description
INTERNAL_ERROR Internal error
PARAMETER_ERROR Parameter missing

Functionality
This function module executes the extended data check with regard toonly representative roles. This check corresponds to the specifiedregulation in each case. In particular, the function module checkswhether a component contained in a material (as a rule, pure or listedsubstances) already has a different only representative role assigned.For this, the components of the relevant material must be determined.The functions modules specified in the Customizing activitySpecify Scenarios forSubstance Determination andComponent Explosion are used to determinethe components. If an RFC destination for the the environment parameterSVT_EHS_RFCDEST is specified in theCustomizing activity Specify Environment Parameters, theexplosion is remote. After the components are determined, the systemchecks whether each component already exists in different relevant ma
terials with an only representative assignment. If this is the case, theexport parameter E_ERROR_TAB is filled with an error message. Thecorresponding data record does not contain an error indicator.
The following constellations are not permitted and cause an errormessage:
External Business Partner ,,Material,,OnlyRepresentative
,, Valid From,,Valid To
Supplier A,,Mat 1,,OR 1,,2008,,2009
Supplier A,,Mat 1,,OR 2,,2008,,2009
External Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Supplier A,,Mat 1,,OR 2,,2008,,2009
Supplier A,, - ,,OR 2,,2008,,2009
Internal Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Company Code A,,Mat 1,,OR 1,,2008,,2009
Company Code A,,Mat 1,,OR 2,,2008,,2009
Internal Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Company Code A,, - ,,OR 1,,2008,,2009
Company Code A ,, - ,,OR 2,,2008,,2009
Pure or listed substance S1 is contained in Mat 1 and in Mat 2:
Internal Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Company Code A,,Mat 1,,OR 1,,2008,,2009
Company Code A,,Mat 2,,OR 2,,2008,,2009
Pure or listed substance S1 is contained in Mat 1 and in Mat 2:
Internal Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Company Code A,,Mat 1,,OR 1,,2008,,2009
Company Code A,, - ,,OR 2,,2008,,2009
The following constellations are permitted, but cause an informationmessage:
RESET N1
Pure or listed substance S1 is contained in Mat 1 and in Mat 2:
External Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Supplier A,,Mat 1,,OR 1,,2008,,2009
Supplier A,,Mat 2,,OR 2,,2008,,2009
Pure or listed substance S1 is contained in Mat 1 and in Mat 2:
External Business Partner,,Material,,OnlyRepresentative,,Valid From,,Valid To
Supplier A,,Mat 1,,OR 1,,2008,,2009
Supplier A,, - ,,OR 2,,2008,,2009

Notes
In the standard system, the function module is called from the BAdImethod Validation ofthe Only Representative Data. In the standard implementation, the fu
nction module is only called when the BAdI method is called from theprogram Validate the Only RepresentativeBasis Data or the function Extended Data Check (Ctrl+F2) isexecuted in the transactions Only Representative:External Business Partners or Only Representative:Internal Business Partners.