Skip to Content
author's profile photo Former Member
Former Member

User Exit PO - ME21N/ME22N - Foreign Trade Item


I need to change some values in the PO Item (Foreign Trade Item) -> Import tab -> declaration--> Import/Export

The way to do it is via user exit. I need to set Dispatch country (EIPO-SEGAL) = Import /Export).

I found the SAP Enhancement : V50EPROP which has 6 user exits. I tried

EXIT_SAPLV50E_004 but this is only called upon PO creation. Although I put the above logic in EXIT_SAPLV50E_004, it gets cleared off somewhere.

For change mode/create mode, it will hit EXIT_SAPLV50E_005 and EXIT_SAPLV50E_006. But I couldnt change any of the EIPO values.

Has anyone done this before?

Please advice.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Mar 09, 2011 at 05:20 PM


    See Note 118573 - User exits foreign trade data in SD and MM documents and related notes.

    Other enhancement is FTGOVSEL (see Note 303984 - Correct use of EXIT_SAPLV50G_001 and EXIT_SAPLV50G_002). I think that you need this last enhancemt.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Sandip,

      I had a same kind of requirement in which i have to update the field "Preference code" from a custom "Z" table through an exit. The exit "XIT_SAPLV50E_004" works fine for Creation mode (me21n). But during change mode it's not getting into the code defined in the include of the component.(it's not triggered.)

      I checked the exits suggested by Hinojosa but the first one "EXIT_SAPLV50G_001" doesn't have PO and line item as import criteria and hence that can't be used.

      While checking the second exit "XIT_SAPLV50G_002" , I found that it doesn't have export parameter as EIPO table. Which can be used to overwrite the value of Preference code (EIPO-PREFPACOD).

      So if your issue has been resolved, could you please suggest how to proceed?



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.