WLF_REGU_COPY_PROCESS 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_REGU_COPY_PROCESS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
WLF_COPY_WITH_REF_SERVICES
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'WLF_REGU_COPY_PROCESS' "Agency Business: Copy and Process Payment Document
EXPORTING
i_wbeln = " komlfk-wbeln Agency Business: Document Number
* i_partner_change = " wlf_partner_change_parameters Data for Partner Change
* i_invoice_date = " komlfk-wfdat Agency Business: Posting Date
* i_invoice_type = " komlfk-lfart Agency Business: Billing Document Type
* i_bill_reason = " komlfk-lfgru Agency Business: Reason for Transaction
* i_post_party = " wlf_post_party Posting Partner
* i_payment_type = " komlfk-wrart Agency business: Payment type
IMPORTING
success = " c
e_wbeln = " komlfk-wbeln Agency Business: Document Number
* TABLES
* t_error_messages = " wlf1_error Vendor billing document: Error message structure
* t_copy_parameters = " wlf_copy_parameters AB: Parameter Table for Copying Single Document Items
* t_copy_references = " wlf_copy_references AB: Referencing Structure for Copying Agency Documents
* t_komlfktxt = " komlfktxt Communication Structure: Change Texts using BAPI
. " WLF_REGU_COPY_PROCESS
The ABAP code below is a full code listing to execute function module WLF_REGU_COPY_PROCESS 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).
| ld_success | TYPE C , |
| ld_e_wbeln | TYPE KOMLFK-WBELN , |
| it_t_error_messages | TYPE STANDARD TABLE OF WLF1_ERROR,"TABLES PARAM |
| wa_t_error_messages | LIKE LINE OF it_t_error_messages , |
| it_t_copy_parameters | TYPE STANDARD TABLE OF WLF_COPY_PARAMETERS,"TABLES PARAM |
| wa_t_copy_parameters | LIKE LINE OF it_t_copy_parameters , |
| it_t_copy_references | TYPE STANDARD TABLE OF WLF_COPY_REFERENCES,"TABLES PARAM |
| wa_t_copy_references | LIKE LINE OF it_t_copy_references , |
| it_t_komlfktxt | TYPE STANDARD TABLE OF KOMLFKTXT,"TABLES PARAM |
| wa_t_komlfktxt | LIKE LINE OF it_t_komlfktxt . |
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_success | TYPE C , |
| ld_i_wbeln | TYPE KOMLFK-WBELN , |
| it_t_error_messages | TYPE STANDARD TABLE OF WLF1_ERROR , |
| wa_t_error_messages | LIKE LINE OF it_t_error_messages, |
| ld_e_wbeln | TYPE KOMLFK-WBELN , |
| ld_i_partner_change | TYPE WLF_PARTNER_CHANGE_PARAMETERS , |
| it_t_copy_parameters | TYPE STANDARD TABLE OF WLF_COPY_PARAMETERS , |
| wa_t_copy_parameters | LIKE LINE OF it_t_copy_parameters, |
| ld_i_invoice_date | TYPE KOMLFK-WFDAT , |
| it_t_copy_references | TYPE STANDARD TABLE OF WLF_COPY_REFERENCES , |
| wa_t_copy_references | LIKE LINE OF it_t_copy_references, |
| ld_i_invoice_type | TYPE KOMLFK-LFART , |
| it_t_komlfktxt | TYPE STANDARD TABLE OF KOMLFKTXT , |
| wa_t_komlfktxt | LIKE LINE OF it_t_komlfktxt, |
| ld_i_bill_reason | TYPE KOMLFK-LFGRU , |
| ld_i_post_party | TYPE WLF_POST_PARTY , |
| ld_i_payment_type | TYPE KOMLFK-WRART . |
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_REGU_COPY_PROCESS or its description.
WLF_REGU_COPY_PROCESS - Agency Business: Copy and Process Payment Document WLF_REGU_COPY_FROM_DATA - WLF_REGU_COPY_DOCUMENT_2 - WLF_REGU_COPY_DOCUMENT - WLF_REGU_COPY_CHANGE_PROCESS - Agency Business: Copy/Change and Process Payment Document WLF_REGU_COPY_CHANGE_METH_PROC - Agency Business: Copy/Change and Process Payment Document