!--a11y-->
Integration of Foreign Trade Checks in the
Sales Order 
You use this process to link the sales order with SAP Global Trade Services (SAP GTS). The system transfers the sales order data to SAP GTS. It then checks the sales order for observance of the relevant export regulations (for example, sanctioned party lists, embargos, and the need for export licenses). If one of the foreign trade checks, known as compliance checks , returns a negative result, and, for example, violations of export regulations are determined, SAP GTS prevents the creation of a delivery or third-party purchase order by setting a corresponding status in the sales order.
For information about SAP GTS, see SAP Library for SAP GTS at SAP Compliance Management and SAP Customs Management.
● You use SAP GTS 7.0 and have replicated the master data to SAP GTS. For more information about this, see SAP Compliance Management 7.0 - Configuration Guide on the SAP Service Marketplace at http://service.sap.com/instguides ® SAP Components ® SAP Global Trade Services ® Using SAP GTS 7.0.
● The system configuration for service parts management has been activated. For more information about this, see the SAP Implementation Guide (IMG) for Customer Relationship Management at Transactions ® Basic Settings ® Activate System Configuration for Service Parts Management.
● You have set the indicator GTS Relevance for the transaction type and item category in Customizing. You perform these steps for business transaction category Sales in the IMG at Customer Relationship Management ® Transactions ® Basic Settings ® Define Transaction Types and Define Item Categories.
For more information, see the SAP Implementation Guide (IMG) for SAP CRM at Customer Relationship Management ® Transactions ® Settings for Sales Transactions ® Settings for Integrating Foreign Trade Check.
You can use a BAdI to define in more detail the GTS call for sales orders and item categories from SAP CRM. For more information about the BAdI, see the IMG for Customer Relationship Management under Transactions ® Settings for Sales Transactions ® Business Add-Ins ® BAdI: Manipulate GTS Call.
1. When you save a sales order, the system calls up SAP GTS:
The system localizes the GTS server and checks whether the current sales order is GTS-relevant.
2. The system transfers the sales order data to SAP GTS.
3. SAP GTS checks the sales order data depending on the services activated in SAP GTS against the following export regulations:
○ Sanctioned party list
○ Embargo list
○ Export licenses
○ Import licenses at the customer end
4. SAP GTS sends a message to the user log in SAP CRM. The following messages are possible:
○ Error: Technical fault when calling up SAP GTS
The cause of the error is specified in the long text.
○ Warning: Order item is locked due to foreign trade checks
○ Information: Foreign trade checks were executed successfully
When a check finds, for example, that the exporting country of the order item is named in the boycott list or does not have an export license for the order item, SAP GTS blocks the order item. The status of the sales order is set to Invalid Export Transaction. SAP GTS thus prevents the delivery or third-party purchase order from being created for the order item.
5. If a relevant export license exists, the foreign trade specialist can release the locked order items manually in SAP GTS. When you release locked documents manually in SAP GTS, this does not result in the locked sales order being released automatically in SAP CRM. The sales order in SAP CRM is not updated immediately, but SAP CRM creates a worklist instead. You can schedule a report that is executed as a background job or started manually and that reads this worklist. This report prompts SAP GTS to repeat the compliance checks in order to ensure that the data has not been changed in the meantime. If the compliance checks show that no other items in customs documents have been locked by SAP GTS, the sales order in SAP CRM is released for further processing, and the delivery can take place.
For more information about releasing locked order items, see Releasing Locked Order Items.
6. When the sales order is saved again, SAP GTS carries out compliance checks again for all partially delivered sales items.
When SAP GTS locks an order item due to compliance checks, the system allocates the status Invalid Export Transaction.
After compliance checks have taken place successfully and the screen has been refreshed, the system enters the import license number and the generic customs tariff number in the sales order.