/SAPAPO/OM_PEGID_GET_ORDERS - Uses Pegging Area and Category to Get Data for Orders
BAL Application Log Documentation PERFORM Short ReferenceThis documentation is copyright by SAP AG.
Functionality
******* This function module has been obsolete since APO 3.0 SP19 and should no longer be used.
******* Instead, use /SAPAPO/OM_PEG_CAT_GET_ORDERS.
This function module selects all the orders in the LiveCache that have nodes of a certain type in thespecified pegging areas. You can restrict the selection further by specifying a time interval, a planningsymbol, an ATP category, and characteristics. You can set a flag to control whether the I/O nodes ofthe pegging area have to be within the specified time interval, or whether it is sufficient that one of the activities of the order you want to select intersects the time interval.
The selection criteria are contained in the three import tables: IT_PEGCAT, IT_CHARACT_REQ_OUTNODE and IT_CHARACT_VAL_INPNODE, whereby the two tables containing the characteristics are optional.
-,,IT_PEGCAT: This table contains the following selection criteria:
-,,PEGID: Orders are selected that use or supply a material belonging to this pegging area.
-,,STARTTI, ENDTI: Time interval of the selection. The attribute ANY_ACT_IN_INTERVAL decides on the type of activity of this interval
-,,CATEGORY: Only I/O nodes of this category are used for the selection. If this attribute is set to initial, the category of the I/O nodes is not checked.
-,,IONODE_PEG_SEL: Specifies which I/O nodes are used for the selection, for example, only output nodesor only input nodes with a shortage. The individual characteristics for the domains (/SAPAPO/OM_IO_NODE_PEG_SEL) are described in /SAPAPO/CONSTANTS_OM.
-,,ANY_ACT_IN_INTERVAL: If this flag is set to GC_FALSE, all orders are selected that have I/O nodesof type IONODE_PEG_SEL in the specified pegging area and in the required time interval. If this flagis set to GC_TRUE, all orders are first retrieved that have I/O nodes of type IONODE_PEG_SEL in thepegging area and then it is checked whether any activity of an order intersects the specified time interval. This variant is relatively costly in runtime.
-,,IIT_CHARACT_REQ_OUTNODE: If you want to select output nodes according to their characteristics, here you can specify characteristic criteria for finding output nodes.
-,,IT_CHARACT_VAL_INPNODE: Like the previous parameter, this one can be used to select input nodes according to their characteristics.
The meaning of the individual export data is described in detail in function module /SAPAPO/OM_ORDER_CHANGE. The export table ET_ALERTS provides all the alerts for the respective orders.
Error codes to be queried (table ET_RC):
o,,OM_INALID_PEGAREA: Pegging area GUID not found.
Parameters
ET_ACTIVITIESET_CAP_REQS
ET_CHARACT_REQ_INPNODE
ET_CHARACT_VAL_ACTS
ET_CHARACT_VAL_OUTNODE
ET_EXTERN_CONSTRAINTS
ET_EXT_INPUTS
ET_EXT_OUTPUTS
ET_INPUTS
ET_INTERN_CONSTRAINTS
ET_MODES
ET_ORDERS
ET_ORDKEYS
ET_ORDMAPS
ET_OUTPUTS
ET_PEG_INPNODE
ET_PEG_OUTNODE
ET_POSITIONS
ET_PRODFLOW
ET_RC
IS_EXCLUDE_EXPORTS
IS_EXCLUDE_FIELDS
IS_GEN_PARAMS
IT_CHARACT_REQ_OUTNODE
IT_CHARACT_VAL_INPNODE
IT_PEGCAT
IV_GET_FIX_PEG_ONLY
IV_SIMSESSION
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_PLANNINGTXBHW - Original Tax Base Amount in Local Currency CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 3524 Date: 20120525 Time: 044927 triton ( 142 ms )






