SAP RS_QUALIFY_ABAP_TOKENS_STR Function Module for
RS_QUALIFY_ABAP_TOKENS_STR is a standard rs qualify abap tokens str 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 rs qualify abap tokens str FM, simply by entering the name RS_QUALIFY_ABAP_TOKENS_STR into the relevant SAP transaction such as SE37 or SE38.
Function Group: SANA
Program Name: SAPLSANA
Main Program: SAPLSANA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RS_QUALIFY_ABAP_TOKENS_STR 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 'RS_QUALIFY_ABAP_TOKENS_STR'".
EXPORTING
STATEMENT_TYPE = "
INDEX_FROM = "
INDEX_TO = "
* SIMPLIFIED = ' ' "
* DEBUG = ' ' "CHAR01 Data Element for SYST
* SHM = 'X' "CHAR01 Data Element for SYST
* OLD_FUNC = ' ' "
CHANGING
STOKESX_TAB = "
EXCEPTIONS
ERROR_LOAD_PATTERN = 1 UNKNOWN_KEYWORD = 2 NO_MATCHING_STATEMENT = 3 MEANINGLESS_STATEMENT = 4
IMPORTING Parameters details for RS_QUALIFY_ABAP_TOKENS_STR
STATEMENT_TYPE -
Data type: SSTMNT-TYPEOptional: No
Call by Reference: Yes
INDEX_FROM -
Data type: SSTMNT-FROMOptional: No
Call by Reference: No ( called with pass by value option)
INDEX_TO -
Data type: SSTMNT-TOOptional: No
Call by Reference: Yes
SIMPLIFIED -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
DEBUG - CHAR01 Data Element for SYST
Data type: SYCHAR01Default: SPACE
Optional: Yes
Call by Reference: Yes
SHM - CHAR01 Data Element for SYST
Data type: SYCHAR01Default: 'X'
Optional: Yes
Call by Reference: Yes
OLD_FUNC -
Data type: SYCHAR01Default: SPACE
Optional: No
Call by Reference: Yes
CHANGING Parameters details for RS_QUALIFY_ABAP_TOKENS_STR
STOKESX_TAB -
Data type: SANA_STOKESX_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_LOAD_PATTERN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_KEYWORD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MATCHING_STATEMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MEANINGLESS_STATEMENT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RS_QUALIFY_ABAP_TOKENS_STR 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_stokesx_tab | TYPE SANA_STOKESX_TAB, " | |||
| lv_statement_type | TYPE SSTMNT-TYPE, " | |||
| lv_error_load_pattern | TYPE SSTMNT, " | |||
| lv_index_from | TYPE SSTMNT-FROM, " | |||
| lv_unknown_keyword | TYPE SSTMNT, " | |||
| lv_index_to | TYPE SSTMNT-TO, " | |||
| lv_no_matching_statement | TYPE SSTMNT, " | |||
| lv_simplified | TYPE C, " SPACE | |||
| lv_meaningless_statement | TYPE C, " | |||
| lv_debug | TYPE SYCHAR01, " SPACE | |||
| lv_shm | TYPE SYCHAR01, " 'X' | |||
| lv_old_func | TYPE SYCHAR01. " SPACE |
|   CALL FUNCTION 'RS_QUALIFY_ABAP_TOKENS_STR' " |
| EXPORTING | ||
| STATEMENT_TYPE | = lv_statement_type | |
| INDEX_FROM | = lv_index_from | |
| INDEX_TO | = lv_index_to | |
| SIMPLIFIED | = lv_simplified | |
| DEBUG | = lv_debug | |
| SHM | = lv_shm | |
| OLD_FUNC | = lv_old_func | |
| CHANGING | ||
| STOKESX_TAB | = lv_stokesx_tab | |
| EXCEPTIONS | ||
| ERROR_LOAD_PATTERN = 1 | ||
| UNKNOWN_KEYWORD = 2 | ||
| NO_MATCHING_STATEMENT = 3 | ||
| MEANINGLESS_STATEMENT = 4 | ||
| . " RS_QUALIFY_ABAP_TOKENS_STR | ||
ABAP code using 7.40 inline data declarations to call FM RS_QUALIFY_ABAP_TOKENS_STR
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 TYPE FROM SSTMNT INTO @DATA(ld_statement_type). | ||||
| "SELECT single FROM FROM SSTMNT INTO @DATA(ld_index_from). | ||||
| "SELECT single TO FROM SSTMNT INTO @DATA(ld_index_to). | ||||
| DATA(ld_simplified) | = ' '. | |||
| DATA(ld_debug) | = ' '. | |||
| DATA(ld_shm) | = 'X'. | |||
| DATA(ld_old_func) | = ' '. | |||
Search for further information about these or an SAP related objects