User Exits: Materials Mgmt. (Purchasing)
The enhancement MEETA001 comprises a function module that is called in the generation of forecast delivery schedule releases. This enhancement allows you to define the schedule line type for each of the individual schedule lines of a release. The following types of schedule line are predefined in the SAP System:
Type of schedule line: Indicator: Backlog R Immediate requirement S Forecast '_' Backlog (R) means that the schedule line has a delivery date that lies in the past.
Immediate requirement (S) means that the schedule line has the delivery date 'today'. Forecast ('_') means that the schedule line has a delivery date in the future. SAP recommendation:
You can link these three types of schedule line with further conditions. However, use the indicators listed above if possible. Example: The date of the immediate requirement is 'today' or in the past and the applicable condition is that the schedule lines have not yet been
transmitted to the vendor. If the schedule lines have already been transmitted, there is a backlog. The forecast contains all schedule lines that have a delivery date in the future. loop at i_ekeh. if i_ekeh-eindt le sy-datum. if i_ekeh-ameng eq space.
i_ekeh-etart = 'S'. "Immediate requirement else. i_ekeh-etart = 'R'. "Backlog endif. else. i_ekeh-etart = ' '. "Forecast endif. modify i_ekeh. endloop.
loop at xekeh where updkz ne 'D'. if xekeh-eindt le sy-datum. if xekeh-ameng eq space. xekeh-etart = 'S'. "Immediate requirement else. xekeh-etart = 'R'. "Backlog endif. else.
Function/Program: - EXIT_SAPLEINL_001: Cust. Enh. f. Forecast Del. Scheds: Define Sched. Line Type (e.g. Backlog)
|