SAP RS_VARIANT_VALUES_TECH_DAT_255 Function Module for









RS_VARIANT_VALUES_TECH_DAT_255 is a standard rs variant values tech dat 255 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 variant values tech dat 255 FM, simply by entering the name RS_VARIANT_VALUES_TECH_DAT_255 into the relevant SAP transaction such as SE37 or SE38.

Function Group: SVAR
Program Name: SAPLSVAR
Main Program: SAPLSVAR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RS_VARIANT_VALUES_TECH_DAT_255 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_VARIANT_VALUES_TECH_DAT_255'"
EXPORTING
REPORT = "
VARIANT = "
* SEL_TEXT = ' ' "
* MOVE_OR_WRITE = 'W' "
* SORTED = ' ' "
* EXECUTE_DIRECT = "

IMPORTING
TECHN_DATA = "

TABLES
VARIANT_VALUES = "
* VARIANT_TEXT = "

EXCEPTIONS
VARIANT_NON_EXISTENT = 1 VARIANT_OBSOLETE = 2
.



IMPORTING Parameters details for RS_VARIANT_VALUES_TECH_DAT_255

REPORT -

Data type: RSVAR-REPORT
Optional: No
Call by Reference: No ( called with pass by value option)

VARIANT -

Data type: RSVAR-VARIANT
Optional: No
Call by Reference: No ( called with pass by value option)

SEL_TEXT -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MOVE_OR_WRITE -

Data type:
Default: 'W'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SORTED -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXECUTE_DIRECT -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RS_VARIANT_VALUES_TECH_DAT_255

TECHN_DATA -

Data type: VARID
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RS_VARIANT_VALUES_TECH_DAT_255

VARIANT_VALUES -

Data type: RSPARAMSL_255
Optional: No
Call by Reference: Yes

VARIANT_TEXT -

Data type: RSVSELTEXT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

VARIANT_NON_EXISTENT -

Data type:
Optional: No
Call by Reference: Yes

VARIANT_OBSOLETE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RS_VARIANT_VALUES_TECH_DAT_255 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_report  TYPE RSVAR-REPORT, "   
lv_techn_data  TYPE VARID, "   
lt_variant_values  TYPE STANDARD TABLE OF RSPARAMSL_255, "   
lv_variant_non_existent  TYPE RSPARAMSL_255, "   
lv_variant  TYPE RSVAR-VARIANT, "   
lt_variant_text  TYPE STANDARD TABLE OF RSVSELTEXT, "   
lv_variant_obsolete  TYPE RSVSELTEXT, "   
lv_sel_text  TYPE RSVSELTEXT, "   SPACE
lv_move_or_write  TYPE RSVSELTEXT, "   'W'
lv_sorted  TYPE RSVSELTEXT, "   SPACE
lv_execute_direct  TYPE RSVSELTEXT. "   

  CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DAT_255'  "
    EXPORTING
         REPORT = lv_report
         VARIANT = lv_variant
         SEL_TEXT = lv_sel_text
         MOVE_OR_WRITE = lv_move_or_write
         SORTED = lv_sorted
         EXECUTE_DIRECT = lv_execute_direct
    IMPORTING
         TECHN_DATA = lv_techn_data
    TABLES
         VARIANT_VALUES = lt_variant_values
         VARIANT_TEXT = lt_variant_text
    EXCEPTIONS
        VARIANT_NON_EXISTENT = 1
        VARIANT_OBSOLETE = 2
. " RS_VARIANT_VALUES_TECH_DAT_255




ABAP code using 7.40 inline data declarations to call FM RS_VARIANT_VALUES_TECH_DAT_255

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 REPORT FROM RSVAR INTO @DATA(ld_report).
 
 
 
 
"SELECT single VARIANT FROM RSVAR INTO @DATA(ld_variant).
 
 
 
DATA(ld_sel_text) = ' '.
 
DATA(ld_move_or_write) = 'W'.
 
DATA(ld_sorted) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!