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.
|