10-10-2007 4:32 PM
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 ?
10-10-2007 4:58 PM
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
10-10-2007 6:19 PM
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 ?