Ansicht
Dokumentation

WFD_AAPI_GET_FREE_CAPA - Get free capacitive hours for resources

WFD_AAPI_GET_FREE_CAPA - Get free capacitive hours for resources

CL_GUI_FRONTEND_SERVICES - Frontend Services   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module WFD_AAPI_GET_FREE_CAPA determines the total number of hours each given resource is free of any 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 matches the start of the interval it will be included, but if the start of free time matches the end of the interval it will be excluded.

Example

  data lt_resource_key type wfd_key_tab.

  append '8000000000000000000000000000CE01' to lt_resource_key.

  data lt_res_capa type wfdaapi_resource_capa_tab.

  call function 'WFD_AAPI_GET_FREE_CAPA'
    exporting
     iv_start_time               = '20040101000000'
      iv_end_time                 = '20041231235959'
      it_res_key_tab              = lt_resource_key
   importing
     et_res_capa                 = lt_res_capa
      et_return                   = lt_return.

Notes

Parameter Name Associated Type Short Text
IV_START_TIME TIMESTAMP Start of selection interval
IV_END_TIME TIMESTMAP End of selection interval
IT_RES_KEY_TAB WFD_KEY_TAB Table of resource keys
ET_RES_CAPA WFDAAPI_RESOURCE_CAPA_TAB Table of resources and their free time
ET_RETURN BAPIRET2_TAB Table of standard BAPIRET2 structures

Further information





Parameters

ET_RES_CAPA
ET_RETURN
IT_RES_KEY_TAB
IV_END_TIME
IV_START_TIME

Exceptions

Function Group

WFD_COMMON

Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3704 Date: 20240523 Time: 145757     sap01-206 ( 28 ms )