SAP Function Modules

WLF_READ_KOMV SAP Function module







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

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


Pattern for FM WLF_READ_KOMV - WLF READ KOMV





CALL FUNCTION 'WLF_READ_KOMV' "
* EXPORTING
*   i_knumv =                   " komlfk-knumv
*   i_knumvd =                  " komlfk-knumvd
*   i_general_read = 'X'        " c
* TABLES
*   t_komv_lifnr =              " komv
*   t_komv_kunnr =              " komv
*   t_komv =                    " komv
    .  "  WLF_READ_KOMV

ABAP code example for Function Module WLF_READ_KOMV





The ABAP code below is a full code listing to execute function module WLF_READ_KOMV 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_t_komv_lifnr  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_t_komv_lifnr  LIKE LINE OF it_t_komv_lifnr ,
it_t_komv_kunnr  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_t_komv_kunnr  LIKE LINE OF it_t_komv_kunnr ,
it_t_komv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_t_komv  LIKE LINE OF it_t_komv .


DATA(ld_i_knumv) = some text here

DATA(ld_i_knumvd) = some text here
DATA(ld_i_general_read) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_komv_lifnr to it_t_komv_lifnr.

"populate fields of struture and append to itab
append wa_t_komv_kunnr to it_t_komv_kunnr.

"populate fields of struture and append to itab
append wa_t_komv to it_t_komv. . CALL FUNCTION 'WLF_READ_KOMV' * EXPORTING * i_knumv = ld_i_knumv * i_knumvd = ld_i_knumvd * i_general_read = ld_i_general_read * TABLES * t_komv_lifnr = it_t_komv_lifnr * t_komv_kunnr = it_t_komv_kunnr * t_komv = it_t_komv . " WLF_READ_KOMV
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_knumv  TYPE KOMLFK-KNUMV ,
it_t_komv_lifnr  TYPE STANDARD TABLE OF KOMV ,
wa_t_komv_lifnr  LIKE LINE OF it_t_komv_lifnr,
ld_i_knumvd  TYPE KOMLFK-KNUMVD ,
it_t_komv_kunnr  TYPE STANDARD TABLE OF KOMV ,
wa_t_komv_kunnr  LIKE LINE OF it_t_komv_kunnr,
ld_i_general_read  TYPE C ,
it_t_komv  TYPE STANDARD TABLE OF KOMV ,
wa_t_komv  LIKE LINE OF it_t_komv.


ld_i_knumv = some text here

"populate fields of struture and append to itab
append wa_t_komv_lifnr to it_t_komv_lifnr.

ld_i_knumvd = some text here

"populate fields of struture and append to itab
append wa_t_komv_kunnr to it_t_komv_kunnr.
ld_i_general_read = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_komv to it_t_komv.

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