SAP RSTS_OBJNAME_VALUE_HELP Function Module for VALUE HELP for TemSe Objects or Their Names
RSTS_OBJNAME_VALUE_HELP is a standard rsts objname value help SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for VALUE HELP for TemSe Objects or Their Names 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 rsts objname value help FM, simply by entering the name RSTS_OBJNAME_VALUE_HELP into the relevant SAP transaction such as SE37 or SE38.
Function Group: STM3
Program Name: SAPLSTM3
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSTS_OBJNAME_VALUE_HELP 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 'RSTS_OBJNAME_VALUE_HELP'"VALUE HELP for TemSe Objects or Their Names.
EXPORTING
* PATTERN = ' ' "Generic object name
* SINGE_OR_GENERIC = 'G' "'S'= single object, 'G' = generic
IMPORTING
OBJNAME = "Object name selected
EXCEPTIONS
NO_SELECTION = 1 NO_MATCH = 2 BAD_PATTERN = 3
IMPORTING Parameters details for RSTS_OBJNAME_VALUE_HELP
PATTERN - Generic object name
Data type: TST01-DNAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SINGE_OR_GENERIC - 'S'= single object, 'G' = generic
Data type:Default: 'G'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSTS_OBJNAME_VALUE_HELP
OBJNAME - Object name selected
Data type: TST01-DNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_SELECTION - Selection was terminated
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MATCH - There is nothing for selection
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_PATTERN - Pattern contains no placeholders
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSTS_OBJNAME_VALUE_HELP 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_objname | TYPE TST01-DNAME, " | |||
| lv_pattern | TYPE TST01-DNAME, " ' ' | |||
| lv_no_selection | TYPE TST01, " | |||
| lv_no_match | TYPE TST01, " | |||
| lv_singe_or_generic | TYPE TST01, " 'G' | |||
| lv_bad_pattern | TYPE TST01. " |
|   CALL FUNCTION 'RSTS_OBJNAME_VALUE_HELP' "VALUE HELP for TemSe Objects or Their Names |
| EXPORTING | ||
| PATTERN | = lv_pattern | |
| SINGE_OR_GENERIC | = lv_singe_or_generic | |
| IMPORTING | ||
| OBJNAME | = lv_objname | |
| EXCEPTIONS | ||
| NO_SELECTION = 1 | ||
| NO_MATCH = 2 | ||
| BAD_PATTERN = 3 | ||
| . " RSTS_OBJNAME_VALUE_HELP | ||
ABAP code using 7.40 inline data declarations to call FM RSTS_OBJNAME_VALUE_HELP
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 DNAME FROM TST01 INTO @DATA(ld_objname). | ||||
| "SELECT single DNAME FROM TST01 INTO @DATA(ld_pattern). | ||||
| DATA(ld_pattern) | = ' '. | |||
| DATA(ld_singe_or_generic) | = 'G'. | |||
Search for further information about these or an SAP related objects