Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter ID 'WRK' not working in MM02, why ?

Rodrigo-Giner
Active Contributor
0 Kudos

Im using Field Exits because in a client we have to validate that fields have to be filled for a especific werks and material, and the user cant change tab with that field empty.

The thing is that in the code I put

IF INPUT is INITIAL.

GET PARAMETER ID 'MAT' FIELD l_matnr.

GET PARAMETER ID 'WRK' FIELD l_werks.

...

l_matnr is filled but l_werks not, and I dont know why, when I enter MM02 i put a material number and the screen selected ask me werk, vkorg... so I enter the data, besides I can see the werks in the other tabs inside the MM02.

I found a post with exactly the same problem but was not answered.

so, gurus this is a SAP bug or what ?

2 REPLIES 2

former_member200338
Active Contributor
0 Kudos

Hi,

Try to export the value to database and import from database

EXPORT <f1> [FROM <g 1>] <f 2> [FROM <g 2>] ...

TO DATABASE <dbtab>(<ar>) [CLIENT <cli>] ID <key>.

The parameter id might be cleard some where.

Regards,

Niyaz

Hi Niyaz, I dont have the value, that is exactly my problem, Im using a Field Exit in a MM02 screen, and I need the value of werks that I put entering MM02.

The problem is that the PARAMETER ID is EMPTY when it should be "1000" for example, dont know if this is normal or if it is a bug.

The funny thing is that Matnr is working, why matnr works and werks dont ?