SAP Function Modules

WLF_INV_DOCUMENT_DATA_FOR_SL SAP Function module







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

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


Pattern for FM WLF_INV_DOCUMENT_DATA_FOR_SL - WLF INV DOCUMENT DATA FOR SL





CALL FUNCTION 'WLF_INV_DOCUMENT_DATA_FOR_SL' "
* EXPORTING
*   i_no_settle_doc_subseq_settle = SPACE  " c
* TABLES
*   t_komlfk =                  " komlfk
*   t_komlfp =                  " komlfp
*   t_komv =                    " komv
*   t_lifre =                   " lifnr_rang
*   t_lnrzb =                   " lifnr_rang
*   t_ekorg =                   " ekorg_ran
*   t_ekgrp =                   " ekgrp_ran
*   t_bukrs =                   " bukrs_ran
*   t_wfdat =                   " wfdat_ran
*   t_wfdat_rl =                " wfdat_ran
*   t_lfart =                   " lfart_ran
*   t_lfart_rl =                " lfart_ran
*   t_wbeln =                   " wbeln_ran
*   t_wbeln_rl =                " wbeln_ran
*   t_rfbsk =                   " rfbsk_ran
*   t_xblnr =                   " bxlnr_ran
*   t_kidno =                   " kidno_ran
*   t_zuonr =                   " wzuonr_ran
*   t_bldat =                   " bldat_ran
*   t_ernam =                   " ernam_ran
*   t_erdat =                   " erdat_ran
*   t_abart =                   " abart_ran
*   t_knuma =                   " knuma_ran
  EXCEPTIONS
    NO_RECORD_FOUND = 1         "
    .  "  WLF_INV_DOCUMENT_DATA_FOR_SL

ABAP code example for Function Module WLF_INV_DOCUMENT_DATA_FOR_SL





The ABAP code below is a full code listing to execute function module WLF_INV_DOCUMENT_DATA_FOR_SL 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_komlfk  TYPE STANDARD TABLE OF KOMLFK,"TABLES PARAM
wa_t_komlfk  LIKE LINE OF it_t_komlfk ,
it_t_komlfp  TYPE STANDARD TABLE OF KOMLFP,"TABLES PARAM
wa_t_komlfp  LIKE LINE OF it_t_komlfp ,
it_t_komv  TYPE STANDARD TABLE OF KOMV,"TABLES PARAM
wa_t_komv  LIKE LINE OF it_t_komv ,
it_t_lifre  TYPE STANDARD TABLE OF LIFNR_RANG,"TABLES PARAM
wa_t_lifre  LIKE LINE OF it_t_lifre ,
it_t_lnrzb  TYPE STANDARD TABLE OF LIFNR_RANG,"TABLES PARAM
wa_t_lnrzb  LIKE LINE OF it_t_lnrzb ,
it_t_ekorg  TYPE STANDARD TABLE OF EKORG_RAN,"TABLES PARAM
wa_t_ekorg  LIKE LINE OF it_t_ekorg ,
it_t_ekgrp  TYPE STANDARD TABLE OF EKGRP_RAN,"TABLES PARAM
wa_t_ekgrp  LIKE LINE OF it_t_ekgrp ,
it_t_bukrs  TYPE STANDARD TABLE OF BUKRS_RAN,"TABLES PARAM
wa_t_bukrs  LIKE LINE OF it_t_bukrs ,
it_t_wfdat  TYPE STANDARD TABLE OF WFDAT_RAN,"TABLES PARAM
wa_t_wfdat  LIKE LINE OF it_t_wfdat ,
it_t_wfdat_rl  TYPE STANDARD TABLE OF WFDAT_RAN,"TABLES PARAM
wa_t_wfdat_rl  LIKE LINE OF it_t_wfdat_rl ,
it_t_lfart  TYPE STANDARD TABLE OF LFART_RAN,"TABLES PARAM
wa_t_lfart  LIKE LINE OF it_t_lfart ,
it_t_lfart_rl  TYPE STANDARD TABLE OF LFART_RAN,"TABLES PARAM
wa_t_lfart_rl  LIKE LINE OF it_t_lfart_rl ,
it_t_wbeln  TYPE STANDARD TABLE OF WBELN_RAN,"TABLES PARAM
wa_t_wbeln  LIKE LINE OF it_t_wbeln ,
it_t_wbeln_rl  TYPE STANDARD TABLE OF WBELN_RAN,"TABLES PARAM
wa_t_wbeln_rl  LIKE LINE OF it_t_wbeln_rl ,
it_t_rfbsk  TYPE STANDARD TABLE OF RFBSK_RAN,"TABLES PARAM
wa_t_rfbsk  LIKE LINE OF it_t_rfbsk ,
it_t_xblnr  TYPE STANDARD TABLE OF BXLNR_RAN,"TABLES PARAM
wa_t_xblnr  LIKE LINE OF it_t_xblnr ,
it_t_kidno  TYPE STANDARD TABLE OF KIDNO_RAN,"TABLES PARAM
wa_t_kidno  LIKE LINE OF it_t_kidno ,
it_t_zuonr  TYPE STANDARD TABLE OF WZUONR_RAN,"TABLES PARAM
wa_t_zuonr  LIKE LINE OF it_t_zuonr ,
it_t_bldat  TYPE STANDARD TABLE OF BLDAT_RAN,"TABLES PARAM
wa_t_bldat  LIKE LINE OF it_t_bldat ,
it_t_ernam  TYPE STANDARD TABLE OF ERNAM_RAN,"TABLES PARAM
wa_t_ernam  LIKE LINE OF it_t_ernam ,
it_t_erdat  TYPE STANDARD TABLE OF ERDAT_RAN,"TABLES PARAM
wa_t_erdat  LIKE LINE OF it_t_erdat ,
it_t_abart  TYPE STANDARD TABLE OF ABART_RAN,"TABLES PARAM
wa_t_abart  LIKE LINE OF it_t_abart ,
it_t_knuma  TYPE STANDARD TABLE OF KNUMA_RAN,"TABLES PARAM
wa_t_knuma  LIKE LINE OF it_t_knuma .

