/SAPAPO/OM_RESOURCE_GET_BRUTTO - Calculates Gross Dates by Net Times

PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Functionality

Using the times specified in IT_TIME, and in accordance with IV_FORWARD, this function module calculatesthe start or end times for multiple series of operations This module is designed for mass processing, which means that you can enter multiple start or end times. The IT_TIME count field must be filled accordingly.

The operations are in the table IT_RESOURCE_TIME. An operation is specified by the GUID of its resource(RESUID), its net duration (PROC_TIME), and a buffer time (BUFFER_TIME) after which a follow-on operationcan start. The USE_EFFICIENCY flag defines whether the efficiency of the resource can be used to calculatethe net duration of the operation. The attribute ACT_NUM defines the order of the operations. If IV_FORWARDis the same as GC_FALSE, the content of the field IT_TIME-TIME is interpreted as the start times ofthe operations; otherwise it is interpreted as the end times. The parameter IV_BUFFER_TIME containsthe buffer time that must run before the first operation can start. The calculation of the times includes all buffer times, even those before the first operation and after the last operation.

New start times and end times are always calculated, independently of the values of the field IV_FORWARD;these times can then differ from the default in IT_TIME-TIME. The new times are interpreted as follows:the output table ET_TIMES contains the start times or end times of each activity. These activities canbe identified by the field act_num. The count field specifies the entry in IT_TIMES to which each entrybelongs. If the time specified in IT_TIME is an end time (IV_FORWARD = GC_TRUE), breaks can mean thatthe calculated end time falls before the specified end time. This can also apply to start times in IV_TIME (IV_FORWARD = GC_TRUE). In this case, the calculated start time can fall after the specified start time.

Example

Notes

Possible return codes:

  • om_invalid_resource: Invalid resource GUID

Further information


Parameters

ET_RC
ET_TIMES
IS_GEN_PARAMS
IT_RESOURCE_TIME
IT_TIME
IV_BUFFER_TIME
IV_FORWARD
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_RESOURCE

RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.


Length: 2408 Date: 20120525 Time: 051518     triton ( 159 ms )