SAP G_TRANSFORM_TAB_TO_GLU1_GLU2 Function Module for









G_TRANSFORM_TAB_TO_GLU1_GLU2 is a standard g transform tab to glu1 glu2 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 g transform tab to glu1 glu2 FM, simply by entering the name G_TRANSFORM_TAB_TO_GLU1_GLU2 into the relevant SAP transaction such as SE37 or SE38.

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



Function G_TRANSFORM_TAB_TO_GLU1_GLU2 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 'G_TRANSFORM_TAB_TO_GLU1_GLU2'"
EXPORTING
I_TAB = "
* I_SORT = ' ' "
* I_POPER_FR = 000 "
* I_POPER_TO = 999 "

TABLES
T_TABLE = "
T_GLU1 = "
T_GLU2 = "

EXCEPTIONS
GLU1_AND_GLU2_INCONSISTENT = 1 ERROR_IN_PERIODS = 2
.



IMPORTING Parameters details for G_TRANSFORM_TAB_TO_GLU1_GLU2

I_TAB -

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

I_SORT -

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

I_POPER_FR -

Data type: GLU1-POPER
Default: 000
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POPER_TO -

Data type: GLU1-POPER
Default: 999
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for G_TRANSFORM_TAB_TO_GLU1_GLU2

T_TABLE -

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

T_GLU1 -

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

T_GLU2 -

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

EXCEPTIONS details

GLU1_AND_GLU2_INCONSISTENT -

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

ERROR_IN_PERIODS -

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

Copy and paste ABAP code example for G_TRANSFORM_TAB_TO_GLU1_GLU2 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_i_tab  TYPE T800A-TAB, "   
lt_t_table  TYPE STANDARD TABLE OF T800A, "   
lv_glu1_and_glu2_inconsistent  TYPE T800A, "   
lv_i_sort  TYPE T800A, "   SPACE
lt_t_glu1  TYPE STANDARD TABLE OF GLU1, "   
lv_error_in_periods  TYPE GLU1, "   
lt_t_glu2  TYPE STANDARD TABLE OF GLU2, "   
lv_i_poper_fr  TYPE GLU1-POPER, "   000
lv_i_poper_to  TYPE GLU1-POPER. "   999

  CALL FUNCTION 'G_TRANSFORM_TAB_TO_GLU1_GLU2'  "
    EXPORTING
         I_TAB = lv_i_tab
         I_SORT = lv_i_sort
         I_POPER_FR = lv_i_poper_fr
         I_POPER_TO = lv_i_poper_to
    TABLES
         T_TABLE = lt_t_table
         T_GLU1 = lt_t_glu1
         T_GLU2 = lt_t_glu2
    EXCEPTIONS
        GLU1_AND_GLU2_INCONSISTENT = 1
        ERROR_IN_PERIODS = 2
. " G_TRANSFORM_TAB_TO_GLU1_GLU2




ABAP code using 7.40 inline data declarations to call FM G_TRANSFORM_TAB_TO_GLU1_GLU2

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 TAB FROM T800A INTO @DATA(ld_i_tab).
 
 
 
DATA(ld_i_sort) = ' '.
 
 
 
 
"SELECT single POPER FROM GLU1 INTO @DATA(ld_i_poper_fr).
DATA(ld_i_poper_fr) = 000.
 
"SELECT single POPER FROM GLU1 INTO @DATA(ld_i_poper_to).
DATA(ld_i_poper_to) = 999.
 


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!