SAP BAPI_PROCESS_GETLIST Function Module for List of business processes per selection conditions
BAPI_PROCESS_GETLIST is a standard bapi process 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 List of business processes per selection conditions 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 process getlist FM, simply by entering the name BAPI_PROCESS_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1036
Program Name: SAPL1036
Main Program: SAPL1036
Appliation area: K
Release date: 12-May-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_PROCESS_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_PROCESS_GETLIST'"List of business processes per selection conditions.
EXPORTING
* CONTROLLINGAREA = "Controlling area
* ALLOCATIONCOSTELEMENT = "Allocation cost element (from value)
* ALLOCATIONCOSTELEMENTTO = "Allocation cost element (to value)
* ALLOCATIONCATEGORY = "Allocation category (from value)
* ALLOCATIONCATEGORYTO = "Allocation category (to value)
* PRICEINDICATOR = "Price indicator (from value)
* PRICEINDICATORTO = "Price indicator (to value)
* DATEFROM = SY-DATUM "Validity period: Start
* DATETO = "Validity period: End
* MASTER_DATA_INACTIVE = "Master Record Inactive
* PROCESS_OWNER_USER = "User Responsible for Business Process (From-Value)
* COMPANYCODE = "Company code (from value)
* PROCESS_OWNER_USER_TO = "User Responsible for Business Process (To-Value)
* STATISTICAL = "Indicator 'Statistical Business Process'
* COMPANYCODETO = "Company code (to value)
* BUSINESSPROCESS = "Business process (from value)
* BUSINESSPROCESSTO = "Business process (to value)
* PROCESSOWNER = "Person Responsible (From-Value)
* PROCESSOWNERTO = "Person Responsible (To-Value)
* BUSINESSPROCESSUNIT = "Unit of measurement (from value)
* BUSINESSPROCESSUNITTO = "Unit of measurement (to value)
TABLES
BUSINESSPROCESSLIST = "Return table: List of business processes
RETURN = "Return parameter (error table)
* EXTENSIONIN = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
* EXTENSIONOUT = "Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPL1036_001 Exit 1 (Input) for BusinessProcess.CreateMultiple
EXIT_SAPL1036_002 Exit 2 (Output) for BusinessProcess.CreateMultiple
EXIT_SAPL1036_003 Exit 1 (Input) for BusinessProcess.ChangeMultiple
EXIT_SAPL1036_004 Exit 2 (Output) for BusinessProcess.ChangeMultiple
EXIT_SAPL1036_005 Exit 1 (Input) for BusinessProcess.CheckMultiple
EXIT_SAPL1036_006 Exit 2 (Output) for BusinessProcess.CheckMultiple
EXIT_SAPL1036_007 Exit 1 (Input) for BusinessProcess.GetList
EXIT_SAPL1036_008 Exit 2 (Output) for BusinessProcess.GetList
EXIT_SAPL1036_009 Exit 1 (Input) for BusinessProcess.GetDetail
EXIT_SAPL1036_010 Exit 2 (Output) for BusinessProcess.GetDetail
IMPORTING Parameters details for BAPI_PROCESS_GETLIST
CONTROLLINGAREA - Controlling area
Data type: BAPI1036_GEN-CO_AREAOptional: Yes
Call by Reference: No ( called with pass by value option)
ALLOCATIONCOSTELEMENT - Allocation cost element (from value)
Data type: BAPI1036_GEN-ALLOC_CST_ELMOptional: Yes
Call by Reference: No ( called with pass by value option)
ALLOCATIONCOSTELEMENTTO - Allocation cost element (to value)
Data type: BAPI1036_GEN-ALLOC_CST_ELMOptional: Yes
Call by Reference: No ( called with pass by value option)
ALLOCATIONCATEGORY - Allocation category (from value)
Data type: BAPI1036_GEN-ALLOC_CATEGRYOptional: Yes
Call by Reference: No ( called with pass by value option)
ALLOCATIONCATEGORYTO - Allocation category (to value)
Data type: BAPI1036_GEN-ALLOC_CATEGRYOptional: Yes
Call by Reference: No ( called with pass by value option)
PRICEINDICATOR - Price indicator (from value)
Data type: BAPI1036_GEN-PRICE_INDICTROptional: Yes
Call by Reference: No ( called with pass by value option)
PRICEINDICATORTO - Price indicator (to value)
Data type: BAPI1036_GEN-PRICE_INDICTROptional: Yes
Call by Reference: No ( called with pass by value option)
DATEFROM - Validity period: Start
Data type: BAPI1036_GEN-SOME_DATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATETO - Validity period: End
Data type: BAPI1036_GEN-SOME_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
MASTER_DATA_INACTIVE - Master Record Inactive
Data type: BAPI1036_GEN-MASTER_DATA_INACTIVEOptional: Yes
Call by Reference: No ( called with pass by value option)
PROCESS_OWNER_USER - User Responsible for Business Process (From-Value)
Data type: BAPI1036_GEN-PROCESS_OWNER_USEROptional: Yes
Call by Reference: No ( called with pass by value option)
COMPANYCODE - Company code (from value)
Data type: BAPI1036_GEN-COMP_CODEOptional: Yes
Call by Reference: No ( called with pass by value option)
PROCESS_OWNER_USER_TO - User Responsible for Business Process (To-Value)
Data type: BAPI1036_GEN-PROCESS_OWNER_USEROptional: Yes
Call by Reference: No ( called with pass by value option)
STATISTICAL - Indicator 'Statistical Business Process'
Data type: BAPI1036_GEN-STATISTICALOptional: Yes
Call by Reference: No ( called with pass by value option)
COMPANYCODETO - Company code (to value)
Data type: BAPI1036_GEN-COMP_CODEOptional: Yes
Call by Reference: No ( called with pass by value option)
BUSINESSPROCESS - Business process (from value)
Data type: BAPI1036_GEN-CO_BUSPROCOptional: Yes
Call by Reference: No ( called with pass by value option)
BUSINESSPROCESSTO - Business process (to value)
Data type: BAPI1036_GEN-CO_BUSPROCOptional: Yes
Call by Reference: No ( called with pass by value option)
PROCESSOWNER - Person Responsible (From-Value)
Data type: BAPI1036_GEN-PROCESS_OWNEROptional: Yes
Call by Reference: No ( called with pass by value option)
PROCESSOWNERTO - Person Responsible (To-Value)
Data type: BAPI1036_GEN-PROCESS_OWNEROptional: Yes
Call by Reference: No ( called with pass by value option)
BUSINESSPROCESSUNIT - Unit of measurement (from value)
Data type: BAPI1036_GEN-COST_DRIVEROptional: Yes
Call by Reference: No ( called with pass by value option)
BUSINESSPROCESSUNITTO - Unit of measurement (to value)
Data type: BAPI1036_GEN-COST_DRIVEROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PROCESS_GETLIST
BUSINESSPROCESSLIST - Return table: List of business processes
Data type: BAPI1036_BPLISTOptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return parameter (error table)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
EXTENSIONIN - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
EXTENSIONOUT - Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_PROCESS_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_controllingarea | TYPE BAPI1036_GEN-CO_AREA, " | |||
| lt_businessprocesslist | TYPE STANDARD TABLE OF BAPI1036_BPLIST, " | |||
| lv_allocationcostelement | TYPE BAPI1036_GEN-ALLOC_CST_ELM, " | |||
| lv_allocationcostelementto | TYPE BAPI1036_GEN-ALLOC_CST_ELM, " | |||
| lv_allocationcategory | TYPE BAPI1036_GEN-ALLOC_CATEGRY, " | |||
| lv_allocationcategoryto | TYPE BAPI1036_GEN-ALLOC_CATEGRY, " | |||
| lv_priceindicator | TYPE BAPI1036_GEN-PRICE_INDICTR, " | |||
| lv_priceindicatorto | TYPE BAPI1036_GEN-PRICE_INDICTR, " | |||
| lv_datefrom | TYPE BAPI1036_GEN-SOME_DATE, " SY-DATUM | |||
| lv_dateto | TYPE BAPI1036_GEN-SOME_DATE, " | |||
| lv_master_data_inactive | TYPE BAPI1036_GEN-MASTER_DATA_INACTIVE, " | |||
| lv_process_owner_user | TYPE BAPI1036_GEN-PROCESS_OWNER_USER, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_companycode | TYPE BAPI1036_GEN-COMP_CODE, " | |||
| lv_process_owner_user_to | TYPE BAPI1036_GEN-PROCESS_OWNER_USER, " | |||
| lv_statistical | TYPE BAPI1036_GEN-STATISTICAL, " | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_companycodeto | TYPE BAPI1036_GEN-COMP_CODE, " | |||
| lt_extensionout | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_businessprocess | TYPE BAPI1036_GEN-CO_BUSPROC, " | |||
| lv_businessprocessto | TYPE BAPI1036_GEN-CO_BUSPROC, " | |||
| lv_processowner | TYPE BAPI1036_GEN-PROCESS_OWNER, " | |||
| lv_processownerto | TYPE BAPI1036_GEN-PROCESS_OWNER, " | |||
| lv_businessprocessunit | TYPE BAPI1036_GEN-COST_DRIVER, " | |||
| lv_businessprocessunitto | TYPE BAPI1036_GEN-COST_DRIVER. " |
|   CALL FUNCTION 'BAPI_PROCESS_GETLIST' "List of business processes per selection conditions |
| EXPORTING | ||
| CONTROLLINGAREA | = lv_controllingarea | |
| ALLOCATIONCOSTELEMENT | = lv_allocationcostelement | |
| ALLOCATIONCOSTELEMENTTO | = lv_allocationcostelementto | |
| ALLOCATIONCATEGORY | = lv_allocationcategory | |
| ALLOCATIONCATEGORYTO | = lv_allocationcategoryto | |
| PRICEINDICATOR | = lv_priceindicator | |
| PRICEINDICATORTO | = lv_priceindicatorto | |
| DATEFROM | = lv_datefrom | |
| DATETO | = lv_dateto | |
| MASTER_DATA_INACTIVE | = lv_master_data_inactive | |
| PROCESS_OWNER_USER | = lv_process_owner_user | |
| COMPANYCODE | = lv_companycode | |
| PROCESS_OWNER_USER_TO | = lv_process_owner_user_to | |
| STATISTICAL | = lv_statistical | |
| COMPANYCODETO | = lv_companycodeto | |
| BUSINESSPROCESS | = lv_businessprocess | |
| BUSINESSPROCESSTO | = lv_businessprocessto | |
| PROCESSOWNER | = lv_processowner | |
| PROCESSOWNERTO | = lv_processownerto | |
| BUSINESSPROCESSUNIT | = lv_businessprocessunit | |
| BUSINESSPROCESSUNITTO | = lv_businessprocessunitto | |
| TABLES | ||
| BUSINESSPROCESSLIST | = lt_businessprocesslist | |
| RETURN | = lt_return | |
| EXTENSIONIN | = lt_extensionin | |
| EXTENSIONOUT | = lt_extensionout | |
| . " BAPI_PROCESS_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PROCESS_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 CO_AREA FROM BAPI1036_GEN INTO @DATA(ld_controllingarea). | ||||
| "SELECT single ALLOC_CST_ELM FROM BAPI1036_GEN INTO @DATA(ld_allocationcostelement). | ||||
| "SELECT single ALLOC_CST_ELM FROM BAPI1036_GEN INTO @DATA(ld_allocationcostelementto). | ||||
| "SELECT single ALLOC_CATEGRY FROM BAPI1036_GEN INTO @DATA(ld_allocationcategory). | ||||
| "SELECT single ALLOC_CATEGRY FROM BAPI1036_GEN INTO @DATA(ld_allocationcategoryto). | ||||
| "SELECT single PRICE_INDICTR FROM BAPI1036_GEN INTO @DATA(ld_priceindicator). | ||||
| "SELECT single PRICE_INDICTR FROM BAPI1036_GEN INTO @DATA(ld_priceindicatorto). | ||||
| "SELECT single SOME_DATE FROM BAPI1036_GEN INTO @DATA(ld_datefrom). | ||||
| DATA(ld_datefrom) | = SY-DATUM. | |||
| "SELECT single SOME_DATE FROM BAPI1036_GEN INTO @DATA(ld_dateto). | ||||
| "SELECT single MASTER_DATA_INACTIVE FROM BAPI1036_GEN INTO @DATA(ld_master_data_inactive). | ||||
| "SELECT single PROCESS_OWNER_USER FROM BAPI1036_GEN INTO @DATA(ld_process_owner_user). | ||||
| "SELECT single COMP_CODE FROM BAPI1036_GEN INTO @DATA(ld_companycode). | ||||
| "SELECT single PROCESS_OWNER_USER FROM BAPI1036_GEN INTO @DATA(ld_process_owner_user_to). | ||||
| "SELECT single STATISTICAL FROM BAPI1036_GEN INTO @DATA(ld_statistical). | ||||
| "SELECT single COMP_CODE FROM BAPI1036_GEN INTO @DATA(ld_companycodeto). | ||||
| "SELECT single CO_BUSPROC FROM BAPI1036_GEN INTO @DATA(ld_businessprocess). | ||||
| "SELECT single CO_BUSPROC FROM BAPI1036_GEN INTO @DATA(ld_businessprocessto). | ||||
| "SELECT single PROCESS_OWNER FROM BAPI1036_GEN INTO @DATA(ld_processowner). | ||||
| "SELECT single PROCESS_OWNER FROM BAPI1036_GEN INTO @DATA(ld_processownerto). | ||||
| "SELECT single COST_DRIVER FROM BAPI1036_GEN INTO @DATA(ld_businessprocessunit). | ||||
| "SELECT single COST_DRIVER FROM BAPI1036_GEN INTO @DATA(ld_businessprocessunitto). | ||||
Search for further information about these or an SAP related objects