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

user exit in ME21N

hi everybody

I have added 2 additional fields(zzqty, zzprice) at item level in PO, Ive also added the subscreen in me21N

My requirement is that these 2 fields should be copied from the fields menge and netpr for each line

I have coded the following in the user exit

EXIT_SAPMM06E_016

DATA: ekpo type ekpo.

ekpo = i_ekpo.

ekpo-zzqty = i_ekpo-netpr.

ekpo-zzprice = i_ekpo-netpr.

FREE MEMORY ID 'CUS_AKTYP'.

EXPORT aktyp FROM I_AKTYP TO MEMORY ID 'CUS_AKTYP'.

EXIT_SAPMM06E_018

data: ekpo type ekpo.

move-corresponding ekpo to e_ci_ekpo.

but its not working

can somebody tell me wat im missing?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 12:54 PM

    what are you trying to do and what is not working?

    anyway your export command is wrong, it shoudl be EXPORT to ; not export from

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2008 at 12:55 PM

    i am not sure what you are doing///?

    EXIT_SAPMM06E_016

    DATA: ekpo type ekpo.
    
    ekpo = i_ekpo.
    ekpo-zzqty = i_ekpo-netpr.
    ekpo-zzprice = i_ekpo-netpr.
    "where are you exporting the data..?
    "you are exporting only AKTYP 
    "what about EKPO
    FREE MEMORY ID 'CUS_AKTYP'.
    EXPORT aktyp FROM I_AKTYP TO MEMORY ID 'CUS_AKTYP'.

    EXIT_SAPMM06E_018

    data: ekpo type ekpo.
    "Where is the Import...?
    move-corresponding ekpo to e_ci_ekpo.

    Add a comment
    10|10000 characters needed characters exceeded

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.