Fonction SAP CBRC_OR_CUSTOMER_LIST_CREATE - Create a Customer List for Only Representative

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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_MATNR_SUB_TAB CCRCTT_FIELDS h 128 X Material Substance Table
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 X Scenario
I_SO_DEL_TAB CCRCTT_SO h 160 Deleted Confirmed Quantities (SO)
I_SO_TAB CCRCTT_SO h 160 Confirmed Quantities (SO)
I_VALFR SYST-DATUM D 8 X Valid-From Date
I_VALTO SYST-DATUM D 8 X Valid-To Date
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 Table Type Application Log
E_FLG_ERROR ESEBOOLE C 1 Error Indicator

Functionality
This function module is used to create a customer list for onlyrepresentatives. The function module can be called in the method DATA_FILL_CONFIRMED_SINGLE and while confirmed quantities arebeing processed individually in the monitoring tables for substancevolume monitoring.
The function module takes the following into account:

  • Only deliveries whose quantities have already been confirmed

  • Confirmed quantities that contain an internal or external only
  • representative.
    The created customer list contains the following logical keys:
    • REG: Regulatory list

    • BUKRS: Company code

    • TYEAR: Monitoring year

    • PERIOD: Monitoring period

    • MATNR: Material number

    • SUBID: Specification

    • TRACK_SUBST: Tracked substance

    • OR_INT: Internal only representative

    • OR_EXT: External only representative

    • These key fields are assigned the customer number (KUNNR) and addressnumber (ADRNR) of the goods recipient found. This function moduledetermines the customer number using the rules that you defined in theCustomizing activity Specify Rules for CountryDetermination for the sales scenario.
      If a delivery document has been canceled, this function module outputs awarning because a situation can exist whereby the customer receives adelivery only once in the monitoring year. In this case, the customer isnot removed from the customer list. The reason for this is thatconfirmed quantities are totaled during substance volume tracking. Inthis case, there is no link to the individual, relevant materialdocuments. As a result, substance volume tracking cannot checkautomatically whether a customer has received a delivery from adifferent, posted outbound delivery.
      This function holds the data in an internal buffer rather than writingit to the database directly. You can use the function moduleCBRC_CU_LIST_DATA_SAVE_TO_DB towrite the data from the buffer to the database tables.
      The exporting parameter E_FLG_ERROR is filled with the value X (True) ifan error occurred during processing.
      The exporting parameter E_ERROR_TAB contains all of the messages thatoccurred while the function module was being processed.