SAP G_GET_TABLES Function Module for









G_GET_TABLES is a standard g get tables 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 get tables FM, simply by entering the name G_GET_TABLES into the relevant SAP transaction such as SE37 or SE38.

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



Function G_GET_TABLES 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_GET_TABLES'"
EXPORTING
* I_TT = 'X' "
* I_AL = "
* I_AS = "Checkbox
* I_VL = "
* I_T000C_SENSITIVE = "Checkbox
* I_SI = "
* I_SP = "
* I_RI = "
* I_RP = "
* I_ST = "
* I_VM = "
* I_CM = "
* I_CT = "

TABLES
E_T800A = "

EXCEPTIONS
NO_TTYPE_SPECIFIED = 1 NO_TABLES_FOUND = 2
.



IMPORTING Parameters details for G_GET_TABLES

I_TT -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_AL -

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

I_AS - Checkbox

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

I_VL -

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

I_T000C_SENSITIVE - Checkbox

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

I_SI -

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

I_SP -

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

I_RI -

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

I_RP -

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

I_ST -

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

I_VM -

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

I_CM -

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

I_CT -

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

TABLES Parameters details for G_GET_TABLES

E_T800A -

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

EXCEPTIONS details

NO_TTYPE_SPECIFIED -

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

NO_TABLES_FOUND -

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

Copy and paste ABAP code example for G_GET_TABLES 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_tt  TYPE XFELD, "   'X'
lt_e_t800a  TYPE STANDARD TABLE OF T800A, "   
lv_no_ttype_specified  TYPE T800A, "   
lv_i_al  TYPE XFELD, "   
lv_i_as  TYPE XFELD, "   
lv_i_vl  TYPE XFELD, "   
lv_i_t000c_sensitive  TYPE XFELD, "   
lv_i_si  TYPE XFELD, "   
lv_no_tables_found  TYPE XFELD, "   
lv_i_sp  TYPE XFELD, "   
lv_i_ri  TYPE XFELD, "   
lv_i_rp  TYPE XFELD, "   
lv_i_st  TYPE XFELD, "   
lv_i_vm  TYPE XFELD, "   
lv_i_cm  TYPE XFELD, "   
lv_i_ct  TYPE XFELD. "   

  CALL FUNCTION 'G_GET_TABLES'  "
    EXPORTING
         I_TT = lv_i_tt
         I_AL = lv_i_al
         I_AS = lv_i_as
         I_VL = lv_i_vl
         I_T000C_SENSITIVE = lv_i_t000c_sensitive
         I_SI = lv_i_si
         I_SP = lv_i_sp
         I_RI = lv_i_ri
         I_RP = lv_i_rp
         I_ST = lv_i_st
         I_VM = lv_i_vm
         I_CM = lv_i_cm
         I_CT = lv_i_ct
    TABLES
         E_T800A = lt_e_t800a
    EXCEPTIONS
        NO_TTYPE_SPECIFIED = 1
        NO_TABLES_FOUND = 2
. " G_GET_TABLES




ABAP code using 7.40 inline data declarations to call FM G_GET_TABLES

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_tt) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!