BAPI_0036_GET_LIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_0036_GET_LIST into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
0036
Released Date:
26.08.2003
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_0036_GET_LIST' "Get list of GM budgeting entry docs.
* EXPORTING
* max_rows = " bapi_0036_fields-bapimaxrow Maximum number of lines of hits
TABLES
* sel_grant = " bapi_0036_selgrant GM: Selection criteria for grant
* sel_document_number = " bapi_0036_seldocnr GM: Selection criteria for document number
* sel_version = " bapi_0036_selversion GM: Selection criteria for version
* sel_created_by = " bapi_0036_selcreatedby GM: Selection criteria for user name
* sel_created_on = " bapi_0036_selcreatedon GM: Selection criteria for creation date
* sel_document_date = " bapi_0036_seldocdate GM: Selection criteria for document date
* sel_posting_date = " bapi_0036_selpostdate GM: Selection criteria for posting date
* sel_document_status = " bapi_0036_seldocstate GM: Selection criteria for document status
* sel_reversal_status = " bapi_0036_selrevstate GM: Selection criteria for reversal status
* sel_reversal_reference = " bapi_0036_selrevrefnr GM:Selection criteria for reversal reference document number
* sel_document_type = " bapi_0036_seldoctype GM: Selection criteria for document type
* sel_process = " bapi_0036_selprocess GM: Selection criteria for process
* sel_ref_org_unit = " bapi_0036_selreforgun GM: Selection criteria for reference organisational unit
* sel_ref_document = " bapi_0036_selrefdoc GM: Selection criteria for reference document number
* sel_ref_logical_system = " bapi_0036_selobjsys GM:Selection criteria for logical system of source document
* sel_ref_procedure = " bapi_0036_selobjtype GM: Selection criteria for reference procedure
entry_document = " bapi_0036_list List of GM entry documents
* extension_in = " bapiparex Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* extension_out = " bapiparex Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* return = " bapiret2 Return Parameter
. " BAPI_0036_GET_LIST
The ABAP code below is a full code listing to execute function module BAPI_0036_GET_LIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| it_sel_grant | TYPE STANDARD TABLE OF BAPI_0036_SELGRANT,"TABLES PARAM |
| wa_sel_grant | LIKE LINE OF it_sel_grant , |
| it_sel_document_number | TYPE STANDARD TABLE OF BAPI_0036_SELDOCNR,"TABLES PARAM |
| wa_sel_document_number | LIKE LINE OF it_sel_document_number , |
| it_sel_version | TYPE STANDARD TABLE OF BAPI_0036_SELVERSION,"TABLES PARAM |
| wa_sel_version | LIKE LINE OF it_sel_version , |
| it_sel_created_by | TYPE STANDARD TABLE OF BAPI_0036_SELCREATEDBY,"TABLES PARAM |
| wa_sel_created_by | LIKE LINE OF it_sel_created_by , |
| it_sel_created_on | TYPE STANDARD TABLE OF BAPI_0036_SELCREATEDON,"TABLES PARAM |
| wa_sel_created_on | LIKE LINE OF it_sel_created_on , |
| it_sel_document_date | TYPE STANDARD TABLE OF BAPI_0036_SELDOCDATE,"TABLES PARAM |
| wa_sel_document_date | LIKE LINE OF it_sel_document_date , |
| it_sel_posting_date | TYPE STANDARD TABLE OF BAPI_0036_SELPOSTDATE,"TABLES PARAM |
| wa_sel_posting_date | LIKE LINE OF it_sel_posting_date , |
| it_sel_document_status | TYPE STANDARD TABLE OF BAPI_0036_SELDOCSTATE,"TABLES PARAM |
| wa_sel_document_status | LIKE LINE OF it_sel_document_status , |
| it_sel_reversal_status | TYPE STANDARD TABLE OF BAPI_0036_SELREVSTATE,"TABLES PARAM |
| wa_sel_reversal_status | LIKE LINE OF it_sel_reversal_status , |
| it_sel_reversal_reference | TYPE STANDARD TABLE OF BAPI_0036_SELREVREFNR,"TABLES PARAM |
| wa_sel_reversal_reference | LIKE LINE OF it_sel_reversal_reference , |
| it_sel_document_type | TYPE STANDARD TABLE OF BAPI_0036_SELDOCTYPE,"TABLES PARAM |
| wa_sel_document_type | LIKE LINE OF it_sel_document_type , |
| it_sel_process | TYPE STANDARD TABLE OF BAPI_0036_SELPROCESS,"TABLES PARAM |
| wa_sel_process | LIKE LINE OF it_sel_process , |
| it_sel_ref_org_unit | TYPE STANDARD TABLE OF BAPI_0036_SELREFORGUN,"TABLES PARAM |
| wa_sel_ref_org_unit | LIKE LINE OF it_sel_ref_org_unit , |
| it_sel_ref_document | TYPE STANDARD TABLE OF BAPI_0036_SELREFDOC,"TABLES PARAM |
| wa_sel_ref_document | LIKE LINE OF it_sel_ref_document , |
| it_sel_ref_logical_system | TYPE STANDARD TABLE OF BAPI_0036_SELOBJSYS,"TABLES PARAM |
| wa_sel_ref_logical_system | LIKE LINE OF it_sel_ref_logical_system , |
| it_sel_ref_procedure | TYPE STANDARD TABLE OF BAPI_0036_SELOBJTYPE,"TABLES PARAM |
| wa_sel_ref_procedure | LIKE LINE OF it_sel_ref_procedure , |
| it_entry_document | TYPE STANDARD TABLE OF BAPI_0036_LIST,"TABLES PARAM |
| wa_entry_document | LIKE LINE OF it_entry_document , |
| it_extension_in | TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM |
| wa_extension_in | LIKE LINE OF it_extension_in , |
| it_extension_out | TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM |
| wa_extension_out | LIKE LINE OF it_extension_out , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_max_rows | TYPE BAPI_0036_FIELDS-BAPIMAXROW , |
| it_sel_grant | TYPE STANDARD TABLE OF BAPI_0036_SELGRANT , |
| wa_sel_grant | LIKE LINE OF it_sel_grant, |
| it_sel_document_number | TYPE STANDARD TABLE OF BAPI_0036_SELDOCNR , |
| wa_sel_document_number | LIKE LINE OF it_sel_document_number, |
| it_sel_version | TYPE STANDARD TABLE OF BAPI_0036_SELVERSION , |
| wa_sel_version | LIKE LINE OF it_sel_version, |
| it_sel_created_by | TYPE STANDARD TABLE OF BAPI_0036_SELCREATEDBY , |
| wa_sel_created_by | LIKE LINE OF it_sel_created_by, |
| it_sel_created_on | TYPE STANDARD TABLE OF BAPI_0036_SELCREATEDON , |
| wa_sel_created_on | LIKE LINE OF it_sel_created_on, |
| it_sel_document_date | TYPE STANDARD TABLE OF BAPI_0036_SELDOCDATE , |
| wa_sel_document_date | LIKE LINE OF it_sel_document_date, |
| it_sel_posting_date | TYPE STANDARD TABLE OF BAPI_0036_SELPOSTDATE , |
| wa_sel_posting_date | LIKE LINE OF it_sel_posting_date, |
| it_sel_document_status | TYPE STANDARD TABLE OF BAPI_0036_SELDOCSTATE , |
| wa_sel_document_status | LIKE LINE OF it_sel_document_status, |
| it_sel_reversal_status | TYPE STANDARD TABLE OF BAPI_0036_SELREVSTATE , |
| wa_sel_reversal_status | LIKE LINE OF it_sel_reversal_status, |
| it_sel_reversal_reference | TYPE STANDARD TABLE OF BAPI_0036_SELREVREFNR , |
| wa_sel_reversal_reference | LIKE LINE OF it_sel_reversal_reference, |
| it_sel_document_type | TYPE STANDARD TABLE OF BAPI_0036_SELDOCTYPE , |
| wa_sel_document_type | LIKE LINE OF it_sel_document_type, |
| it_sel_process | TYPE STANDARD TABLE OF BAPI_0036_SELPROCESS , |
| wa_sel_process | LIKE LINE OF it_sel_process, |
| it_sel_ref_org_unit | TYPE STANDARD TABLE OF BAPI_0036_SELREFORGUN , |
| wa_sel_ref_org_unit | LIKE LINE OF it_sel_ref_org_unit, |
| it_sel_ref_document | TYPE STANDARD TABLE OF BAPI_0036_SELREFDOC , |
| wa_sel_ref_document | LIKE LINE OF it_sel_ref_document, |
| it_sel_ref_logical_system | TYPE STANDARD TABLE OF BAPI_0036_SELOBJSYS , |
| wa_sel_ref_logical_system | LIKE LINE OF it_sel_ref_logical_system, |
| it_sel_ref_procedure | TYPE STANDARD TABLE OF BAPI_0036_SELOBJTYPE , |
| wa_sel_ref_procedure | LIKE LINE OF it_sel_ref_procedure, |
| it_entry_document | TYPE STANDARD TABLE OF BAPI_0036_LIST , |
| wa_entry_document | LIKE LINE OF it_entry_document, |
| it_extension_in | TYPE STANDARD TABLE OF BAPIPAREX , |
| wa_extension_in | LIKE LINE OF it_extension_in, |
| it_extension_out | TYPE STANDARD TABLE OF BAPIPAREX , |
| wa_extension_out | LIKE LINE OF it_extension_out, |
| it_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return | LIKE LINE OF it_return. |
With this method you can get a list of existing Grants Management budget
documents
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_0036_GET_LIST or its description.
BAPI_0036_GET_LIST - Get list of GM budgeting entry docs. BAPI_0036_GET_DETAIL - Get the detail of a GM budget entry document BAPI_0036_CREATE - Create GM Budgeting Entry Document BAPI_0035_GET_DETAIL - Get detail of grant master data BAPI_0035_CREATE - Create GM grant master data BAPI_0035_CHANGE - Change grant master data