SAP Function Modules

K_BUSINESS_PROCESS_READ_MULTI SAP Function module







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
Normal function module settings


Pattern for FM K_BUSINESS_PROCESS_READ_MULTI - K BUSINESS PROCESS READ MULTI





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

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

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


DATA(ld_datab) = 20210129

DATA(ld_datbi) = 20210129

DATA(ld_kokrs) = some text here
DATA(ld_no_buffer) = 'some text here'.

DATA(ld_spras) = Check type of data required

"populate fields of struture and append to itab
append wa_tab_cbprp to it_tab_cbprp.

"populate fields of struture and append to itab
append wa_range_prznr to it_range_prznr. . CALL FUNCTION 'K_BUSINESS_PROCESS_READ_MULTI' EXPORTING * datab = ld_datab * datbi = ld_datbi kokrs = ld_kokrs * no_buffer = ld_no_buffer * spras = ld_spras TABLES tab_cbprp = it_tab_cbprp range_prznr = it_range_prznr EXCEPTIONS NOT_FOUND = 1 NO_VALID_PROCESS_INTERVALS = 2 . " K_BUSINESS_PROCESS_READ_MULTI
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_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 .


ld_datab = 20210129

"populate fields of struture and append to itab
append wa_tab_cbprp to it_tab_cbprp.

ld_datbi = 20210129

"populate fields of struture and append to itab
append wa_range_prznr to it_range_prznr.

ld_kokrs = some text here
ld_no_buffer = 'some text here'.

ld_spras = Check type of data required

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 K_BUSINESS_PROCESS_READ_MULTI or its description.