Skip to Content

GTS Legal Control for COO

Good afternoon,

I'm pretty new to GTS and need some guidance from the real experts out there...

My customer has a requirement to block sales documents based on the country of manufacture. The current thinking is to map this to the COO field on the batch in ECC.

The underlying reason for this is to stop FG's made in Mexico, stored in non-MX warehouses that containing US components greater than 10% within their assembly being shipped to sanctioned countries e.g. Iran, Sudan. The customer is happy to figure out what should and should not be blocked outside of the system, so no need at this stage to work that into a solution (phew).

I believe a solution for this could be to implement the BADI check within legal control "license_types_get" and determine a custom license type based on COO from the customs document line item during delivery creation. This would allow me to set a specific check for COO = MX and list allowed products in a license master record I believe.

I can see two problems with my solution 1) coping with batch split for an item at delivery 2) I want to keep the solution simple and vanilla SAP if possible.

Does anyone know a neat standard way to do this?

Cheers Andy

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2014 at 09:24 AM

    Hi Andy,

    Interesting, one approach you might want to try, especially if you want to keep it 'as vanilla as possible'. :

    1) Get the infromation from the batch into the information on an item for GTS transfer,

    in the SD0A badi /SAPSLL/IFEX_SD0A_R3, you can fill CS_ITM_CDOC-GEN-COUNTRY_OF_ORIGIN / COUNTRY_OF_ORIGIN_ISO from the batch info (you`ll need to figure out the batch split, etc...

    2) In GTS, you`d implement another BadI, that will check the country of origin set in step 1 and if that criteria is met, it would require a specific 'dummy' license type, ie a type of license used to control these transactions. No dummy license exists - transaction is blocked -

    You might want to try badi /SAPSLL/LCC_DOCUMENT, method LICENSE_TYPES_GET

    Then if you`d need to unblock, you`d create an individual license of the 'dummy type' for the particular SO/delivery

    Hope this adresses at least the major part of your requierment, others here might have other suggestions..



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Dave,

      Thanks for the suggestion. I'm not a fan of Z objects unless its necessary, however, in this case it is. Basically within the warehouse the customer will have mixed bins of product with different CoO. The problem is that anything but MX product can be shipped to certain countries. Normally id try to achieve this by determining the CoO using stock segregation to create a plant + SLoc LU however the customer doesn't operate like that.

      The reason im going for a table is to give the customer flexibility if that scope changes and to keep the code visible as I don't want to hard code rules like that in the BADI.

      Thanks for your help Andy

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.