Fonction SAP CBRC_OR_BD_DATA_CHECK_MANY - Validate Representative Data

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_FLG_BP_CHECK ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Check Business Partner
I_FLG_IMPORTER_CHECK ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Check Importer
I_FLG_MATNR_CHECK ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Check Material
I_FLG_OR_CHECK ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Check Only Representative
I_FLG_REG_CHECK ESP1_BOOLEAN 0 ESP1_TRUE X Indicator: Check Regulatory List
I_OR_DATA_TAB CCRCTT_OR_BD_APIDATA h 390 X Table of Existing Entries
I_REPID SYST-REPID C 40 X 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

Functionality
This function module executes the standard checks with regard to onlyrepresentative roles and importer data. These include:

  • Check of the validity of the specified regulation

  • Check of the validity of the specified material

  • Check if a regulation, a business partner, an only representative, and
  • the corresponding validities are entered for each data record (requiredentry field check for only representative roles)
    • Check if a regulation, a business partner, an importer, and the
    • corresponding validities are entered for each data record (requiredentry field check for importer data)
      • Check if only one only representative is entered for each data record
      • (only the entry of an internal or external only representative ispossible)
        • Check of the validity of the specified business partner

        • Check of the validity of the specified only representative

        • Check of the validity of the specified importer

        • Check if the validities of the corresponding only representative roles
        • overlap (check for uniqueness: one business partner may utilize only oneonly representative per material)

          Notes
          In the standard system, the function module is called from the BAdImethod Validation ofthe Only Representative Data. This is called after you have enteredeither only representative roles in the transactionsOnly Representative: External Business Partners orOnly Representative: Internal Business Partners, orimporter data in the transaction Importer.

1373210Specify only representatives for ext. & int. bus. partner