/SAPAPO/OM_RESOURCE_GET - Get Resources for Orders, Pegging Areas, Activities

TXBHW - Original Tax Base Amount in Local Currency   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Functionality

For the orders, activities, and pegging areas in the tables IT_ORDER, IT_PEGAREA und IT_ACT, this function module returns all resources that are linked to these objects in the following way:

  • A resource belongs to an order if at least one activity in the order is scheduled for this resource.
  • A resource area belongs to a pegging area if at least one activity for the resource belongs to anorder that has at least one input or output node in the pegging area. Parameter IV_PEGAREA_SEL controls which input or output nodes are to be included in this selection:
  • If IV_PEGAREA_SEL=GC_NO_IO, no nodes are included, and therefore no resources 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.

  • A resource belongs to an activity when the activity is scheduled for the resource.

If IV_GET_ALT_RES = GC_TRUE, the alternative resources for the activities specified in IT_ACT are also returned in ET_ALT_RES.

If errors occur when the resources are determined, appropriate return codes are returned in the tables ET_ORD_RC, ET_PEG_RC, and ET_ACT_RC.

Example

Notes

Possible return codes:

  • ET_ORD_RC:
  • om_invalid_order: Invalid order GUID

  • ET_PEG_RC:
  • om_invalid_pegarea: Invalid pegging area GUID

  • ET_ACT_RC:
  • om_invalid_activity: Invalid activity GUID

Further information


Parameters

ET_ALT_MODES
ET_RC
ET_RES
IS_GEN_PARAMS
IT_ACT
IT_ORDER
IT_PEGAREA
IV_GET_ALT_MODES
IV_PEGAREA_SEL
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_RESOURCE

CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.


Length: 3568 Date: 20120525 Time: 051422     triton ( 98 ms )