Application Development and Automation 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: 
Read only

what is wrong in this code..?

Former Member
0 Likes
499

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.

4 REPLIES 4
Read only

Former Member
0 Likes
480

hi,

did U attach the OBJ to the user-id?

Check with ur basis consultant on this..

Reward points, if it works.

Rgds,

Raghu.

Read only

0 Likes
480

Do you have to ask for points.................

Read only

Former Member
0 Likes
480

try to hardcode the plant ...

AUTHORITY-CHECK OBJECT 'I_SWERK'

ID 'TCD' FIELD 'ZPME789'

ID 'SWERK' FIELD '0001'.

Read only

Former Member
0 Likes
480

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