SAP RSWAD_MIG_WRITE_ITEM_FOLDER Function Module for Writes the created and migrated BEx Web Items (3.x) to the 7.0 tables
RSWAD_MIG_WRITE_ITEM_FOLDER is a standard rswad mig write item folder SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Writes the created and migrated BEx Web Items (3.x) to the 7.0 tables 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 rswad mig write item folder FM, simply by entering the name RSWAD_MIG_WRITE_ITEM_FOLDER into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSWAD_MIG
Program Name: SAPLRSWAD_MIG
Main Program: SAPLRSWAD_MIG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSWAD_MIG_WRITE_ITEM_FOLDER 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 'RSWAD_MIG_WRITE_ITEM_FOLDER'"Writes the created and migrated BEx Web Items (3.x) to the 7.0 tables.
EXPORTING
I_S_ITEM = "One Item (id, vers, lib, state)
I_S_ITEMROLE = "BW: assignment table for a RWI to roles and libraries
* I_OVERWRITE = RS_C_FALSE "Boolean
* I_TESTMODE = RS_C_TRUE "Boolean
IMPORTING
E_STATE = "One Item (id, vers, lib, state)
EXCEPTIONS
ITEM_ALREADY_EXISTS = 1 UNKNOWN_FOLDER = 2
IMPORTING Parameters details for RSWAD_MIG_WRITE_ITEM_FOLDER
I_S_ITEM - One Item (id, vers, lib, state)
Data type: RSRWADITEMOptional: No
Call by Reference: Yes
I_S_ITEMROLE - BW: assignment table for a RWI to roles and libraries
Data type: RSWADMIGITEMROLEASSIGNMENTOptional: No
Call by Reference: Yes
I_OVERWRITE - Boolean
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_TESTMODE - Boolean
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSWAD_MIG_WRITE_ITEM_FOLDER
E_STATE - One Item (id, vers, lib, state)
Data type: RSRWADITEM-STATEOptional: No
Call by Reference: Yes
EXCEPTIONS details
ITEM_ALREADY_EXISTS - An item name already exists and overwrite is off.
Data type:Optional: No
Call by Reference: Yes
UNKNOWN_FOLDER - The library that is provided does not exist.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSWAD_MIG_WRITE_ITEM_FOLDER 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_e_state | TYPE RSRWADITEM-STATE, " | |||
| lv_i_s_item | TYPE RSRWADITEM, " | |||
| lv_item_already_exists | TYPE RSRWADITEM, " | |||
| lv_i_s_itemrole | TYPE RSWADMIGITEMROLEASSIGNMENT, " | |||
| lv_unknown_folder | TYPE RSWADMIGITEMROLEASSIGNMENT, " | |||
| lv_i_overwrite | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_testmode | TYPE RS_BOOL. " RS_C_TRUE |
|   CALL FUNCTION 'RSWAD_MIG_WRITE_ITEM_FOLDER' "Writes the created and migrated BEx Web Items (3.x) to the 7.0 tables |
| EXPORTING | ||
| I_S_ITEM | = lv_i_s_item | |
| I_S_ITEMROLE | = lv_i_s_itemrole | |
| I_OVERWRITE | = lv_i_overwrite | |
| I_TESTMODE | = lv_i_testmode | |
| IMPORTING | ||
| E_STATE | = lv_e_state | |
| EXCEPTIONS | ||
| ITEM_ALREADY_EXISTS = 1 | ||
| UNKNOWN_FOLDER = 2 | ||
| . " RSWAD_MIG_WRITE_ITEM_FOLDER | ||
ABAP code using 7.40 inline data declarations to call FM RSWAD_MIG_WRITE_ITEM_FOLDER
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 STATE FROM RSRWADITEM INTO @DATA(ld_e_state). | ||||
| DATA(ld_i_overwrite) | = RS_C_FALSE. | |||
| DATA(ld_i_testmode) | = RS_C_TRUE. | |||
Search for further information about these or an SAP related objects