/SAPAPO/OM_ACT_GET_BY_RES - Get Activities for Resources

BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Functionality

For the resource keys (UIDs) in IT_RES, all corresponding activities that overlap with the time interval [IV_START_TIME, IV_END_TIME] are returned in ET_CAP_REQS.

You can use IV_ACT_PLANNING_TYPE_SEL and IV_ACT_PLANNED_STATUS_SEL to specify which activities are included:

IV_ACT_PLANNING_TYPE_SEL allows you to make a restriction according to the planning types of the activities:

  • If IV_ACT_PLANNING_TYPE_SEL = GC_PLANNING_TYPE_SNP_ONLY, only those activities are selected whose orders have been exploded by SNP.
  • If IV_ACT_PLANNING_TYPE_SEL = GC_PLANNING_TYPE_PPDS_ONLY, only those activities are selected whose orders have been exploded by PP/DS.
  • If IV_ACT_PLANNING_TYPE_SEL = GC_PLANNING_TYPE_ALL, the order explosion is not used to make any restrictions.

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.

If IV_GET_ALT_MODES = 'X', the appropriate alternative modes for the activities in ET_CAPS_REQS are returned in ET_ALT_MODES.

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

  • If IV_IO_SEL=GC_NO_IO, no I/O node information is returned in ET_IO.
  • If IV_IO_SEL=GC_ALL_IO, the I/O nodes of all activities are returned.
  • If IV_IO_SEL=GC_INPUTS_ONLY, only input nodes are returned.
  • If IV_IO_SEL=GC_OUTPUTS_ONLY, only output nodes are returned.
  • If IV_IO_SEL=GC_MASTER_OUTPUTS_ONLY, only master output nodes are returned.

The parameter IV_CONSTR_SELECTION controls how much information about constraints between the activities is returned in the table ET_CONSTR:

  • If IV_CONSTR_SELECTION = GC_NO_CONSTR, no constraint information is returned in ET_CONSTR.
  • If IV_CONSTR_SELECTION = GC_INSIDE_CONSTR, only those constraints are returned in ET_CONSTR that exist between two activities from ET_ACT.
  • If IV_CONSTR_SELECTION = GC_ALL_CONSTR, all those constraints are returned in ET_CONSTR for which at least one activity is included in ET_ACT.

The parameter IV_PEG_SELECTION controls how much information about pegging relationships between the activities is returned in the table ET_PEG:

  • If IV_PEG_SELECTION = GC_NO_CONSTR, no pegging information is returned in ET_PEG.
  • If IV_PEG_SELECTION = GC_INSIDE_CONSTR, only those pegging relationships are returned in ET_PEG that exist between two activities from ET_PEG.
  • If IV_PEG_SELECTION = GC_ALL_CONSTR, all those pegging relationships are returned in ET_PEG for which at least one activity is included in ET_CAP_REQS.

ET_RC contains return codes for resources with processing errors.

Example

Notes

Return codes (see table ET_RC):

  • om_invalid_resource: Invalid resource

Further information


Parameters

ET_ALT_MODES
ET_CAP_REQS
ET_CONSTR
ET_IO
ET_PEG
ET_RC
IS_GEN_PARAMS
IT_RES
IT_SETUP_GROUPS
IV_ACT_PLANNED_STATUS_SEL
IV_CONSTR_SELECTION
IV_END_TIME
IV_GET_ALT_MODES
IV_IO_SEL
IV_ORD_PLANNING_TYPE_SEL
IV_PEG_SELECTION
IV_RPM_GET_VIRTUAL_INPUTS
IV_SIMSESSION
IV_START_TIME

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_PLANNINGTABLE

ROGBILLS - Synchronize billing plans   General Material Data  
This documentation is copyright by SAP AG.


Length: 5975 Date: 20120525 Time: 035934     triton ( 133 ms )