SAP RFC_GET_UNICODE_STRUCTURE Function Module for
RFC_GET_UNICODE_STRUCTURE is a standard rfc get unicode structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rfc get unicode structure FM, simply by entering the name RFC_GET_UNICODE_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RFCH
Program Name: SAPLRFCH
Main Program: SAPLRFCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RFC_GET_UNICODE_STRUCTURE 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 'RFC_GET_UNICODE_STRUCTURE'".
EXPORTING
TABNAME = "Table Name
* ALLOW_HALF_DEEP = "
* SKIP_UTF16_INFO = "
* SKIP_UCS_4_INFO = "
IMPORTING
B1_TABLENGTH = "
B2_TABLENGTH = "
B4_TABLENGTH = "
CHAR_LENGTH = "
UUID = "
TABLES
FIELDS = "
EXCEPTIONS
TABLE_NOT_ACTIVE = 1 CANNOT_GENERATE1 = 2 CANNOT_GENERATE2 = 3 CANNOT_GENERATE4 = 4 UNSUPPORTED_TYPE = 5
IMPORTING Parameters details for RFC_GET_UNICODE_STRUCTURE
TABNAME - Table Name
Data type: X030L-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
ALLOW_HALF_DEEP -
Data type: SY-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
SKIP_UTF16_INFO -
Data type: SY-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
SKIP_UCS_4_INFO -
Data type: SY-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RFC_GET_UNICODE_STRUCTURE
B1_TABLENGTH -
Data type: RFC_FLDS_U-LENGTH_B1Optional: No
Call by Reference: No ( called with pass by value option)
B2_TABLENGTH -
Data type: RFC_FLDS_U-LENGTH_B2Optional: No
Call by Reference: No ( called with pass by value option)
B4_TABLENGTH -
Data type: RFC_FLDS_U-LENGTH_B4Optional: No
Call by Reference: No ( called with pass by value option)
CHAR_LENGTH -
Data type: RFC_FLDS_U-LENGTH_B1Optional: No
Call by Reference: No ( called with pass by value option)
UUID -
Data type: X030L-UUIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RFC_GET_UNICODE_STRUCTURE
FIELDS -
Data type: RFC_FLDS_UOptional: No
Call by Reference: Yes
EXCEPTIONS details
TABLE_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: Yes
CANNOT_GENERATE1 -
Data type:Optional: No
Call by Reference: Yes
CANNOT_GENERATE2 -
Data type:Optional: No
Call by Reference: Yes
CANNOT_GENERATE4 -
Data type:Optional: No
Call by Reference: Yes
UNSUPPORTED_TYPE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RFC_GET_UNICODE_STRUCTURE 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: | ||||
| lt_fields | TYPE STANDARD TABLE OF RFC_FLDS_U, " | |||
| lv_tabname | TYPE X030L-TABNAME, " | |||
| lv_b1_tablength | TYPE RFC_FLDS_U-LENGTH_B1, " | |||
| lv_table_not_active | TYPE RFC_FLDS_U, " | |||
| lv_b2_tablength | TYPE RFC_FLDS_U-LENGTH_B2, " | |||
| lv_allow_half_deep | TYPE SY-BATCH, " | |||
| lv_cannot_generate1 | TYPE SY, " | |||
| lv_b4_tablength | TYPE RFC_FLDS_U-LENGTH_B4, " | |||
| lv_skip_utf16_info | TYPE SY-BATCH, " | |||
| lv_cannot_generate2 | TYPE SY, " | |||
| lv_char_length | TYPE RFC_FLDS_U-LENGTH_B1, " | |||
| lv_skip_ucs_4_info | TYPE SY-BATCH, " | |||
| lv_cannot_generate4 | TYPE SY, " | |||
| lv_uuid | TYPE X030L-UUID, " | |||
| lv_unsupported_type | TYPE X030L. " |
|   CALL FUNCTION 'RFC_GET_UNICODE_STRUCTURE' " |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| ALLOW_HALF_DEEP | = lv_allow_half_deep | |
| SKIP_UTF16_INFO | = lv_skip_utf16_info | |
| SKIP_UCS_4_INFO | = lv_skip_ucs_4_info | |
| IMPORTING | ||
| B1_TABLENGTH | = lv_b1_tablength | |
| B2_TABLENGTH | = lv_b2_tablength | |
| B4_TABLENGTH | = lv_b4_tablength | |
| CHAR_LENGTH | = lv_char_length | |
| UUID | = lv_uuid | |
| TABLES | ||
| FIELDS | = lt_fields | |
| EXCEPTIONS | ||
| TABLE_NOT_ACTIVE = 1 | ||
| CANNOT_GENERATE1 = 2 | ||
| CANNOT_GENERATE2 = 3 | ||
| CANNOT_GENERATE4 = 4 | ||
| UNSUPPORTED_TYPE = 5 | ||
| . " RFC_GET_UNICODE_STRUCTURE | ||
ABAP code using 7.40 inline data declarations to call FM RFC_GET_UNICODE_STRUCTURE
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 TABNAME FROM X030L INTO @DATA(ld_tabname). | ||||
| "SELECT single LENGTH_B1 FROM RFC_FLDS_U INTO @DATA(ld_b1_tablength). | ||||
| "SELECT single LENGTH_B2 FROM RFC_FLDS_U INTO @DATA(ld_b2_tablength). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_allow_half_deep). | ||||
| "SELECT single LENGTH_B4 FROM RFC_FLDS_U INTO @DATA(ld_b4_tablength). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_skip_utf16_info). | ||||
| "SELECT single LENGTH_B1 FROM RFC_FLDS_U INTO @DATA(ld_char_length). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_skip_ucs_4_info). | ||||
| "SELECT single UUID FROM X030L INTO @DATA(ld_uuid). | ||||
Search for further information about these or an SAP related objects