SAP G_SET_FETCH_BUFFER Function Module for









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

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



Function G_SET_FETCH_BUFFER 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_SET_FETCH_BUFFER'"
EXPORTING
* LANGU = "
SETNR = "
* NO_TITLES = ' ' "

IMPORTING
SET_HEADER = "
READ_BUFFER = "

TABLES
* FORMULA_LINES = "
* SET_LINES_BASIC = "
* SET_LINES_DATA = "
* SET_LINES_MULTI = "
* SET_LINES_SINGLE = "

EXCEPTIONS
NO_AUTHORITY = 1 SET_IS_BROKEN = 2 SET_NOT_FOUND = 3
.



IMPORTING Parameters details for G_SET_FETCH_BUFFER

LANGU -

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

SETNR -

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

NO_TITLES -

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

EXPORTING Parameters details for G_SET_FETCH_BUFFER

SET_HEADER -

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

READ_BUFFER -

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

TABLES Parameters details for G_SET_FETCH_BUFFER

FORMULA_LINES -

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

SET_LINES_BASIC -

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

SET_LINES_DATA -

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

SET_LINES_MULTI -

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

SET_LINES_SINGLE -

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

EXCEPTIONS details

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

SET_IS_BROKEN -

Data type:
Optional: No
Call by Reference: Yes

SET_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for G_SET_FETCH_BUFFER 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_langu  TYPE SY-LANGU, "   
lv_set_header  TYPE RGSBS, "   
lv_no_authority  TYPE RGSBS, "   
lt_formula_lines  TYPE STANDARD TABLE OF RGSBF, "   
lv_setnr  TYPE C, "   
lv_read_buffer  TYPE XFELD, "   
lv_set_is_broken  TYPE XFELD, "   
lt_set_lines_basic  TYPE STANDARD TABLE OF RGSBV, "   
lv_no_titles  TYPE C, "   SPACE
lv_set_not_found  TYPE C, "   
lt_set_lines_data  TYPE STANDARD TABLE OF RGSB3, "   
lt_set_lines_multi  TYPE STANDARD TABLE OF RGSB2, "   
lt_set_lines_single  TYPE STANDARD TABLE OF RGSB1. "   

  CALL FUNCTION 'G_SET_FETCH_BUFFER'  "
    EXPORTING
         LANGU = lv_langu
         SETNR = lv_setnr
         NO_TITLES = lv_no_titles
    IMPORTING
         SET_HEADER = lv_set_header
         READ_BUFFER = lv_read_buffer
    TABLES
         FORMULA_LINES = lt_formula_lines
         SET_LINES_BASIC = lt_set_lines_basic
         SET_LINES_DATA = lt_set_lines_data
         SET_LINES_MULTI = lt_set_lines_multi
         SET_LINES_SINGLE = lt_set_lines_single
    EXCEPTIONS
        NO_AUTHORITY = 1
        SET_IS_BROKEN = 2
        SET_NOT_FOUND = 3
. " G_SET_FETCH_BUFFER




ABAP code using 7.40 inline data declarations to call FM G_SET_FETCH_BUFFER

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 LANGU FROM SY INTO @DATA(ld_langu).
 
 
 
 
 
 
 
 
DATA(ld_no_titles) = ' '.
 
 
 
 
 


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!