SAP RS_HDSYS_VALUES_SC_VARIANT Function Module for
RS_HDSYS_VALUES_SC_VARIANT is a standard rs hdsys values sc variant 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 hdsys values sc variant FM, simply by entering the name RS_HDSYS_VALUES_SC_VARIANT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SHDU
Program Name: SAPLSHDU
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RS_HDSYS_VALUES_SC_VARIANT 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_HDSYS_VALUES_SC_VARIANT'".
EXPORTING
* I_PROGNAME = "
* I_DYNPRO = "
* I_LISTE = 'X' "Output as List
* TEXTS_TOO = ' ' "
* POPUP = ' ' "
* POPUP_X1 = 15 "
* POPUP_Y1 = 05 "
* POPUP_X2 = 65 "
* POPUP_Y2 = 20 "
IMPORTING
E_SCVARIANT = "
TABLES
* E_SHDSVCI = "
* E_SHDSVTXCI = "
* X_SHDSVCI = "
EXCEPTIONS
CANCELLED = 1 NO_VARIANTS = 2
IMPORTING Parameters details for RS_HDSYS_VALUES_SC_VARIANT
I_PROGNAME -
Data type: SHDSVCI-PROGNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DYNPRO -
Data type: SHDSVCI-DYNPROOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LISTE - Output as List
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXTS_TOO -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_X1 -
Data type: IDefault: 15
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_Y1 -
Data type: IDefault: 05
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_X2 -
Data type: IDefault: 65
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_Y2 -
Data type: IDefault: 20
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RS_HDSYS_VALUES_SC_VARIANT
E_SCVARIANT -
Data type: SHDSVCI-SCVARIANTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RS_HDSYS_VALUES_SC_VARIANT
E_SHDSVCI -
Data type: SHDSVCIOptional: Yes
Call by Reference: No ( called with pass by value option)
E_SHDSVTXCI -
Data type: SHDSVTXCIOptional: Yes
Call by Reference: No ( called with pass by value option)
X_SHDSVCI -
Data type: SHDSVCIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED - No variant chosen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VARIANTS - No variants available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RS_HDSYS_VALUES_SC_VARIANT 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_cancelled | TYPE STRING, " | |||
| lt_e_shdsvci | TYPE STANDARD TABLE OF SHDSVCI, " | |||
| lv_i_progname | TYPE SHDSVCI-PROGNAME, " | |||
| lv_e_scvariant | TYPE SHDSVCI-SCVARIANT, " | |||
| lv_i_dynpro | TYPE SHDSVCI-DYNPRO, " | |||
| lt_e_shdsvtxci | TYPE STANDARD TABLE OF SHDSVTXCI, " | |||
| lv_no_variants | TYPE SHDSVTXCI, " | |||
| lv_i_liste | TYPE SHDSVTXCI, " 'X' | |||
| lt_x_shdsvci | TYPE STANDARD TABLE OF SHDSVCI, " | |||
| lv_texts_too | TYPE SHDSVCI, " SPACE | |||
| lv_popup | TYPE SHDSVCI, " SPACE | |||
| lv_popup_x1 | TYPE I, " 15 | |||
| lv_popup_y1 | TYPE I, " 05 | |||
| lv_popup_x2 | TYPE I, " 65 | |||
| lv_popup_y2 | TYPE I. " 20 |
|   CALL FUNCTION 'RS_HDSYS_VALUES_SC_VARIANT' " |
| EXPORTING | ||
| I_PROGNAME | = lv_i_progname | |
| I_DYNPRO | = lv_i_dynpro | |
| I_LISTE | = lv_i_liste | |
| TEXTS_TOO | = lv_texts_too | |
| POPUP | = lv_popup | |
| POPUP_X1 | = lv_popup_x1 | |
| POPUP_Y1 | = lv_popup_y1 | |
| POPUP_X2 | = lv_popup_x2 | |
| POPUP_Y2 | = lv_popup_y2 | |
| IMPORTING | ||
| E_SCVARIANT | = lv_e_scvariant | |
| TABLES | ||
| E_SHDSVCI | = lt_e_shdsvci | |
| E_SHDSVTXCI | = lt_e_shdsvtxci | |
| X_SHDSVCI | = lt_x_shdsvci | |
| EXCEPTIONS | ||
| CANCELLED = 1 | ||
| NO_VARIANTS = 2 | ||
| . " RS_HDSYS_VALUES_SC_VARIANT | ||
ABAP code using 7.40 inline data declarations to call FM RS_HDSYS_VALUES_SC_VARIANT
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 PROGNAME FROM SHDSVCI INTO @DATA(ld_i_progname). | ||||
| "SELECT single SCVARIANT FROM SHDSVCI INTO @DATA(ld_e_scvariant). | ||||
| "SELECT single DYNPRO FROM SHDSVCI INTO @DATA(ld_i_dynpro). | ||||
| DATA(ld_i_liste) | = 'X'. | |||
| DATA(ld_texts_too) | = ' '. | |||
| DATA(ld_popup) | = ' '. | |||
| DATA(ld_popup_x1) | = 15. | |||
| DATA(ld_popup_y1) | = 05. | |||
| DATA(ld_popup_x2) | = 65. | |||
| DATA(ld_popup_y2) | = 20. | |||
Search for further information about these or an SAP related objects