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:
Immediate requirement S
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.
You can link these three types of schedule line with further conditions. However, use the indicators listed above if possible.
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
i_ekeh-etart = 'R'. "Backlog
i_ekeh-etart = ' '. "Forecast
loop at xekeh where updkz ne 'D'.
if xekeh-eindt le sy-datum.
if xekeh-ameng eq space.
xekeh-etart = 'S'. "Immediate requirement
xekeh-etart = 'R'. "Backlog
- EXIT_SAPLEINL_001: Cust. Enh. f. Forecast Del. Scheds: Define Sched. Line Type (e.g. Backlog)