SAP G_GLU1_SELECTION_LOCAL_DOC Function Module for









G_GLU1_SELECTION_LOCAL_DOC is a standard g glu1 selection local doc 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 glu1 selection local doc FM, simply by entering the name G_GLU1_SELECTION_LOCAL_DOC into the relevant SAP transaction such as SE37 or SE38.

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



Function G_GLU1_SELECTION_LOCAL_DOC 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_GLU1_SELECTION_LOCAL_DOC'"
EXPORTING
I_LEDGER = "
I_NOPLAN = "
I_BUKRS = "
I_YEAR = "
I_NR_FROM = "
* I_NR_TO = "
I_DOCCT = "

IMPORTING
E_T_SELECTION_DOC = "
E_T_SELECTION_REFDOC = "

EXCEPTIONS
ERROR_LEDGER = 1 ERROR_BUKRS = 2 ERROR_DOCNR_FROM = 3 ERROR_DOCNR_TO = 4 ERROR_YEAR = 5
.



IMPORTING Parameters details for G_GLU1_SELECTION_LOCAL_DOC

I_LEDGER -

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

I_NOPLAN -

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

I_BUKRS -

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

I_YEAR -

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

I_NR_FROM -

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

I_NR_TO -

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

I_DOCCT -

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

EXPORTING Parameters details for G_GLU1_SELECTION_LOCAL_DOC

E_T_SELECTION_DOC -

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

E_T_SELECTION_REFDOC -

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

EXCEPTIONS details

ERROR_LEDGER -

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

ERROR_BUKRS -

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

ERROR_DOCNR_FROM -

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

ERROR_DOCNR_TO -

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

ERROR_YEAR -

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

Copy and paste ABAP code example for G_GLU1_SELECTION_LOCAL_DOC 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_ledger  TYPE GLU1-RLDNR, "   
lv_error_ledger  TYPE GLU1, "   
lv_e_t_selection_doc  TYPE GUSL_T_SELECTION, "   
lv_i_noplan  TYPE GUSL_BOOL, "   
lv_error_bukrs  TYPE GUSL_BOOL, "   
lv_e_t_selection_refdoc  TYPE GUSL_T_SELECTION, "   
lv_i_bukrs  TYPE GLU1-BUKRS, "   
lv_error_docnr_from  TYPE GLU1, "   
lv_i_year  TYPE GLU1-RYEAR, "   
lv_error_docnr_to  TYPE GLU1, "   
lv_i_nr_from  TYPE RGUD0-DOCNR_FROM, "   
lv_error_year  TYPE RGUD0, "   
lv_i_nr_to  TYPE RGUD0-DOCNR_TO, "   
lv_i_docct  TYPE GLU1-DOCCT. "   

  CALL FUNCTION 'G_GLU1_SELECTION_LOCAL_DOC'  "
    EXPORTING
         I_LEDGER = lv_i_ledger
         I_NOPLAN = lv_i_noplan
         I_BUKRS = lv_i_bukrs
         I_YEAR = lv_i_year
         I_NR_FROM = lv_i_nr_from
         I_NR_TO = lv_i_nr_to
         I_DOCCT = lv_i_docct
    IMPORTING
         E_T_SELECTION_DOC = lv_e_t_selection_doc
         E_T_SELECTION_REFDOC = lv_e_t_selection_refdoc
    EXCEPTIONS
        ERROR_LEDGER = 1
        ERROR_BUKRS = 2
        ERROR_DOCNR_FROM = 3
        ERROR_DOCNR_TO = 4
        ERROR_YEAR = 5
. " G_GLU1_SELECTION_LOCAL_DOC




ABAP code using 7.40 inline data declarations to call FM G_GLU1_SELECTION_LOCAL_DOC

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 RLDNR FROM GLU1 INTO @DATA(ld_i_ledger).
 
 
 
 
 
 
"SELECT single BUKRS FROM GLU1 INTO @DATA(ld_i_bukrs).
 
 
"SELECT single RYEAR FROM GLU1 INTO @DATA(ld_i_year).
 
 
"SELECT single DOCNR_FROM FROM RGUD0 INTO @DATA(ld_i_nr_from).
 
 
"SELECT single DOCNR_TO FROM RGUD0 INTO @DATA(ld_i_nr_to).
 
"SELECT single DOCCT FROM GLU1 INTO @DATA(ld_i_docct).
 


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!