Skip to Content

MM01/MM02/MM03 - screen exit - "GET PARAMETER ID 'WRK'" doesn't work.

Hi guys,

I'm implementing a Screen Exit on MM01/MM02/MM03 and I'm trying to get the value from the field MARC-WERKS using the commands below:

DATA: w_matnr_aux TYPE mara-matnr,

w_werks TYPE marc-werks,

w_marc TYPE marc.

GET PARAMETER ID 'MAT' FIELD w_matnr_aux.
GET PARAMETER ID 'WRK' FIELD w_werks.

So, when I access the MM02 transaction to change the Material Data the ID 'WRK' is empty, but I can get the MATNR using the ID 'MAT'.

How can I get the value from WERKS???

Please, could somebody help me???

Thanks a lot!!

Regards,

Marcos Fernando Dotta

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2012 at 03:45 PM

    'WRK' will not be populated unless you access a screen which is plant dependent, or which contains MARC.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Marcos Fernando Dotta

      hello,

      This means you are trying to initialize the material or plant fields and then later read it before the screen exit ?

      I may have done it in the past, cannot recollect now. You could get one of those find user exit program for a t-code and find the exits for MM01 and see in debug one suitable for you.

      best regards,

      swanand

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2016 at 07:15 AM

    This message was moderated.

    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.