SAP BAPI_WFRES_CHANGEAVAILMULTI Function Module for Change Availability Period of a WFM Resource
BAPI_WFRES_CHANGEAVAILMULTI is a standard bapi wfres changeavailmulti SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Availability Period of a WFM Resource processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi wfres changeavailmulti FM, simply by entering the name BAPI_WFRES_CHANGEAVAILMULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: BAPI_WFMRESOURCE
Program Name: SAPLBAPI_WFMRESOURCE
Main Program: SAPLBAPI_WFMRESOURCE
Appliation area:
Release date: 30-Jan-2003
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_WFRES_CHANGEAVAILMULTI pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_WFRES_CHANGEAVAILMULTI'"Change Availability Period of a WFM Resource.
EXPORTING
ADMIN_RECORD = "Administrative Data
* TESTRUN = "Switch to Simulation Session for Write BAPIs
TABLES
RESOURCE_TIMERANGE = "Resource with Change Period
* RESOURCE_TIMESPEC = "Description of a Time Specification
* TIMESPEC_TIMEINT = "Time Interval for Time Specification
* INVALID_RESOURCES = "Resource
RETURN = "Return Parameters
IMPORTING Parameters details for BAPI_WFRES_CHANGEAVAILMULTI
ADMIN_RECORD - Administrative Data
Data type: BAPI_WFM_ADMIN_RECORDOptional: No
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Session for Write BAPIs
Data type: BAPI_WFM_TESTRUN-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_WFRES_CHANGEAVAILMULTI
RESOURCE_TIMERANGE - Resource with Change Period
Data type: BAPI_WFM_RESOURCE_TIMEINTOptional: No
Call by Reference: Yes
RESOURCE_TIMESPEC - Description of a Time Specification
Data type: BAPI_WFM_RES_TIMESPECOptional: Yes
Call by Reference: Yes
TIMESPEC_TIMEINT - Time Interval for Time Specification
Data type: BAPI_WFM_TIMESPEC_TIMEINTOptional: Yes
Call by Reference: Yes
INVALID_RESOURCES - Resource
Data type: BAPI_WFM_RESOURCE_STRUCTOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_WFRES_CHANGEAVAILMULTI Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_admin_record | TYPE BAPI_WFM_ADMIN_RECORD, " | |||
| lt_resource_timerange | TYPE STANDARD TABLE OF BAPI_WFM_RESOURCE_TIMEINT, " | |||
| lv_testrun | TYPE BAPI_WFM_TESTRUN-TESTRUN, " | |||
| lt_resource_timespec | TYPE STANDARD TABLE OF BAPI_WFM_RES_TIMESPEC, " | |||
| lt_timespec_timeint | TYPE STANDARD TABLE OF BAPI_WFM_TIMESPEC_TIMEINT, " | |||
| lt_invalid_resources | TYPE STANDARD TABLE OF BAPI_WFM_RESOURCE_STRUCT, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BAPI_WFRES_CHANGEAVAILMULTI' "Change Availability Period of a WFM Resource |
| EXPORTING | ||
| ADMIN_RECORD | = lv_admin_record | |
| TESTRUN | = lv_testrun | |
| TABLES | ||
| RESOURCE_TIMERANGE | = lt_resource_timerange | |
| RESOURCE_TIMESPEC | = lt_resource_timespec | |
| TIMESPEC_TIMEINT | = lt_timespec_timeint | |
| INVALID_RESOURCES | = lt_invalid_resources | |
| RETURN | = lt_return | |
| . " BAPI_WFRES_CHANGEAVAILMULTI | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_WFRES_CHANGEAVAILMULTI
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TESTRUN FROM BAPI_WFM_TESTRUN INTO @DATA(ld_testrun). | ||||
Search for further information about these or an SAP related objects