Ansicht
Dokumentation

WFD_AAPI_GET_FREE_SLOTS - Get concrete free slots for resources

WFD_AAPI_GET_FREE_SLOTS - Get concrete free slots for resources

ROGBILLS - Synchronize billing plans   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module WFD_AAPI_GET_FREE_SLOTSdetermines intervals of time (slots) over which each given resource is free of any concrete assignments.

Multiple resources can be submitted, but only a single interval. This interval is a closed-open interval, meaning that if the start of any free time slot matches the start of the interval it will be included, but if the start of a free time slot matches the end of the interval it will be excluded. If a slot is defined that starts within the interval, but for which the duration crosses the end time parameter, the entire slot will be returned.

Each slot returned will contain a starting timestamp, and the duration in hours over which the resource is continuously free of concrete assignments, starting from that timestamp. Note that since capacitive assignments are not considered, the measure of all free slots does not necessarily equal the free time for a resource.

Example

  data lt_resource_key type wfd_key_tab.

  append '8000000000000000000000000000CE01' to lt_resource_key.

  data lt_res_slots type wfdaapi_resource_slots_tab.

  call function 'WFD_AAPI_GET_FREE_SLOTS'
    exporting
     iv_start_time               = '20040101000000'
      iv_end_time                 = '20041231235959'
      it_res_key_tab              = lt_resource_key
   importing
     et_res_free_slots_tab       = lt_res_slots
      et_return                   = lt_return.

Notes

Parameter Name Associated Type Short Text
IV_START_TIME TIMESTAMP Start of selection interval
IV_END_TIME TIMESTAMP End of selection interval
IT_RES_KEY_TAB WFD_KEY_TAB Table of resource keys
ET_RES_FREE_SLOTS_TAB WFDAAPI_RESOURCE_SLOTS_TAB Table of resources and nested table of free slots for each resource.
ET_RETURN BAPIRET2_TAB Table of standard return structure BAPIRET2

Further information





Parameters

ET_RES_FREE_SLOTS_TAB
ET_RETURN
IT_RES_KEY_TAB
IV_END_TIME
IV_START_TIME

Exceptions

Function Group

WFD_COMMON

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

Length: 4223 Date: 20240523 Time: 130602     sap01-206 ( 47 ms )