Get the list of entries in import worklist (temporary table) of the Intrastat declaration.
The functionality and the issues discussed are for S/4HANA 1909 release. Request user to analyze and adapt the content for their respective S/4HANA releases
System selects all import & export entries applicable for Intrastat and writes in to the /ECRS/WLEN table. From this table data, the system applies inclusion/exclusion rules etc., to come up with the actual Intrastat declaration data for the table /ECRS/RPIT.
User can’t directly influence entries in /ECRS/RPIT table and instead can change entries only in WLEN table through available BAdIs. It is necessary to understand the data in this table, so that the user can use the BAdI ‘BADI_INTRASTAT_SELECTION’ to influence the entries in this table.
Dispatch & Receipts Intrastat declarations in S/4HANA
Users should be aware of the following fields in the /ECRS/WLEN table, so that the data can be influenced through BAdI
Ref. Doc Type
For dispatches, the original billing document will not have any reference document type & reference document number. The correction data like credit/debit memo, cancellations created with reference to the original billing document will have Ref.Document Type as ‘3’ & Ref.document number field with original billing document number. Corrections made in the same month of original billing document will only be considered in the Intrastat declarations.
For Receipts, Goods movement data related to Purchase Order/Delivery is considered for Intrastat declarations
F.eg:- In Dispatches, the Credit memos are negative corrections, Dedit memos are positive corrections and cancellations are reversal. All dispatch corrections should be created with respect to original billing document number and should be done in same month to actually see them copied in to the RPIT table.
Entry Type
How to access the table:-
User can only access this /ECRS/WLEN table through debugging. When the debugging session is finished, the entries in the table will be automatically deleted.
For Dispatches:
Report display
Put a Breakpoint
Execute the report
Execute the line in the program
Verify data in table
Completely run the program
For Receipts: