Ansicht
Dokumentation
WFD_AAPI_GET_FREE_CAPA_PCT - Alert API Get free capacity percent
Fill RESBD Structure from EBP Component Structure CPI1466 during BackupThis documentation is copyright by SAP AG.
Functionality
The function module WFD_AAPI_GET_FREE_CAPA_PCT determines the total number of hours each given resource is free of any assignments and returns this value as a ratio.
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 ls_res_tot type wfdaapi_resource_capa_tot.
data lt_res_tot type wfdaapi_resource_capa_tot_tab.
ls_res_tot-resource_key = '8000000000000000000000000000CE01'.
append ls_res_tot to lt_res_tot.
data lt_res_capa_pct type wfdaapi_resource_capa_pct_tab.
call function 'WFD_AAPI_GET_FREE_CAPA_PCT'
exporting
iv_start_time = '20040101000000'
iv_end_time
= '20041231235959'
it_res_time_tot_tab = lt_res_tot
importing
et_res_capa_pct = lt_res_capa_pct
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_TIME_TOT_TAB | WFDAAPI_RESOURCE_CAPA_TOT_TAB | Table of resource keys and hour totals |
ET_RES_CAPA | WFDAAPI_RESOURCE_CAPA_PCT_TAB | Table of resources and the ratio of their free time |
ET_RETURN | BAPIRET2_TAB | Table of standard BAPIRET2 structures |
Further information
Parameters
ET_RES_CAPA_PCTET_RETURN
IT_RES_TIME_TOT_TAB
IV_END_TIME
IV_START_TIME
Exceptions
Function Group
WFD_COMMONTXBHW - Original Tax Base Amount in Local Currency rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 4054 Date: 20240523 Time: 144140 sap01-206 ( 33 ms )