Import Worklist table (/ECRS/WLEN) of Intrastat Declaration In S/4HANA International Trade
2023-12-12 17:48:39 Author: blogs.sap.com(查看原文) 阅读量:9 收藏

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

  1. Ref. Document Type (RDTYP)

Ref.%20Doc%20Type

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

  1. Entry type (ENTYP)

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%20Type

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:

  1. Go to SE38 and enter the program ‘RVEXST00’
  2. Select Display

Report%20display

Report display

  1. Put a break point at the line “PERFORM process_reporting_selection”

Put%20a%20Breakpoint

Put a Breakpoint

  1. Go to VE01 transaction and provide your POI, Month & Year and press Execute, now the debugger automatically starts and comes directly to breakpoint line where you have set the breakpoint. Now select the F6 or select the second icon once as per the screen shot.

Execute%20the%20report

Execute the report

  1. After selecting F6 or second icon, it will execute the breakpoint step and take user to the next line

Execute%20the%20line%20in%20the%20program

Execute the line in the program

  1. Now go to /ECRS/WLEN table and use your POI, month, year to search for your entries

Verify%20data%20in%20table

Verify data in table

  1. After checking the entries in /ECRS/WLEN table, switch to the debug screen and press F8 or select the last icon to exit the debug screen. Do this step only when you don’t want to see entries in WLEN table. If you do this step, then entries in WLEN will be deleted.

Completely%20run%20the%20program

Completely run the program

For Receipts:

  1. Go to SE38 and enter the program ‘RMIMST00’
  2. Select Display
  3. Break point at line  “PERFORM process_reporting_selection_mm”
  4. Go to MEIS transaction and provide your POI, Month & Year and press Execute, now the debugger automatically starts and comes directly to the breakpoint line. Now select the F6 button.
  5. Now go to /ECRS/WLEN table and use your POI, month, year to search for your entries
  6. After finished checking the entries in /ECRS/WLEN table, switch to the debug screen and press F8 to exit the debug screen. Do this step only when you don’t want to see entries in WLEN table. If you do this step, then entries in WLEN will be deleted.

文章来源: https://blogs.sap.com/2023/12/12/import-worklist-table-ecrs-wlen-of-intrastat-declaration-in-s-4hana-international-trade/
如有侵权请联系:admin#unsafe.sh