SAP BAPI_0038_GETLIST Function Module for Get list of Funded Programs









BAPI_0038_GETLIST is a standard bapi 0038 getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get list of Funded Programs 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 bapi 0038 getlist FM, simply by entering the name BAPI_0038_GETLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: 0038
Program Name: SAPL0038
Main Program: SAPL0038
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_0038_GETLIST 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 'BAPI_0038_GETLIST'"Get list of Funded Programs
EXPORTING
I_FMAREA = "Financial Management Area
* GET_TEXT = 'X' "Flag if texts are read from database
* MAXROWS = "Maximum number of lines of hits

TABLES
FMMEASURE = "FMMEASURE complient structure for BAPIs ( BOR: BUS0038 )
* FMMEASURET = "FMMEASURET complient structure for BAPIs ( BOR: BUS0038 )
* MEASURE_OPTIONS = "Select Options for Funded Program
* EXTENSION_IN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_0038_GETLIST

I_FMAREA - Financial Management Area

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

GET_TEXT - Flag if texts are read from database

Data type: BAPI_0038_FIELDS-GET_TEXT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAXROWS - Maximum number of lines of hits

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

TABLES Parameters details for BAPI_0038_GETLIST

FMMEASURE - FMMEASURE complient structure for BAPIs ( BOR: BUS0038 )

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

FMMEASURET - FMMEASURET complient structure for BAPIs ( BOR: BUS0038 )

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

MEASURE_OPTIONS - Select Options for Funded Program

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

EXTENSION_IN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

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

EXTENSION_OUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

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

RETURN - Return Parameter

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

Copy and paste ABAP code example for BAPI_0038_GETLIST 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_fmarea  TYPE FIKRS, "   
lt_fmmeasure  TYPE STANDARD TABLE OF BAPI_0038_FMMEASURE, "   
lv_get_text  TYPE BAPI_0038_FIELDS-GET_TEXT, "   'X'
lt_fmmeasuret  TYPE STANDARD TABLE OF BAPI_0038_FMMEASURET, "   
lv_maxrows  TYPE BAPI_0038_FIELDS-MAXROWS, "   
lt_measure_options  TYPE STANDARD TABLE OF BAPI_0038_MEASURE_OPTIONS, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_extension_out  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_0038_GETLIST'  "Get list of Funded Programs
    EXPORTING
         I_FMAREA = lv_i_fmarea
         GET_TEXT = lv_get_text
         MAXROWS = lv_maxrows
    TABLES
         FMMEASURE = lt_fmmeasure
         FMMEASURET = lt_fmmeasuret
         MEASURE_OPTIONS = lt_measure_options
         EXTENSION_IN = lt_extension_in
         EXTENSION_OUT = lt_extension_out
         RETURN = lt_return
. " BAPI_0038_GETLIST




ABAP code using 7.40 inline data declarations to call FM BAPI_0038_GETLIST

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 GET_TEXT FROM BAPI_0038_FIELDS INTO @DATA(ld_get_text).
DATA(ld_get_text) = 'X'.
 
 
"SELECT single MAXROWS FROM BAPI_0038_FIELDS INTO @DATA(ld_maxrows).
 
 
 
 
 


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!