SAP Function Modules

FKK_WLI_SELECT_FOR_WL SAP Function module







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

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


Pattern for FM FKK_WLI_SELECT_FOR_WL - FKK WLI SELECT FOR WL





CALL FUNCTION 'FKK_WLI_SELECT_FOR_WL' "
* EXPORTING
*   iv_last_read =              " timestamp     UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
*   iv_xrerate =                " boolean       Boolean Variable (X=True, -=False, Space=Unknown)
*   iv_wlitype =                " wlitype_cm_kk  Work Item Type
  TABLES
*   ir_agent =                  " fkkr_wliassigned  Ranges Structure for Responsible Persons
*   ir_unit =                   " fkkr_wliassigned  Ranges Structure for Responsible Persons
    ir_wlident =                " fkkr_wlident
*   ir_wlistat =                " fkkr_wlistatus
*   it_resp_combi =             " fkkclerk_cm_combi
    rt_wli =                    " dfkkwli       Worklist Entries
  EXCEPTIONS
    NOT_FOUND = 1               "
    .  "  FKK_WLI_SELECT_FOR_WL

ABAP code example for Function Module FKK_WLI_SELECT_FOR_WL





The ABAP code below is a full code listing to execute function module FKK_WLI_SELECT_FOR_WL 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_ir_agent  TYPE STANDARD TABLE OF FKKR_WLIASSIGNED,"TABLES PARAM
wa_ir_agent  LIKE LINE OF it_ir_agent ,
it_ir_unit  TYPE STANDARD TABLE OF FKKR_WLIASSIGNED,"TABLES PARAM
wa_ir_unit  LIKE LINE OF it_ir_unit ,
it_ir_wlident  TYPE STANDARD TABLE OF FKKR_WLIDENT,"TABLES PARAM
wa_ir_wlident  LIKE LINE OF it_ir_wlident ,
it_ir_wlistat  TYPE STANDARD TABLE OF FKKR_WLISTATUS,"TABLES PARAM
wa_ir_wlistat  LIKE LINE OF it_ir_wlistat ,
it_it_resp_combi  TYPE STANDARD TABLE OF FKKCLERK_CM_COMBI,"TABLES PARAM
wa_it_resp_combi  LIKE LINE OF it_it_resp_combi ,
it_rt_wli  TYPE STANDARD TABLE OF DFKKWLI,"TABLES PARAM
wa_rt_wli  LIKE LINE OF it_rt_wli .

DATA(ld_iv_last_read) = 'Check type of data required'.
DATA(ld_iv_xrerate) = 'Check type of data required'.
DATA(ld_iv_wlitype) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ir_agent to it_ir_agent.

"populate fields of struture and append to itab
append wa_ir_unit to it_ir_unit.

"populate fields of struture and append to itab
append wa_ir_wlident to it_ir_wlident.

"populate fields of struture and append to itab
append wa_ir_wlistat to it_ir_wlistat.

"populate fields of struture and append to itab
append wa_it_resp_combi to it_it_resp_combi.

"populate fields of struture and append to itab
append wa_rt_wli to it_rt_wli. . CALL FUNCTION 'FKK_WLI_SELECT_FOR_WL' * EXPORTING * iv_last_read = ld_iv_last_read * iv_xrerate = ld_iv_xrerate * iv_wlitype = ld_iv_wlitype TABLES * ir_agent = it_ir_agent * ir_unit = it_ir_unit ir_wlident = it_ir_wlident * ir_wlistat = it_ir_wlistat * it_resp_combi = it_it_resp_combi rt_wli = it_rt_wli EXCEPTIONS NOT_FOUND = 1 . " FKK_WLI_SELECT_FOR_WL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_iv_last_read  TYPE TIMESTAMP ,
it_ir_agent  TYPE STANDARD TABLE OF FKKR_WLIASSIGNED ,
wa_ir_agent  LIKE LINE OF it_ir_agent,
ld_iv_xrerate  TYPE BOOLEAN ,
it_ir_unit  TYPE STANDARD TABLE OF FKKR_WLIASSIGNED ,
wa_ir_unit  LIKE LINE OF it_ir_unit,
ld_iv_wlitype  TYPE WLITYPE_CM_KK ,
it_ir_wlident  TYPE STANDARD TABLE OF FKKR_WLIDENT ,
wa_ir_wlident  LIKE LINE OF it_ir_wlident,
it_ir_wlistat  TYPE STANDARD TABLE OF FKKR_WLISTATUS ,
wa_ir_wlistat  LIKE LINE OF it_ir_wlistat,
it_it_resp_combi  TYPE STANDARD TABLE OF FKKCLERK_CM_COMBI ,
wa_it_resp_combi  LIKE LINE OF it_it_resp_combi,
it_rt_wli  TYPE STANDARD TABLE OF DFKKWLI ,
wa_rt_wli  LIKE LINE OF it_rt_wli.

ld_iv_last_read = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ir_agent to it_ir_agent.
ld_iv_xrerate = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ir_unit to it_ir_unit.
ld_iv_wlitype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ir_wlident to it_ir_wlident.

"populate fields of struture and append to itab
append wa_ir_wlistat to it_ir_wlistat.

"populate fields of struture and append to itab
append wa_it_resp_combi to it_it_resp_combi.

"populate fields of struture and append to itab
append wa_rt_wli to it_rt_wli.

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