/SAPAPO/OM_ACT_GET_BY_PEGAREA - Get Activities for Pegging Areas

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Functionality

The accompanying activities for the Pegging Area Keys (UIDs) in IT_PEGAREA which overlap with the timeinterval [IV_START_TIME, IV_END_TIME] are collected. An activity is considered as belonging to a PeggingArea if it belongs to an order that has an input or output to this Pegging Area. The selected activities are then output in ET_CAP_REQS according to the specifications of the parameter IV_CAP_REQS_ON_RES_ONLY.

If IV_MASTER_OUTPUTS_ONLY = 'X', the only activities considered are those belonging to orders that have an output to the affected Pegging Area as the main output.

If IV_GET_ALT_MODES = 'X', each alternative possible resource for the selected activity is returned in ET_ALT_MODES.

If IV_GET_IO = 'X', information about the input/output nodes linked with the selected activities is returned to ET_IO.

The parameter IV_CONSTR_SELECTION controls what information about the constraints between the activites should be returned to the table ET_CONSTR:

  • If IV_CONSTR_SELECTION = 0, no constraint information is returned to ET_CONSTR.
  • If IV_CONSTR_SELECTION = 1, only constraints between activities that both belong to the selected quantity are returned to ET_CONSTR.
  • If IV_CONSTR_SELECTION = 2, all constraints that have at least one activity belonging to the selected quantity are listed in ET_CONSTR.

The parameter IV_PEG_SELECTION controls what information about the pegging relationships between the activities should be returned to the table IV_PEG_SELECTION:

  • If IV_PEG_SELECTION = 0, no pegging information is returned to ET_PEG.
  • If IV_PEG_SELECTION = 1, only pegging relationships between activities that both belong to the selected quantities are returned to ET_PEG.
  • If IV_PEG_SELECTION = 2, all pegging relationships that have at least one activity belonging to the selected quantity are returned to ET_PEG.

The parameter IV_CAP_REQS_ON_RES_ONLY controls whether, from the selected activities, only those that are dispatched to resources should be returned to ET_CAP_REQS.

In ET_RC, individual error codes are returned for those pegging areas where errors were determined in processing.

Example

Notes

Return codes to be queried (table ET_RC):

  • om_invalid_pegarea: Invalid pegging area

Further information


Parameters

ET_ALT_MODES
ET_CAP_REQS
ET_CONSTR
ET_IO
ET_PEG
ET_RC
IS_GEN_PARAMS
IT_CHARACT_REQ_OUTNODE
IT_CHARACT_VAL_INPNODE
IT_PEGAREA
IV_CAP_REQS_ON_RES_ONLY
IV_CONSTR_SELECTION
IV_END_TIME
IV_GET_ALT_MODES
IV_IO_SELECTION
IV_PEGAREA_SELECTION
IV_PEG_SELECTION
IV_SIMSESSION
IV_START_TIME

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_PLANNINGTABLE

CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.


Length: 5168 Date: 20120525 Time: 035910     triton ( 135 ms )