SAP Function Modules

BKK_COND_REL_STD_INIT_WHERE SAP Function module - Set Up Where-Condition for Dynamic Select







BKK_COND_REL_STD_INIT_WHERE 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 BKK_COND_REL_STD_INIT_WHERE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FB8I
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BKK_COND_REL_STD_INIT_WHERE - BKK COND REL STD INIT WHERE





CALL FUNCTION 'BKK_COND_REL_STD_INIT_WHERE' "Set Up Where-Condition for Dynamic Select
  EXPORTING
*   i_condarea =                " bkk81-condarea
    i_condgr =                  " bkk83-condgr
    i_condgr_cat =              " bkk83-condgr_cat
*   i_condcatg =                " bkk81-condcatg
  TABLES
    e_t_where =                 " bkkc_t_where
    e_t_condition =             " ibkk91
    e_t_position =              " ibkk92
    .  "  BKK_COND_REL_STD_INIT_WHERE

ABAP code example for Function Module BKK_COND_REL_STD_INIT_WHERE





The ABAP code below is a full code listing to execute function module BKK_COND_REL_STD_INIT_WHERE 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_e_t_where  TYPE STANDARD TABLE OF BKKC_T_WHERE,"TABLES PARAM
wa_e_t_where  LIKE LINE OF it_e_t_where ,
it_e_t_condition  TYPE STANDARD TABLE OF IBKK91,"TABLES PARAM
wa_e_t_condition  LIKE LINE OF it_e_t_condition ,
it_e_t_position  TYPE STANDARD TABLE OF IBKK92,"TABLES PARAM
wa_e_t_position  LIKE LINE OF it_e_t_position .


SELECT single CONDAREA
FROM BKK81
INTO @DATA(ld_i_condarea).


SELECT single CONDGR
FROM BKK83
INTO @DATA(ld_i_condgr).


SELECT single CONDGR_CAT
FROM BKK83
INTO @DATA(ld_i_condgr_cat).


SELECT single CONDCATG
FROM BKK81
INTO @DATA(ld_i_condcatg).


"populate fields of struture and append to itab
append wa_e_t_where to it_e_t_where.

"populate fields of struture and append to itab
append wa_e_t_condition to it_e_t_condition.

"populate fields of struture and append to itab
append wa_e_t_position to it_e_t_position. . CALL FUNCTION 'BKK_COND_REL_STD_INIT_WHERE' EXPORTING * i_condarea = ld_i_condarea i_condgr = ld_i_condgr i_condgr_cat = ld_i_condgr_cat * i_condcatg = ld_i_condcatg TABLES e_t_where = it_e_t_where e_t_condition = it_e_t_condition e_t_position = it_e_t_position . " BKK_COND_REL_STD_INIT_WHERE
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_i_condarea  TYPE BKK81-CONDAREA ,
it_e_t_where  TYPE STANDARD TABLE OF BKKC_T_WHERE ,
wa_e_t_where  LIKE LINE OF it_e_t_where,
ld_i_condgr  TYPE BKK83-CONDGR ,
it_e_t_condition  TYPE STANDARD TABLE OF IBKK91 ,
wa_e_t_condition  LIKE LINE OF it_e_t_condition,
ld_i_condgr_cat  TYPE BKK83-CONDGR_CAT ,
it_e_t_position  TYPE STANDARD TABLE OF IBKK92 ,
wa_e_t_position  LIKE LINE OF it_e_t_position,
ld_i_condcatg  TYPE BKK81-CONDCATG .


SELECT single CONDAREA
FROM BKK81
INTO ld_i_condarea.


"populate fields of struture and append to itab
append wa_e_t_where to it_e_t_where.

SELECT single CONDGR
FROM BKK83
INTO ld_i_condgr.


"populate fields of struture and append to itab
append wa_e_t_condition to it_e_t_condition.

SELECT single CONDGR_CAT
FROM BKK83
INTO ld_i_condgr_cat.


"populate fields of struture and append to itab
append wa_e_t_position to it_e_t_position.

SELECT single CONDCATG
FROM BKK81
INTO ld_i_condcatg.

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