‎2008 Jun 24 9:17 AM
AUTHORITY-CHECK OBJECT 'I_SWERK'
ID 'TCD' FIELD 'ZPME789'
ID 'SWERK' FIELD ls_plant-werks.
even if the user had authorization to the plant it gives no authorization..
thanks.
‎2008 Jun 24 9:19 AM
hi,
did U attach the OBJ to the user-id?
Check with ur basis consultant on this..
Reward points, if it works.
Rgds,
Raghu.
‎2008 Jun 24 9:21 AM
‎2008 Jun 24 9:22 AM
try to hardcode the plant ...
AUTHORITY-CHECK OBJECT 'I_SWERK'
ID 'TCD' FIELD 'ZPME789'
ID 'SWERK' FIELD '0001'.
‎2008 Jun 24 12:45 PM
hi
This option sets the value of sy-subrc. If you want to check that plant number place ur code inside if sy-subrc <> 0.
This will help.
reward if useful.
Sumit Agarwal