SAP Function Modules

WLF_INVOICE_LIST_PRICING_COPY SAP Function module







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

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


Pattern for FM WLF_INVOICE_LIST_PRICING_COPY - WLF INVOICE LIST PRICING COPY





CALL FUNCTION 'WLF_INVOICE_LIST_PRICING_COPY' "
  EXPORTING
    i_komlfk =                  " komlfk        Communication Structure: Vendor Billing Document Header
    i_komlfk_cp =               " komlfk        Communication Structure: Vendor Billing Document Header
    i_komlfl =                  " komlfl        Vendor Billing Doc.: Communication Structure, Remuner.List
    i_komlfl_cp =               " komlfl        Vendor Billing Doc.: Communication Structure, Remuner.List
    i_t001 =                    " t001          Company Codes
    i_tmcpf =                   " tmcpf         Vendor billing document: copy control
  IMPORTING
    e_komlfk =                  " komlfk        Communication Structure: Vendor Billing Document Header
  TABLES
    t_komv =                    " komv          Pricing: Communications Condition Record
*   t_komv_source =             " komv          Pricing: Communications Condition Record
    .  "  WLF_INVOICE_LIST_PRICING_COPY

ABAP code example for Function Module WLF_INVOICE_LIST_PRICING_COPY





The ABAP code below is a full code listing to execute function module WLF_INVOICE_LIST_PRICING_COPY 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:
ld_e_komlfk  TYPE KOMLFK ,
it_t_komv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_t_komv  LIKE LINE OF it_t_komv ,
it_t_komv_source  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_t_komv_source  LIKE LINE OF it_t_komv_source .

DATA(ld_i_komlfk) = 'Check type of data required'.
DATA(ld_i_komlfk_cp) = 'Check type of data required'.
DATA(ld_i_komlfl) = 'Check type of data required'.
DATA(ld_i_komlfl_cp) = 'Check type of data required'.
DATA(ld_i_t001) = 'Check type of data required'.
DATA(ld_i_tmcpf) = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_t_komv_source to it_t_komv_source. . CALL FUNCTION 'WLF_INVOICE_LIST_PRICING_COPY' EXPORTING i_komlfk = ld_i_komlfk i_komlfk_cp = ld_i_komlfk_cp i_komlfl = ld_i_komlfl i_komlfl_cp = ld_i_komlfl_cp i_t001 = ld_i_t001 i_tmcpf = ld_i_tmcpf IMPORTING e_komlfk = ld_e_komlfk TABLES t_komv = it_t_komv * t_komv_source = it_t_komv_source . " WLF_INVOICE_LIST_PRICING_COPY
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_e_komlfk  TYPE KOMLFK ,
ld_i_komlfk  TYPE KOMLFK ,
it_t_komv  TYPE STANDARD TABLE OF KOMV ,
wa_t_komv  LIKE LINE OF it_t_komv,
ld_i_komlfk_cp  TYPE KOMLFK ,
it_t_komv_source  TYPE STANDARD TABLE OF KOMV ,
wa_t_komv_source  LIKE LINE OF it_t_komv_source,
ld_i_komlfl  TYPE KOMLFL ,
ld_i_komlfl_cp  TYPE KOMLFL ,
ld_i_t001  TYPE T001 ,
ld_i_tmcpf  TYPE TMCPF .

ld_i_komlfk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_komv to it_t_komv.
ld_i_komlfk_cp = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_komv_source to it_t_komv_source.
ld_i_komlfl = 'Check type of data required'.
ld_i_komlfl_cp = 'Check type of data required'.
ld_i_t001 = 'Check type of data required'.
ld_i_tmcpf = '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 WLF_INVOICE_LIST_PRICING_COPY or its description.