SAP RP_OPTIONS_INTO_STRINGTAB Function Module for
RP_OPTIONS_INTO_STRINGTAB is a standard rp options into stringtab 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 rp options into stringtab FM, simply by entering the name RP_OPTIONS_INTO_STRINGTAB into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPPN
Program Name: SAPLRPPN
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RP_OPTIONS_INTO_STRINGTAB 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 'RP_OPTIONS_INTO_STRINGTAB'".
EXPORTING
* DELIMITER_SIGN = '/' "Delimiter for string sequence
* DYN_PUSHBUTTON_TEXT3 = "Text for button in F key string
TEXT_TITLE = "Dialog box header
* TEXT_LEFT1 = "Text for selectable options, 1st line
* TEXT_LEFT2 = "Text for selectable options, 2nd line
* TEXT_LEFT3 = "Text for selectable options, 3rd line
* LIST_HEADER = "
* TEXT_OBJECT = "Text in dialog can be maintained using SE61
* DYN_PUSHBUTTON_TEXT1 = "Text for button in F key string
* DYN_PUSHBUTTON_TEXT2 = "Text for button in F key string
IMPORTING
RETURN_CODE = "Defines which button terminated the dialog
TABLES
TEXT_SYMBOL_RELATION_TAB = "Table of possible options and their ID codes
INTER_TAB = "Table of headers, etc.
EXCEPTIONS
TABLE_STRING_INCONSISTENCY = 1 TABLE_LINES_INCONSISTENCY = 2
IMPORTING Parameters details for RP_OPTIONS_INTO_STRINGTAB
DELIMITER_SIGN - Delimiter for string sequence
Data type:Default: '/'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYN_PUSHBUTTON_TEXT3 - Text for button in F key string
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_TITLE - Dialog box header
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXT_LEFT1 - Text for selectable options, 1st line
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LEFT2 - Text for selectable options, 2nd line
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LEFT3 - Text for selectable options, 3rd line
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LIST_HEADER -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_OBJECT - Text in dialog can be maintained using SE61
Data type: DOKHL-OBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
DYN_PUSHBUTTON_TEXT1 - Text for button in F key string
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
DYN_PUSHBUTTON_TEXT2 - Text for button in F key string
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RP_OPTIONS_INTO_STRINGTAB
RETURN_CODE - Defines which button terminated the dialog
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RP_OPTIONS_INTO_STRINGTAB
TEXT_SYMBOL_RELATION_TAB - Table of possible options and their ID codes
Data type: PNPSTRINGTOptional: No
Call by Reference: No ( called with pass by value option)
INTER_TAB - Table of headers, etc.
Data type: PNPXCULTABOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TABLE_STRING_INCONSISTENCY - Strings do not match TEXT-SYMBOL-RE
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_LINES_INCONSISTENCY - Number of inconsistent table lines
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RP_OPTIONS_INTO_STRINGTAB 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_return_code | TYPE SY-SUBRC, " | |||
lv_delimiter_sign | TYPE SY, " '/' | |||
lt_text_symbol_relation_tab | TYPE STANDARD TABLE OF PNPSTRINGT, " | |||
lv_table_string_inconsistency | TYPE PNPSTRINGT, " | |||
lv_dyn_pushbutton_text3 | TYPE PNPSTRINGT, " | |||
lt_inter_tab | TYPE STANDARD TABLE OF PNPXCULTAB, " | |||
lv_text_title | TYPE PNPXCULTAB, " | |||
lv_table_lines_inconsistency | TYPE PNPXCULTAB, " | |||
lv_text_left1 | TYPE PNPXCULTAB, " | |||
lv_text_left2 | TYPE PNPXCULTAB, " | |||
lv_text_left3 | TYPE PNPXCULTAB, " | |||
lv_list_header | TYPE PNPXCULTAB, " | |||
lv_text_object | TYPE DOKHL-OBJECT, " | |||
lv_dyn_pushbutton_text1 | TYPE DOKHL, " | |||
lv_dyn_pushbutton_text2 | TYPE DOKHL. " |
  CALL FUNCTION 'RP_OPTIONS_INTO_STRINGTAB' " |
EXPORTING | ||
DELIMITER_SIGN | = lv_delimiter_sign | |
DYN_PUSHBUTTON_TEXT3 | = lv_dyn_pushbutton_text3 | |
TEXT_TITLE | = lv_text_title | |
TEXT_LEFT1 | = lv_text_left1 | |
TEXT_LEFT2 | = lv_text_left2 | |
TEXT_LEFT3 | = lv_text_left3 | |
LIST_HEADER | = lv_list_header | |
TEXT_OBJECT | = lv_text_object | |
DYN_PUSHBUTTON_TEXT1 | = lv_dyn_pushbutton_text1 | |
DYN_PUSHBUTTON_TEXT2 | = lv_dyn_pushbutton_text2 | |
IMPORTING | ||
RETURN_CODE | = lv_return_code | |
TABLES | ||
TEXT_SYMBOL_RELATION_TAB | = lt_text_symbol_relation_tab | |
INTER_TAB | = lt_inter_tab | |
EXCEPTIONS | ||
TABLE_STRING_INCONSISTENCY = 1 | ||
TABLE_LINES_INCONSISTENCY = 2 | ||
. " RP_OPTIONS_INTO_STRINGTAB |
ABAP code using 7.40 inline data declarations to call FM RP_OPTIONS_INTO_STRINGTAB
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 SUBRC FROM SY INTO @DATA(ld_return_code). | ||||
DATA(ld_delimiter_sign) | = '/'. | |||
"SELECT single OBJECT FROM DOKHL INTO @DATA(ld_text_object). | ||||
Search for further information about these or an SAP related objects