K_BUSINESS_PROCESS_READ_MULTI 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 K_BUSINESS_PROCESS_READ_MULTI into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
KWM1
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'K_BUSINESS_PROCESS_READ_MULTI' "
EXPORTING
* datab = SY-DATLO " cbprv-datab Master data date is valid as of
* datbi = SY-DATLO " cbprv-datbi Master data date is valid until
kokrs = " cbprv-kokrs Controlling area
* no_buffer = SPACE " No buffer
* spras = SY-LANGU " cbprv-spras Language
TABLES
tab_cbprp = " cbprp
range_prznr = "
EXCEPTIONS
NOT_FOUND = 1 " No valid interval found
NO_VALID_PROCESS_INTERVALS = 2 "
. " K_BUSINESS_PROCESS_READ_MULTI
The ABAP code below is a full code listing to execute function module K_BUSINESS_PROCESS_READ_MULTI 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_tab_cbprp | TYPE STANDARD TABLE OF CBPRP,"TABLES PARAM |
| wa_tab_cbprp | LIKE LINE OF it_tab_cbprp , |
| it_range_prznr | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_range_prznr | LIKE LINE OF it_range_prznr . |
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_datab | TYPE CBPRV-DATAB , |
| it_tab_cbprp | TYPE STANDARD TABLE OF CBPRP , |
| wa_tab_cbprp | LIKE LINE OF it_tab_cbprp, |
| ld_datbi | TYPE CBPRV-DATBI , |
| it_range_prznr | TYPE STANDARD TABLE OF STRING , |
| wa_range_prznr | LIKE LINE OF it_range_prznr, |
| ld_kokrs | TYPE CBPRV-KOKRS , |
| ld_no_buffer | TYPE STRING , |
| ld_spras | TYPE CBPRV-SPRAS . |
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 K_BUSINESS_PROCESS_READ_MULTI or its description.