/SAPAPO/OM_PUR_SCHD_GET_BY_PEG - Get Purchase Order Schedule Lines for Pegging Areas (UIDs) and Interval

BAL_S_LOG - Application Log: Log header data   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Functionality

The purchase order delivery schedule lines are found for the pegging area defined in IT_PEGAREA andthe specified time interval [IV_START_TIME, IV_END_TIME[, and then returned in ET_SCHEDULE. The schedule lines are sorted in ascending chronological order for each pegging area.

Import parameter IV_ORDER_TYPE is used to define whether schedule lines are read by purchase requisitionsor purchase orders. The values permitted for IV_ORDER_TYPE are the constants defined in /SAPAPO/CONSTANTS:gc_requisition (purchase requisition) and gc_purchase_order (purchase order). If any other values are specified in IV_ORDER_TYPE, the function module will throw the exception INVALID_ORDER_TYPE.

ET_RC contains return codes for pegging areas with processing errors (see below).

Example

Notes

Return codes (see table ET_RC):

  • om_invalid_pegarea: Invalid pegging area

Further information


Parameters

ET_ORDKEYS
ET_ORDMAPS
ET_RC
ET_SCHEDULE
IS_GEN_PARAMS
IT_PEGAREA
IV_END_TIME
IV_SIMSESSION
IV_START_TIME

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_PURCHASE

General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.


Length: 2212 Date: 20120525 Time: 050317     triton ( 30 ms )