SAP J_3G_SORTIERVARIANTE Function Module for ETM: Get/Create Sort Variant for List Tool
J_3G_SORTIERVARIANTE is a standard j 3g sortiervariante SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ETM: Get/Create Sort Variant for List Tool 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 j 3g sortiervariante FM, simply by entering the name J_3G_SORTIERVARIANTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: J3GZ
Program Name: SAPLJ3GZ
Main Program: SAPLJ3GZ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_3G_SORTIERVARIANTE 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 'J_3G_SORTIERVARIANTE'"ETM: Get/Create Sort Variant for List Tool.
EXPORTING
T_FELDER = "
* I_VARIANTE = ' ' "
I_REPID = "
* I_READ_ONLY = 'X' "
IMPORTING
E_TOTALS_ONLY = "
TABLES
T_SORTDEF = "
IMPORTING Parameters details for J_3G_SORTIERVARIANTE
T_FELDER -
Data type: KKBLO_T_FIELDCATOptional: No
Call by Reference: No ( called with pass by value option)
I_VARIANTE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REPID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_READ_ONLY -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_3G_SORTIERVARIANTE
E_TOTALS_ONLY -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for J_3G_SORTIERVARIANTE
T_SORTDEF -
Data type: KKBLO_T_SORTINFOOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_3G_SORTIERVARIANTE 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_t_felder | TYPE KKBLO_T_FIELDCAT, " | |||
| lt_t_sortdef | TYPE STANDARD TABLE OF KKBLO_T_SORTINFO, " | |||
| lv_e_totals_only | TYPE C, " | |||
| lv_i_variante | TYPE C, " SPACE | |||
| lv_i_repid | TYPE C, " | |||
| lv_i_read_only | TYPE C. " 'X' |
|   CALL FUNCTION 'J_3G_SORTIERVARIANTE' "ETM: Get/Create Sort Variant for List Tool |
| EXPORTING | ||
| T_FELDER | = lv_t_felder | |
| I_VARIANTE | = lv_i_variante | |
| I_REPID | = lv_i_repid | |
| I_READ_ONLY | = lv_i_read_only | |
| IMPORTING | ||
| E_TOTALS_ONLY | = lv_e_totals_only | |
| TABLES | ||
| T_SORTDEF | = lt_t_sortdef | |
| . " J_3G_SORTIERVARIANTE | ||
ABAP code using 7.40 inline data declarations to call FM J_3G_SORTIERVARIANTE
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.| DATA(ld_i_variante) | = ' '. | |||
| DATA(ld_i_read_only) | = 'X'. | |||
Search for further information about these or an SAP related objects