/SAPAPO/OM_PEGAREA_GET - Get Pegging Areas for Orders, Activities, and Resources

ROGBILLS - Synchronize billing plans   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Functionality

The union of the pegging areas belonging to the orders defined in IT_ORDER, of the resources defined in IT_RES, and the activities defined in IT_ACT is output in ET_PEGAREA. This can be explained as follows:

o,,A pegging area belongs to an order if at least one input or output of the order belongs to this peggingarea. Parameter IV_PEGAREA_SEL controls which input and output nodes of the orders are to be included in this selection:

-,,If IV_PEGAREA_SEL=GC_NO_IO, no input or output nodes are included in the selection, and therefore no pegging areas are selected.

-,,If IV_PEGAREA_SEL=GC_ALL_IO, all input and output nodes are included in the selection.

-,,If IV_PEGAREA_SEL=GC_INPUTS_ONLY, only input nodes are included.

-,,If IV_PEGAREA_SEL=GC_INPUTS_ONLY, only output nodes are included.

-,,If IV_PEGAREA_SEL=GC_INPUTS_ONLY, only master output nodes are included.

o,,A pegging area belongs to a resource if at least one activity belongs to the resource that belongsto a request that has at least one input or output node in the pegging area. Parameter IV_ACT_PLANNING_STATUS_SEL allows you to make a restriction according to the planning status of the activities:

-,,If IV_ACT_PLANNED_STATUS_SEL = GC_PLANNED_ONLY, only planned activities are included.

-,,If IV_ACT_PLANNED_STATUS_SEL = GC_UNPLANNED_ONLY, only unplanned activities are included.

-,,If IV_ACT_PLANNED_STATUS_SEL = GC_PLAN_STAT_ALL, the planning status is not used to make any restrictions.

o,,A pegging area belongs to an activity if the activity belongs to an order that has at least one input or output in the pegging area.

Parameter IV_ORD_PLANNING_TYPE_SEL allows you to make a global restriction to the pegging area selection using the planning type of the orders:

o,,If IV_ORD_PLANNING_TYPE_SEL = GC_PLANNING_TYPE_SNP_ONLY, only those pegging areas are selected whose orders have been exploded by SNP.

o,,If IV_ORD_PLANNING_TYPE_SEL = GC_PLANNING_TYPE_PPDS_ONLY, only those pegging areas are selected whose orders have been exploded by PP/DS.

o,,If IV_ORD_PLANNING_TYPE_SEL = GC_PLANNING_TYPE_ALL, the order explosion is not used to make any restrictions.

The parameter IV_IO_SEL controls how much information about the activities' input and output nodes is returned in the table ET_IO:

o,,If IV_IO_SEL=GC_NO_IO, no I/O node information is returned in ET_IO.

o,,If IV_IO_SEL=GC_ALL_IO, the I/O nodes of all orders are returned.

o,,If IV_IO_SEL=GC_INPUTS_ONLY, only input nodes are returned.

o,,If IV_IO_SEL=GC_OUTPUTS_ONLY, only output nodes are returned.

o,,If IV_IO_SEL=GC_MASTER_OUTPUTS_ONLY, only master output nodes are returned.

If any errors occur while determining the pegging areas, all the relevant error codes are returned in table ET_RC.

Example

Return codes to call up (see table ET_RC):

  • om_invalid_order: invalid order
  • om_invalid_resource: invalid resource
  • om_invalid_activity: invalid activity

Notes

Further information


Parameters

ET_IO
ET_PEGAREA
ET_RC
IS_GEN_PARAMS
IT_ACT
IT_ORDER
IT_RES
IV_ACT_PLANNED_STATUS_SEL
IV_IO_SEL
IV_ORD_PLANNING_TYPE_SEL
IV_PEGAREA_SEL
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_PLANNINGTABLE

ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.


Length: 4847 Date: 20120525 Time: 044453     triton ( 124 ms )