DATA(ld_i_no_settle_doc_subseq_settle) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_komlfk to it_t_komlfk.

"populate fields of struture and append to itab
append wa_t_komlfp to it_t_komlfp.

"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_lifre to it_t_lifre.

"populate fields of struture and append to itab
append wa_t_lnrzb to it_t_lnrzb.

"populate fields of struture and append to itab
append wa_t_ekorg to it_t_ekorg.

"populate fields of struture and append to itab
append wa_t_ekgrp to it_t_ekgrp.

"populate fields of struture and append to itab
append wa_t_bukrs to it_t_bukrs.

"populate fields of struture and append to itab
append wa_t_wfdat to it_t_wfdat.

"populate fields of struture and append to itab
append wa_t_wfdat_rl to it_t_wfdat_rl.

"populate fields of struture and append to itab
append wa_t_lfart to it_t_lfart.

"populate fields of struture and append to itab
append wa_t_lfart_rl to it_t_lfart_rl.

"populate fields of struture and append to itab
append wa_t_wbeln to it_t_wbeln.

"populate fields of struture and append to itab
append wa_t_wbeln_rl to it_t_wbeln_rl.

"populate fields of struture and append to itab
append wa_t_rfbsk to it_t_rfbsk.

"populate fields of struture and append to itab
append wa_t_xblnr to it_t_xblnr.

"populate fields of struture and append to itab
append wa_t_kidno to it_t_kidno.

"populate fields of struture and append to itab
append wa_t_zuonr to it_t_zuonr.

"populate fields of struture and append to itab
append wa_t_bldat to it_t_bldat.

"populate fields of struture and append to itab
append wa_t_ernam to it_t_ernam.

"populate fields of struture and append to itab
append wa_t_erdat to it_t_erdat.

"populate fields of struture and append to itab
append wa_t_abart to it_t_abart.

