/SAPAPO/OM_CUS_SCHD_GET_BY_PEG - Get Sales Order Schedule Lines for Pegging Areas (UIDs) and Time Interval

PERFORM Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Functionality

The sales order schedule lines for the pegging areas defined in IT_PEGAREA and the transferred timeinterval [IV_START_TIME, IV_END_TIME[ are determined and returned in T_SCHEDULE. The schedule lines for each pegging area are sorted in ascending order.

An import parameter IV_ORDER_TYPE is used to set whether schedule lines should be read from sales ordersor planning orders. The values permitted for IV_ORDER_TYPE are the constants gc_customer_order (salesorder) and gc_forecast_order (planning order) defined in the include /SAPAPO/CONSTANTS. If other values are sent to IV_ORDER_TYPE, the function module generates the exception INVALID_ORDER_TYPE.

In ET_RC, individual error codes are returned for those pegging areas

where errors were determined in processing. (See below: HINTS).

Example

Notes

Return codes to be queried (see table ET_RC):

  • om_invalid_pegarea: Invalid peg area

Further information


Parameters

ET_ORDKEYS
ET_ORDMAPS
ET_POSITIONS
ET_RC
ET_SCHEDULE
IS_GEN_PARAMS
IT_PEGAREA
IV_END_TIME
IV_GET_ORDKEYS
IV_GET_ORDMAPS
IV_GET_POSITIONS
IV_OM_ORDER_TYPE
IV_SIMSESSION
IV_START_TIME

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_CUSTOMER

TXBHW - Original Tax Base Amount in Local Currency   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.


Length: 2821 Date: 20120525 Time: 041922     triton ( 64 ms )