Ansicht
Dokumentation

/SAPAPO/OM_CHECK_ATP - Run Availability Check in liveCache

/SAPAPO/OM_CHECK_ATP - Run Availability Check in liveCache

rdisp/max_wprun_time - Maximum work process run time   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to call the ATP product availability check and display the ATP availability situation.

The function module requires the following import data:

  • IM_PEGID: GUID of the pegging area for which the check is performed
  • IM_CATDATX: Table of the categories that are to participate in the check (scope of check)
  • IM_CHKPAR: Availability check parameters
  • IM_CONNAME: Name of the current liveCache connection
  • IM_TRGUID: GUID of the current transaction
  • IM_CORRISSX: Table with correction data records for issues
  • IM_CORRRCPX: Table with correction data records for receipts
  • IM_CORRSTCX: Table with correction data records for stocks
  • IM_LCREQITMX: Table with requirement header information
  • IM_LCREQITMX: Table with requirement coverage requests
  • IM_SLDISPX: Table with separately planned storage locations
  • IM_SWITCHX: Table with additional switches
  • IM_TRACEFLG: Switch for writing the ATP log files

If the function module is called up to display the availability situation (parameter DISPFLG in the parameters) , an empty requirement must be specified.

The function module has the following export data:

  • EX_LCRESX: Table of the overall results of the check
  • EX_LCLRESX: Table of the results of the check at plant level
  • EX_LCSRESX: Table of the results of the check at sublocation level
  • EX_LCVRESX: Table of the results of the check at batch level
  • EX_LCSVRESX: Table of the results of the check at sublocation level and batch level
  • EX_LCCRESX: Table of the results of the check at characteristics level
  • EX_LCSCRESX: Table of the results of the check at sublocation level and characteristics level
  • EX_LCVCRESX: Table of the results of the check at batch level and characteristics level
  • EX_LCSVCRESX: Table of the results of the check at sublocation level, batch level and characteristics level
  • EX_LCREQITMRESX: Table of the results of the check for a requirements schedule line
  • EX_LCDISPX: Table of the display data
  • EX_ATPSUMX: Table of ATP totals
  • EX_ALERTX: Table of undercoverage alerts
  • EX_ATPRC: ATP return code
  • EX_EWCODE: Return code of the COM routine
  • EX_FILENAME: Name of the ATP log file
  • EV_RC: Return code of the COM routine

A file name is returned only if IM_TRACEFLG has the value TRUE.

Example

Notes

Further information





Parameters

EV_RC
EX_ALERTX
EX_ATPRC
EX_ATPSUMX
EX_EWCODE
EX_FILENAME
EX_LCCRESX
EX_LCDISPX
EX_LCLRESX
EX_LCREQITMRESX
EX_LCRESX
EX_LCSCRESX
EX_LCSRESX
EX_LCSVCRESX
EX_LCSVRESX
EX_LCVCRESX
EX_LCVRESX
IM_CATDATX
IM_CHKPAR
IM_CONNAME
IM_CORRISSX
IM_CORRRCPX
IM_CORRSTCX
IM_LCREQITMX
IM_LCREQX
IM_PEGID
IM_SLDISPX
IM_SWITCHX
IM_TRACEFLG
IM_TRGUID

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED
SYS_GUID_ERROR

Function Group

APO/SAPLOM_ATP

PERFORM Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 4145 Date: 20240426 Time: 225344     sap01-206 ( 76 ms )