Skip to Content

ME21N (Stock Transfer Oder) Modification in Item overview for adding zfield Issue.

Dear Experts,

I have following requirement at one of our client.

1) In item overview of the Tcode me21n, they want zfield for Pricing in STO Scenario.

2) After getting the pricing value, they want to do some calculation on the condition type lets say PBX00.
value = Zfield-value - PBX00 (value).

Working for my side :

I have done modification in Table control TC_1211 and add zfield in Table control.

Issue : After pressing enter the value in zfield disappears.
I have placed the zfield in Chain Endchain statement as well but no benefits.

Please suggest.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2016 at 05:32 AM

    Hi A N,

    You have to do enhancement in Method HANDLE_EVENT of Class CL_SCREEN_VIEW_MM also to update the values .

    Write a case statement for IM_EVENT and write logic in when 'PBO' and When 'PAI'.

    You can use the field symbols to assign the value from screen using Stack Memory,

    like ASSIGN ('(SAPLMEGUI)MEPO1211') TO <fs_mepo1211>. Do this in When 'PAI'.

    and in When 'PBO'

    loop at screen.

    if screen-name = 'MEPO1211-ZFIELD'.

    assign the zfield value from <fs_mepo1211> to stack variable for this field in ('(SAPLMEGUI)MEPO1211') .



    Do let know in case of issues.



    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.