Ansicht
Dokumentation

/SAPAPO/OM_ATP_PAC_CHECK - Run Availability Check in liveCache

/SAPAPO/OM_ATP_PAC_CHECK - Run Availability Check in liveCache

TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is used to call the ATP product availability check. The runtime behaviour of this availability check is optimized and only depends logarithmically on the amount of data in the check.

The function module requires the following import data:

  • IS_EXCLUDE_EXPORTS:,,Structure for selecting the return tables
  • IS_CHECKPAR: Availability check paramaters
  • IT_SLDISP: Table with separately planned storage locations
  • IT_CATDAT: Table of the categories that are to participate in the check (scope of check)
  • IT_CORR_ISS: Table with correction data records for issues
  • IT_CORR_RCP: Table with correction data records for receipts
  • IT_CORR_STC: Table with correction data records for stocks
  • IT_REQ: Table with requirement header information
  • IT_REQITM: Table with requirement coverage requests

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

Data will only be read if the caller has specified an export table for it. The performance of this function module can be improved if you choose not to fill all export tables.

If you want to decide dynamically which export tables to fill, the caller needs to specify all export tables. The caller can then use import structure IS_EXCLUDE_EXPORTS to decide dynamically - in other words, during runtime - which export tables NOT to fill. For each non-relevant export table, the boolean flag has to be set to gc_true ('X').

The function module has the following export data:

  • ET_RES: Table of the overall results of the check
  • ET_LRES: Table of the results of the check at plant level
  • ET_SRES: Table of the results of the check at sublocation level
  • ET_VRES: Table of the results of the check at batch level
  • ET_SVRES: Table of the results of the check at sublocation level and batch level
  • ET_CRES: Table of the results of the check at characteristics level
  • ET_SCRES: Table of the results of the check at sublocation level and characteristics level
  • ET_VCRES: Table of the results of the check at batch level and characteristics level
  • ET_SVCRES: Table of the results of the check at sublocation level, batch level and characteristics level
  • ET_REQITMRES: Table of the results of the check for a requirements schedule line
  • ET_ATPSUM: Table of ATP totals
  • ET_ALERT: Table of undercoverage alerts
  • EV_FILENAME: Name of the ATP log file
  • ET_RC: Table of the COM routine return codes

A file name is only returned if TRUE has been set for the LOGGING flag in structure IS_CHECKPAR.

Example

Notes

Further information





Parameters

ET_ALERT
ET_ATPSUM
ET_CRES
ET_DISP
ET_LRES
ET_RC
ET_REQITMRES
ET_RES
ET_SCRES
ET_SRES
ET_SVCRES
ET_SVRES
ET_VCRES
ET_VRES
EV_FILENAME
IS_CHECKPAR
IS_EXCLUDE_EXPORTS
IS_GEN_PARAMS
IT_CATDAT
IT_CORR_ISS
IT_CORR_RCP
IT_CORR_STC
IT_REQ
IT_REQITM
IT_SLDISP
IV_CONNAME
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED
SYS_GUID_ERROR

Function Group

APO/SAPLOM_ATP

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 4172 Date: 20240426 Time: 211653     sap01-206 ( 59 ms )