SAP RSDRI_DATA_UNWRAP Function Module for Un-wraps the data from an RFCOUTPUT table (UNICODE)
RSDRI_DATA_UNWRAP is a standard rsdri data unwrap SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Un-wraps the data from an RFCOUTPUT table (UNICODE) 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 rsdri data unwrap FM, simply by entering the name RSDRI_DATA_UNWRAP into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDRI_SERVICES
Program Name: SAPLRSDRI_SERVICES
Main Program: SAPLRSDRI_SERVICES
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSDRI_DATA_UNWRAP 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 'RSDRI_DATA_UNWRAP'"Un-wraps the data from an RFCOUTPUT table (UNICODE).
EXPORTING
* I_T_RFCDATA = "RSDRI: Table of Data Containers
* I_RFCDATA_UC = "
* I_T_RFCDATA250 = "BAPI: Table of Data Containers
* I_PACKAGED = RS_C_FALSE "Use C_TX_DATA Instead of C_T_DATA
CHANGING
* C_T_DATA = "
* C_TX_DATA = "
EXCEPTIONS
CONVERSION_ERROR = 1
IMPORTING Parameters details for RSDRI_DATA_UNWRAP
I_T_RFCDATA - RSDRI: Table of Data Containers
Data type: RSDRI_T_RFCDATAOptional: Yes
Call by Reference: Yes
I_RFCDATA_UC -
Data type: XSTRINGOptional: Yes
Call by Reference: Yes
I_T_RFCDATA250 - BAPI: Table of Data Containers
Data type: BAPI6116TDAOptional: Yes
Call by Reference: Yes
I_PACKAGED - Use C_TX_DATA Instead of C_T_DATA
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RSDRI_DATA_UNWRAP
C_T_DATA -
Data type: STANDARD TABLEOptional: Yes
Call by Reference: Yes
C_TX_DATA -
Data type: STANDARD TABLEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CONVERSION_ERROR - Error During Translation
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDRI_DATA_UNWRAP 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_c_t_data | TYPE STANDARD TABLE, " | |||
lv_i_t_rfcdata | TYPE RSDRI_T_RFCDATA, " | |||
lv_conversion_error | TYPE RSDRI_T_RFCDATA, " | |||
lv_c_tx_data | TYPE STANDARD TABLE, " | |||
lv_i_rfcdata_uc | TYPE XSTRING, " | |||
lv_i_t_rfcdata250 | TYPE BAPI6116TDA, " | |||
lv_i_packaged | TYPE RS_BOOL. " RS_C_FALSE |
  CALL FUNCTION 'RSDRI_DATA_UNWRAP' "Un-wraps the data from an RFCOUTPUT table (UNICODE) |
EXPORTING | ||
I_T_RFCDATA | = lv_i_t_rfcdata | |
I_RFCDATA_UC | = lv_i_rfcdata_uc | |
I_T_RFCDATA250 | = lv_i_t_rfcdata250 | |
I_PACKAGED | = lv_i_packaged | |
CHANGING | ||
C_T_DATA | = lv_c_t_data | |
C_TX_DATA | = lv_c_tx_data | |
EXCEPTIONS | ||
CONVERSION_ERROR = 1 | ||
. " RSDRI_DATA_UNWRAP |
ABAP code using 7.40 inline data declarations to call FM RSDRI_DATA_UNWRAP
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.DATA(ld_i_packaged) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects