!--a11y-->
Foreign trade reporting 
Companies that are obliged to report their foreign trade can create a report for the responsible tax authorities that complies with the national legal requirements in Contract Accounts Receivable and Payable.
In the Implementation Guide for
Contract Accounts Receivable and Payable, you have set the indicator
Foreign Trade Reporting under Organizational Units ® Configure Company Codes for Contract Accounts Receivable and
Payable, thereby activating the recording of the
data required.
You have made the settings under Basic Functions ® Foreign Trade Reporting ® Define Specifications for Foreign Trade Reporting.
You have entered the customer modules for the events listed below under
Program Enhancements ® Define Customer-Specific Function Modules.
The report file is the basis for the foreign trade report. This is updated automatically when you post the documents in Contract Accounts Receivable and Payable. You create the report based on the report file.
Whether and which report data is to be
recorded for a document is determined by a function module processed at event
1980. You create this function module installation-specific and enter it in
the Implementation Guide for Contract Accounts Receivable and Payable
(see the documentation for the sample function module FKK_SAMPLE_1980).
If you want to update new entries in the report file when you reset clearing
for a document for which there are one or more entries in the report file,
create an installation-specific function module for event 1981 and define it
in Customizing.
You can edit the report file in the transaction Foreign Trade Reporting: Edit
Report File (SAP Menu: Periodic Processing ® Data for Externals ® Tax Authorities ® Process Transactions for Foreign Trade Reporting). To ensure that all relevant documents are entered, you can
activate and deactivate the entries or add new entries.
Write a report that creates the report in the format agreed with the responsible authorities, based on the data recorded in the report file.
