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
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
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).
| 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 . |
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. |
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.
WLF_INV_DOCUMENT_DATA_FOR_SL - WLF_INV_DETERMIN_CASH_DISCOUNT - WLF_INV_CURR_CONV_KOND_CREATE - Reprocess Currency Fields of Document Conditions According to Currency WLF_INV_CURR_CONV_KOND_CHANGE - Reprocess Currency Fields of Document Conditions According to Currency WLF_INV_CREATE_AC_INTERNAL - WLF_INV_CONDITION_PREP -