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

Authorization error

Former Member
0 Likes
276

Hi,

I have created authorization object with two fields one is sales organization and another one is activity

field. My req is only for perticular sales orgainsations i need to give the authorization to users for creating

sales orders. For that purpous i have attached 100 sales organization to authorization object field and 01,02,03 for activity field and i have created field exit for sales organizational field with screen number 101 and inside of the function i have written the below code

AUTHORITY-CHECK OBJECT 'ZTEST'

ID 'VKORG FIELD INPUT

ID 'ACTVT' FIELD 'DUMMY'.

IF SY-SUBRC <> 0.

write 😕 'No authorization'.

ENDIF.

But when i try to create the sales order with 100 sales organization also it is failing sy-subrc value is showing 12 and i am getting the message 'No vendor specified' instead of 'No Authorization'. And my doubt why for 100 also it is giving message as we assigned 100 while creating authorization object and why error message is coming diffarent . i want to display the message no authorization for all the sales organizations other than 100. Please help me.

Thanks a lot in advance.

1 REPLY 1
Read only

Former Member
0 Likes
249

CAn any one give idea on this?