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

Sales contract authorization object

benlim
Contributor
0 Likes
1,548

Hi Expert,

I'm new in creating authorization object.

I would like to create an authorization object to control which user can update the sales contract header status.

How could I achieve this? Is there any existing authorization object/field available in standard SAP?

Thanks.

Regards,

-Ben-

1 ACCEPTED SOLUTION
Read only

benlim
Contributor
0 Likes
1,141

Hi All,

Thanks for your suggestion. I have solved this issues without authorization object but using abap control checking in enhancement when the transaction is save.

Firstly, I call the function module 'Status_Read' to get the initial user status.

After that I'll check the user status(rv45a-asttx) whether it's changed. If it's changed, prompt error message on status bar when the user click the save button.


The reason I use enhancement as there are additional logic and calculation checking need to be added as well.

Thanks.

Regards,

-Ben-

3 REPLIES 3
Read only

ThangaPrakash
Active Contributor
0 Likes
1,141

Hello Ben,

Go to transaction SU24 and given the transaction for which you need the authorization objects.

It will give the list of authorization objects used in that transaction.

Find out the suitable Authorization object for sales contract header status and then check about that authorization object in transaction SU21.

Regards,

Thanga

Read only

Caetano
Product and Topic Expert
Product and Topic Expert
0 Likes
1,141

Hello

Try the procedure from the documentto find the authorization object in debug.


Regards

Caetano

Read only

benlim
Contributor
0 Likes
1,142

Hi All,

Thanks for your suggestion. I have solved this issues without authorization object but using abap control checking in enhancement when the transaction is save.

Firstly, I call the function module 'Status_Read' to get the initial user status.

After that I'll check the user status(rv45a-asttx) whether it's changed. If it's changed, prompt error message on status bar when the user click the save button.


The reason I use enhancement as there are additional logic and calculation checking need to be added as well.

Thanks.

Regards,

-Ben-