SAP Function Modules

BAPI_0036_GET_LIST SAP Function module - Get list of GM budgeting entry docs.







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
remote enabled module settings


Pattern for FM BAPI_0036_GET_LIST - BAPI 0036 GET LIST





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

ABAP code example for Function Module 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).

DATA:
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 .


DATA(ld_max_rows) = 123

"populate fields of struture and append to itab
append wa_sel_grant to it_sel_grant.

"populate fields of struture and append to itab
append wa_sel_document_number to it_sel_document_number.

"populate fields of struture and append to itab
append wa_sel_version to it_sel_version.

"populate fields of struture and append to itab
append wa_sel_created_by to it_sel_created_by.

"populate fields of struture and append to itab
append wa_sel_created_on to it_sel_created_on.

"populate fields of struture and append to itab
append wa_sel_document_date to it_sel_document_date.

"populate fields of struture and append to itab
append wa_sel_posting_date to it_sel_posting_date.

"populate fields of struture and append to itab
append wa_sel_document_status to it_sel_document_status.

"populate fields of struture and append to itab
append wa_sel_reversal_status to it_sel_reversal_status.

"populate fields of struture and append to itab
append wa_sel_reversal_reference to it_sel_reversal_reference.

"populate fields of struture and append to itab
append wa_sel_document_type to it_sel_document_type.

"populate fields of struture and append to itab
append wa_sel_process to it_sel_process.

"populate fields of struture and append to itab
append wa_sel_ref_org_unit to it_sel_ref_org_unit.

"populate fields of struture and append to itab
append wa_sel_ref_document to it_sel_ref_document.

"populate fields of struture and append to itab
append wa_sel_ref_logical_system to it_sel_ref_logical_system.

"populate fields of struture and append to itab
append wa_sel_ref_procedure to it_sel_ref_procedure.

"populate fields of struture and append to itab
append wa_entry_document to it_entry_document.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_extension_out to it_extension_out.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_0036_GET_LIST' * EXPORTING * max_rows = ld_max_rows TABLES * sel_grant = it_sel_grant * sel_document_number = it_sel_document_number * sel_version = it_sel_version * sel_created_by = it_sel_created_by * sel_created_on = it_sel_created_on * sel_document_date = it_sel_document_date * sel_posting_date = it_sel_posting_date * sel_document_status = it_sel_document_status * sel_reversal_status = it_sel_reversal_status * sel_reversal_reference = it_sel_reversal_reference * sel_document_type = it_sel_document_type * sel_process = it_sel_process * sel_ref_org_unit = it_sel_ref_org_unit * sel_ref_document = it_sel_ref_document * sel_ref_logical_system = it_sel_ref_logical_system * sel_ref_procedure = it_sel_ref_procedure entry_document = it_entry_document * extension_in = it_extension_in * extension_out = it_extension_out * return = it_return . " BAPI_0036_GET_LIST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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.


ld_max_rows = 123

"populate fields of struture and append to itab
append wa_sel_grant to it_sel_grant.

"populate fields of struture and append to itab
append wa_sel_document_number to it_sel_document_number.

"populate fields of struture and append to itab
append wa_sel_version to it_sel_version.

"populate fields of struture and append to itab
append wa_sel_created_by to it_sel_created_by.

"populate fields of struture and append to itab
append wa_sel_created_on to it_sel_created_on.

"populate fields of struture and append to itab
append wa_sel_document_date to it_sel_document_date.

"populate fields of struture and append to itab
append wa_sel_posting_date to it_sel_posting_date.

"populate fields of struture and append to itab
append wa_sel_document_status to it_sel_document_status.

"populate fields of struture and append to itab
append wa_sel_reversal_status to it_sel_reversal_status.

"populate fields of struture and append to itab
append wa_sel_reversal_reference to it_sel_reversal_reference.

"populate fields of struture and append to itab
append wa_sel_document_type to it_sel_document_type.

"populate fields of struture and append to itab
append wa_sel_process to it_sel_process.

"populate fields of struture and append to itab
append wa_sel_ref_org_unit to it_sel_ref_org_unit.

"populate fields of struture and append to itab
append wa_sel_ref_document to it_sel_ref_document.

"populate fields of struture and append to itab
append wa_sel_ref_logical_system to it_sel_ref_logical_system.

"populate fields of struture and append to itab
append wa_sel_ref_procedure to it_sel_ref_procedure.

"populate fields of struture and append to itab
append wa_entry_document to it_entry_document.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_extension_out to it_extension_out.

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM BAPI_0036_GET_LIST


With this method you can get a list of existing Grants Management budget documents ...See here for full SAP fm documentation


Contribute (Add Comments)

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.