/SAPAPO/OM_PEGID_SELECT_ORDERS - Uses Pegging Areas, Categories, and Time Intervals to Get Order GUIDs
Vendor Master (General Section) CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
This module selects I/O nodes in the liveCache in accordance with the criteria specified in the importtables and gets the GUIDs of their (sub-)orders. With the exception of IT_PEGID and IT_CATEGORY, the selection tables are optional:
- IT_PEGID: This table contains the GUIDs and descriptive characteristics of the pegging areas forwhich you want to select orders. Users who are not acquainted with descriptive characteristics should leave the DESCCHARID field empty.
- IT_CATEGORY: This table contains the ATP categories to which the I/O nodes of the selected ordersshould belong. If IT_CATEGORY is empty, no selection will be made according to ATP categories, that is, all ATP categories will be accepted.
- IT_ORDER_TYPES contains the order types that the orders to be found can have
- IT_ORDER_STATUS contains the order statuses that the orders to be returned can have
- IT_EXT_FIXED: During the search, only those I/O nodes will be taken into account that have a fixing indicator that is contained in the table
- IT_TOPORDER_EXCLUDES: I/O nodes that belong to the top orders specified in this table will be ignored.
- IT_ORDER_REQTIME: Orders are only returned that are in one of the required times in this table
- IT_TO_PEGID and IT_TO_CATEGORY: Orders are only taken into account that have an output node in one of the specified pegging areas and have one of the specified ATP categories.
- 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.
- IV_IONODE_PEG_SEL defines the types of I/O nodes to be used (for example, all I/O nodes or just input nodes) over which the order selection will run.
- [IV_START_TIME, IV_END_TIME[ defines an (open) time interval to further restrict the selection
- IV_ADDITIONAL_SEL_OPTIONS:
Most of the options in this structure will not be supported for theforeseeable future. Setting a non-initial value leads to error code 307 in the ET_RC table (om_sel_option_not_supported). If necessary, use module OM_PEG_CAT_GET_ORDERS.
The following exceptions apply to this rule:
- ADD_TOPORDERS: If gc_true or gc_om_toporder_complete, the top order GUIDs that belong to the selectedorders will also be returned. If gc_om_toporder_only, only the GUIDs of the top orders of the selected orders will be returned, not however the GUIDs of the selected orders themselves.
Example
Notes
Error codes to be queried (table ET_RC):
- OM_INALID_PEGAREA: Pegging area GUID not found.
Further information
Parameters
ET_ORDERET_RC
IS_GEN_PARAMS
IT_CATEGORY
IT_CHARACT_REQ_OUTNODE
IT_CHARACT_VAL_INPNODE
IT_EXT_FIXED
IT_ORDER_REQTIME
IT_ORDER_STATUS
IT_ORDER_TYPES
IT_PEGID
IT_TOPORDER_EXCLUDES
IT_TO_CATEGORY
IT_TO_PEGID
IV_ADDITIONAL_SEL_OPTIONS
IV_END_TIME
IV_IONODE_PEG_SEL
IV_SIMSESSION
IV_START_TIME
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_PLANNINGGeneral Data in Customer Master rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 3771 Date: 20120525 Time: 045446 triton ( 198 ms )






