‎2009 Jan 29 8:01 AM
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.
‎2009 Jan 29 9:01 AM