SAP THMEX_IMPORT_VARI_INDX Function Module for THMEX: Import Filter Variant from GTHMEXINDX Table









THMEX_IMPORT_VARI_INDX is a standard thmex import vari indx SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for THMEX: Import Filter Variant from GTHMEXINDX Table 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 thmex import vari indx FM, simply by entering the name THMEX_IMPORT_VARI_INDX into the relevant SAP transaction such as SE37 or SE38.

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



Function THMEX_IMPORT_VARI_INDX 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 'THMEX_IMPORT_VARI_INDX'"THMEX: Import Filter Variant from GTHMEXINDX Table
EXPORTING
IM_UNAME = "SAP System, User Logon Name
IM_REPID = "Loops, Current Loop Pass
IM_LISTNO = "List Number of Program
IM_BUKRS = "Company Code

IMPORTING
EX_STR_VARIANT = "Layout (External Use)
.



IMPORTING Parameters details for THMEX_IMPORT_VARI_INDX

IM_UNAME - SAP System, User Logon Name

Data type: SY-UNAME
Optional: No
Call by Reference: Yes

IM_REPID - Loops, Current Loop Pass

Data type: SY-CPROG
Optional: No
Call by Reference: Yes

IM_LISTNO - List Number of Program

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

IM_BUKRS - Company Code

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

EXPORTING Parameters details for THMEX_IMPORT_VARI_INDX

EX_STR_VARIANT - Layout (External Use)

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

Copy and paste ABAP code example for THMEX_IMPORT_VARI_INDX 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_im_uname  TYPE SY-UNAME, "   
lv_ex_str_variant  TYPE DISVARIANT, "   
lv_im_repid  TYPE SY-CPROG, "   
lv_im_listno  TYPE THA_LISTNO, "   
lv_im_bukrs  TYPE BUKRS. "   

  CALL FUNCTION 'THMEX_IMPORT_VARI_INDX'  "THMEX: Import Filter Variant from GTHMEXINDX Table
    EXPORTING
         IM_UNAME = lv_im_uname
         IM_REPID = lv_im_repid
         IM_LISTNO = lv_im_listno
         IM_BUKRS = lv_im_bukrs
    IMPORTING
         EX_STR_VARIANT = lv_ex_str_variant
. " THMEX_IMPORT_VARI_INDX




ABAP code using 7.40 inline data declarations to call FM THMEX_IMPORT_VARI_INDX

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 UNAME FROM SY INTO @DATA(ld_im_uname).
 
 
"SELECT single CPROG FROM SY INTO @DATA(ld_im_repid).
 
 
 


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!