"populate fields of struture and append to itab
append wa_t_knuma to it_t_knuma. . CALL FUNCTION 'WLF_INV_DOCUMENT_DATA_FOR_SL' * EXPORTING * i_no_settle_doc_subseq_settle = ld_i_no_settle_doc_subseq_settle * TABLES * t_komlfk = it_t_komlfk * t_komlfp = it_t_komlfp * t_komv = it_t_komv * t_lifre = it_t_lifre * t_lnrzb = it_t_lnrzb * t_ekorg = it_t_ekorg * t_ekgrp = it_t_ekgrp * t_bukrs = it_t_bukrs * t_wfdat = it_t_wfdat * t_wfdat_rl = it_t_wfdat_rl * t_lfart = it_t_lfart * t_lfart_rl = it_t_lfart_rl * t_wbeln = it_t_wbeln * t_wbeln_rl = it_t_wbeln_rl * t_rfbsk = it_t_rfbsk * t_xblnr = it_t_xblnr * t_kidno = it_t_kidno * t_zuonr = it_t_zuonr * t_bldat = it_t_bldat * t_ernam = it_t_ernam * t_erdat = it_t_erdat * t_abart = it_t_abart * t_knuma = it_t_knuma EXCEPTIONS NO_RECORD_FOUND = 1 . " WLF_INV_DOCUMENT_DATA_FOR_SL
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_i_no_settle_doc_subseq_settle  TYPE C ,
it_t_komlfk  TYPE STANDARD TABLE OF KOMLFK ,
wa_t_komlfk  LIKE LINE OF it_t_komlfk,
it_t_komlfp  TYPE STANDARD TABLE OF KOMLFP ,
wa_t_komlfp  LIKE LINE OF it_t_komlfp,
it_t_komv  TYPE STANDARD TABLE OF KOMV ,
wa_t_komv  LIKE LINE OF it_t_komv,
it_t_lifre  TYPE STANDARD TABLE OF LIFNR_RANG ,
wa_t_lifre  LIKE LINE OF it_t_lifre,
it_t_lnrzb  TYPE STANDARD TABLE OF LIFNR_RANG ,
wa_t_lnrzb  LIKE LINE OF it_t_lnrzb,
it_t_ekorg  TYPE STANDARD TABLE OF EKORG_RAN ,
wa_t_ekorg  LIKE LINE OF it_t_ekorg,
it_t_ekgrp  TYPE STANDARD TABLE OF EKGRP_RAN ,
wa_t_ekgrp  LIKE LINE OF it_t_ekgrp,
it_t_bukrs  TYPE STANDARD TABLE OF BUKRS_RAN ,
wa_t_bukrs  LIKE LINE OF it_t_bukrs,
it_t_wfdat  TYPE STANDARD TABLE OF WFDAT_RAN ,
wa_t_wfdat  LIKE LINE OF it_t_wfdat,
it_t_wfdat_rl  TYPE STANDARD TABLE OF WFDAT_RAN ,
wa_t_wfdat_rl  LIKE LINE OF it_t_wfdat_rl,
it_t_lfart  TYPE STANDARD TABLE OF LFART_RAN ,
wa_t_lfart  LIKE LINE OF it_t_lfart,
it_t_lfart_rl  TYPE STANDARD TABLE OF LFART_RAN ,
wa_t_lfart_rl  LIKE LINE OF it_t_lfart_rl,
it_t_wbeln  TYPE STANDARD TABLE OF WBELN_RAN ,
wa_t_wbeln  LIKE LINE OF it_t_wbeln,
it_t_wbeln_rl  TYPE STANDARD TABLE OF WBELN_RAN ,
wa_t_wbeln_rl  LIKE LINE OF it_t_wbeln_rl,
it_t_rfbsk  TYPE STANDARD TABLE OF RFBSK_RAN ,
wa_t_rfbsk  LIKE LINE OF it_t_rfbsk,
it_t_xblnr  TYPE STANDARD TABLE OF BXLNR_RAN ,
wa_t_xblnr  LIKE LINE OF it_t_xblnr,
it_t_kidno  TYPE STANDARD TABLE OF KIDNO_RAN ,
wa_t_kidno  LIKE LINE OF it_t_kidno,
it_t_zuonr  TYPE STANDARD TABLE OF WZUONR_RAN ,
wa_t_zuonr  LIKE LINE OF it_t_zuonr,
it_t_bldat  TYPE STANDARD TABLE OF BLDAT_RAN ,
wa_t_bldat  LIKE LINE OF it_t_bldat,
it_t_ernam  TYPE STANDARD TABLE OF ERNAM_RAN ,
wa_t_ernam  LIKE LINE OF it_t_ernam,
it_t_erdat  TYPE STANDARD TABLE OF ERDAT_RAN ,
wa_t_erdat  LIKE LINE OF it_t_erdat,
it_t_abart  TYPE STANDARD TABLE OF ABART_RAN ,
wa_t_abart  LIKE LINE OF it_t_abart,
it_t_knuma  TYPE STANDARD TABLE OF KNUMA_RAN ,
wa_t_knuma  LIKE LINE OF it_t_knuma.

ld_i_no_settle_doc_subseq_settle = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_komlfk to it_t_komlfk.

"populate fields of struture and append to itab
append wa_t_komlfp to it_t_komlfp.

"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_lifre to it_t_lifre.

"populate fields of struture and append to itab
append wa_t_lnrzb to it_t_lnrzb.

"populate fields of struture and append to itab
append wa_t_ekorg to it_t_ekorg.

"populate fields of struture and append to itab
append wa_t_ekgrp to it_t_ekgrp.

"populate fields of struture and append to itab
append wa_t_bukrs to it_t_bukrs.

"populate fields of struture and append to itab
append wa_t_wfdat to it_t_wfdat.

"populate fields of struture and append to itab
append wa_t_wfdat_rl to it_t_wfdat_rl.

"populate fields of struture and append to itab
append wa_t_lfart to it_t_lfart.

"populate fields of struture and append to itab
append wa_t_lfart_rl to it_t_lfart_rl.

"populate fields of struture and append to itab
append wa_t_wbeln to it_t_wbeln.

"populate fields of struture and append to itab
append wa_t_wbeln_rl to it_t_wbeln_rl.

"populate fields of struture and append to itab
append wa_t_rfbsk to it_t_rfbsk.

"populate fields of struture and append to itab
append wa_t_xblnr to it_t_xblnr.

"populate fields of struture and append to itab
append wa_t_kidno to it_t_kidno.

"populate fields of struture and append to itab
append wa_t_zuonr to it_t_zuonr.

"populate fields of struture and append to itab
append wa_t_bldat to it_t_bldat.

"populate fields of struture and append to itab
append wa_t_ernam to it_t_ernam.

"populate fields of struture and append to itab
append wa_t_erdat to it_t_erdat.

"populate fields of struture and append to itab
append wa_t_abart to it_t_abart.

"populate fields of struture and append to itab
append wa_t_knuma to it_t_knuma.

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