Application Development 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: 

Authorization object on Promotion Type ( WAK1)

0 Kudos

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

5 REPLIES 5

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

You can see the standard auth.objects with tcode SU22. Use the field for tcode and run it with F8.

Regards,

Eduardo

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

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