SAP BAPI_0036_GET_LIST Function Module for Get list of GM budgeting entry docs.
BAPI_0036_GET_LIST is a standard bapi 0036 get list 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 GM budgeting entry docs. 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 0036 get list FM, simply by entering the name BAPI_0036_GET_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: 0036
Program Name: SAPL0036
Main Program: SAPL0036
Appliation area:
Release date: 26-Aug-2003
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_0036_GET_LIST 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_0036_GET_LIST'"Get list of GM budgeting entry docs..
EXPORTING
* MAX_ROWS = "Maximum number of lines of hits
TABLES
* SEL_GRANT = "GM: Selection criteria for grant
* SEL_REVERSAL_REFERENCE = "GM:Selection criteria for reversal reference document number
* SEL_DOCUMENT_TYPE = "GM: Selection criteria for document type
* SEL_PROCESS = "GM: Selection criteria for process
* SEL_REF_ORG_UNIT = "GM: Selection criteria for reference organisational unit
* SEL_REF_DOCUMENT = "GM: Selection criteria for reference document number
* SEL_REF_LOGICAL_SYSTEM = "GM:Selection criteria for logical system of source document
* SEL_REF_PROCEDURE = "GM: Selection criteria for reference procedure
ENTRY_DOCUMENT = "List of GM entry documents
* EXTENSION_IN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* SEL_DOCUMENT_NUMBER = "GM: Selection criteria for document number
* RETURN = "Return Parameter
* SEL_VERSION = "GM: Selection criteria for version
* SEL_CREATED_BY = "GM: Selection criteria for user name
* SEL_CREATED_ON = "GM: Selection criteria for creation date
* SEL_DOCUMENT_DATE = "GM: Selection criteria for document date
* SEL_POSTING_DATE = "GM: Selection criteria for posting date
* SEL_DOCUMENT_STATUS = "GM: Selection criteria for document status
* SEL_REVERSAL_STATUS = "GM: Selection criteria for reversal status
IMPORTING Parameters details for BAPI_0036_GET_LIST
MAX_ROWS - Maximum number of lines of hits
Data type: BAPI_0036_FIELDS-BAPIMAXROWOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_0036_GET_LIST
SEL_GRANT - GM: Selection criteria for grant
Data type: BAPI_0036_SELGRANTOptional: Yes
Call by Reference: Yes
SEL_REVERSAL_REFERENCE - GM:Selection criteria for reversal reference document number
Data type: BAPI_0036_SELREVREFNROptional: Yes
Call by Reference: Yes
SEL_DOCUMENT_TYPE - GM: Selection criteria for document type
Data type: BAPI_0036_SELDOCTYPEOptional: Yes
Call by Reference: Yes
SEL_PROCESS - GM: Selection criteria for process
Data type: BAPI_0036_SELPROCESSOptional: Yes
Call by Reference: Yes
SEL_REF_ORG_UNIT - GM: Selection criteria for reference organisational unit
Data type: BAPI_0036_SELREFORGUNOptional: Yes
Call by Reference: Yes
SEL_REF_DOCUMENT - GM: Selection criteria for reference document number
Data type: BAPI_0036_SELREFDOCOptional: Yes
Call by Reference: Yes
SEL_REF_LOGICAL_SYSTEM - GM:Selection criteria for logical system of source document
Data type: BAPI_0036_SELOBJSYSOptional: Yes
Call by Reference: Yes
SEL_REF_PROCEDURE - GM: Selection criteria for reference procedure
Data type: BAPI_0036_SELOBJTYPEOptional: Yes
Call by Reference: Yes
ENTRY_DOCUMENT - List of GM entry documents
Data type: BAPI_0036_LISTOptional: No
Call by Reference: Yes
EXTENSION_IN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
EXTENSION_OUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
SEL_DOCUMENT_NUMBER - GM: Selection criteria for document number
Data type: BAPI_0036_SELDOCNROptional: Yes
Call by Reference: Yes
RETURN - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
SEL_VERSION - GM: Selection criteria for version
Data type: BAPI_0036_SELVERSIONOptional: Yes
Call by Reference: Yes
SEL_CREATED_BY - GM: Selection criteria for user name
Data type: BAPI_0036_SELCREATEDBYOptional: Yes
Call by Reference: Yes
SEL_CREATED_ON - GM: Selection criteria for creation date
Data type: BAPI_0036_SELCREATEDONOptional: Yes
Call by Reference: Yes
SEL_DOCUMENT_DATE - GM: Selection criteria for document date
Data type: BAPI_0036_SELDOCDATEOptional: Yes
Call by Reference: Yes
SEL_POSTING_DATE - GM: Selection criteria for posting date
Data type: BAPI_0036_SELPOSTDATEOptional: Yes
Call by Reference: Yes
SEL_DOCUMENT_STATUS - GM: Selection criteria for document status
Data type: BAPI_0036_SELDOCSTATEOptional: Yes
Call by Reference: Yes
SEL_REVERSAL_STATUS - GM: Selection criteria for reversal status
Data type: BAPI_0036_SELREVSTATEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_0036_GET_LIST 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_max_rows | TYPE BAPI_0036_FIELDS-BAPIMAXROW, " | |||
| lt_sel_grant | TYPE STANDARD TABLE OF BAPI_0036_SELGRANT, " | |||
| lt_sel_reversal_reference | TYPE STANDARD TABLE OF BAPI_0036_SELREVREFNR, " | |||
| lt_sel_document_type | TYPE STANDARD TABLE OF BAPI_0036_SELDOCTYPE, " | |||
| lt_sel_process | TYPE STANDARD TABLE OF BAPI_0036_SELPROCESS, " | |||
| lt_sel_ref_org_unit | TYPE STANDARD TABLE OF BAPI_0036_SELREFORGUN, " | |||
| lt_sel_ref_document | TYPE STANDARD TABLE OF BAPI_0036_SELREFDOC, " | |||
| lt_sel_ref_logical_system | TYPE STANDARD TABLE OF BAPI_0036_SELOBJSYS, " | |||
| lt_sel_ref_procedure | TYPE STANDARD TABLE OF BAPI_0036_SELOBJTYPE, " | |||
| lt_entry_document | TYPE STANDARD TABLE OF BAPI_0036_LIST, " | |||
| lt_extension_in | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_extension_out | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_sel_document_number | TYPE STANDARD TABLE OF BAPI_0036_SELDOCNR, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_sel_version | TYPE STANDARD TABLE OF BAPI_0036_SELVERSION, " | |||
| lt_sel_created_by | TYPE STANDARD TABLE OF BAPI_0036_SELCREATEDBY, " | |||
| lt_sel_created_on | TYPE STANDARD TABLE OF BAPI_0036_SELCREATEDON, " | |||
| lt_sel_document_date | TYPE STANDARD TABLE OF BAPI_0036_SELDOCDATE, " | |||
| lt_sel_posting_date | TYPE STANDARD TABLE OF BAPI_0036_SELPOSTDATE, " | |||
| lt_sel_document_status | TYPE STANDARD TABLE OF BAPI_0036_SELDOCSTATE, " | |||
| lt_sel_reversal_status | TYPE STANDARD TABLE OF BAPI_0036_SELREVSTATE. " |
|   CALL FUNCTION 'BAPI_0036_GET_LIST' "Get list of GM budgeting entry docs. |
| EXPORTING | ||
| MAX_ROWS | = lv_max_rows | |
| TABLES | ||
| SEL_GRANT | = lt_sel_grant | |
| SEL_REVERSAL_REFERENCE | = lt_sel_reversal_reference | |
| SEL_DOCUMENT_TYPE | = lt_sel_document_type | |
| SEL_PROCESS | = lt_sel_process | |
| SEL_REF_ORG_UNIT | = lt_sel_ref_org_unit | |
| SEL_REF_DOCUMENT | = lt_sel_ref_document | |
| SEL_REF_LOGICAL_SYSTEM | = lt_sel_ref_logical_system | |
| SEL_REF_PROCEDURE | = lt_sel_ref_procedure | |
| ENTRY_DOCUMENT | = lt_entry_document | |
| EXTENSION_IN | = lt_extension_in | |
| EXTENSION_OUT | = lt_extension_out | |
| SEL_DOCUMENT_NUMBER | = lt_sel_document_number | |
| RETURN | = lt_return | |
| SEL_VERSION | = lt_sel_version | |
| SEL_CREATED_BY | = lt_sel_created_by | |
| SEL_CREATED_ON | = lt_sel_created_on | |
| SEL_DOCUMENT_DATE | = lt_sel_document_date | |
| SEL_POSTING_DATE | = lt_sel_posting_date | |
| SEL_DOCUMENT_STATUS | = lt_sel_document_status | |
| SEL_REVERSAL_STATUS | = lt_sel_reversal_status | |
| . " BAPI_0036_GET_LIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_0036_GET_LIST
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 BAPIMAXROW FROM BAPI_0036_FIELDS INTO @DATA(ld_max_rows). | ||||
Search for further information about these or an SAP related objects