12-01-2010 11:11 AM
Dear Gurus,
This my first question.
I want to know, How to put AUTHORIZATION OBJECT on Promotion type in t code WAK1.
I want , a user let say would not create Promotion order other then ( RC10). How can i do it.
Please help.
Best Regards
sachin chauhan
12-02-2010 3:22 PM
Hi,
You can see the standard auth.objects with tcode SU22. Use the field for tcode and run it with F8.
Regards,
Eduardo
12-02-2010 5:10 PM
Thanks for ur reply sir,
But wak1 is a standard t code. i have the authorization object. but i am not able to attach that object.
I also check exits, but no exit availble. there is bapi for create promotion.
Can u tell me how to write my authorization code in bapi.
That will be helpfull for me.
thanks,
Regards,
Sachin chauhan.
12-03-2010 8:21 AM
Hi,
Are you telling me that you have a z auth, object built with SU21? If it's true, you can insert in SE38 with the push 'Pattern' and option AUTHORITY CHECK. The system insert it. After, set the parameters as variables and if the return code isn't zero (you don't have auth) you must set an error message, for instance in LIPW4F58:
*... Auth check movemnt. plant
authority-check object 'M_MSEG_WWA'
id 'ACTVT' field '01'
id 'WERKS' field mseg-werks.
if sy-subrc eq 4.
message e199 with mseg-werks.
endif.
Remember set the object in PFCG, and check that in case of rejection of auth. the tcode SU53 works right.
I hope this helps you
Eduardo
12-03-2010 8:55 AM
Hi,
I understand your code sir. But i do not have access key. How can i open the program in se38 to write that code.
01-10-2011 12:28 PM
Dear Sachin,
You have to insert the authorization code using enhancement frame.
Search in forum for enhancement frame work...
this will help to achieve your requirement.
Regards
Ganesh Reddy