SAP RSDU_EXECUTE_DSNUTIL_RFC_DB2 Function Module for Remote-enabled version of RSDU_EXECUTE_DSNUTIL_DB2
RSDU_EXECUTE_DSNUTIL_RFC_DB2 is a standard rsdu execute dsnutil rfc db2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Remote-enabled version of RSDU_EXECUTE_DSNUTIL_DB2 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 rsdu execute dsnutil rfc db2 FM, simply by entering the name RSDU_EXECUTE_DSNUTIL_RFC_DB2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDU_UTIL_DB2
Program Name: SAPLRSDU_UTIL_DB2
Main Program: SAPLRSDU_UTIL_DB2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSDU_EXECUTE_DSNUTIL_RFC_DB2 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 'RSDU_EXECUTE_DSNUTIL_RFC_DB2'"Remote-enabled version of RSDU_EXECUTE_DSNUTIL_DB2.
EXPORTING
I_UTILNAME = "Utility specification
I_STMT = "Utility Control Statement
* I_DUMP_OUTPUT = RS_C_FALSE "Info-Flag: Abbruch
* I_SM50_INFOSTRING = "Information string for transaction SM50
EXCEPTIONS
UTILITY_ERROR = 1
IMPORTING Parameters details for RSDU_EXECUTE_DSNUTIL_RFC_DB2
I_UTILNAME - Utility specification
Data type: DB2DSNUP-UTIL_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_STMT - Utility Control Statement
Data type: DB2DSNUP-UTSTMTOptional: No
Call by Reference: No ( called with pass by value option)
I_DUMP_OUTPUT - Info-Flag: Abbruch
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SM50_INFOSTRING - Information string for transaction SM50
Data type: CHAR30Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
UTILITY_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDU_EXECUTE_DSNUTIL_RFC_DB2 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_i_utilname | TYPE DB2DSNUP-UTIL_NAME, " | |||
| lv_utility_error | TYPE DB2DSNUP, " | |||
| lv_i_stmt | TYPE DB2DSNUP-UTSTMT, " | |||
| lv_i_dump_output | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_sm50_infostring | TYPE CHAR30. " |
|   CALL FUNCTION 'RSDU_EXECUTE_DSNUTIL_RFC_DB2' "Remote-enabled version of RSDU_EXECUTE_DSNUTIL_DB2 |
| EXPORTING | ||
| I_UTILNAME | = lv_i_utilname | |
| I_STMT | = lv_i_stmt | |
| I_DUMP_OUTPUT | = lv_i_dump_output | |
| I_SM50_INFOSTRING | = lv_i_sm50_infostring | |
| EXCEPTIONS | ||
| UTILITY_ERROR = 1 | ||
| . " RSDU_EXECUTE_DSNUTIL_RFC_DB2 | ||
ABAP code using 7.40 inline data declarations to call FM RSDU_EXECUTE_DSNUTIL_RFC_DB2
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 UTIL_NAME FROM DB2DSNUP INTO @DATA(ld_i_utilname). | ||||
| "SELECT single UTSTMT FROM DB2DSNUP INTO @DATA(ld_i_stmt). | ||||
| DATA(ld_i_dump_output) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects