cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization for Delivering Plant in Sales Order

Former Member
0 Kudos

Dear All:

We need to set up authorization for a user based on 'delivering plant' in Sales Order registration (VA01). It appears there is no standard available for this.

Can you kindly help by giving hints to achieve this?

Regards,

K. Dwarakanath

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. You can create a custom authorization object (via SU21 or equivalent); add field 'ACTVT' with permissible values '01', '02', '03'.

2. In form USEREXIT_CHECK_VBAP of include MV45AFZB, you can call the function module AUTHORITY_CHECK, to check the authorization and throw an error.

This user exit is triggered everytime a user makes any change to item level, i.e. applicable for change of plant too. The call for authority check can be based on whether plant is changed or not. I guess *VBAP and VBAP can be compared to check whether plant is changed. If *VBAP-WERKS is not equal to VBAP-WERKS, then call authority check FM by passing username, custom object name, FIELD1 = 'ACTVT', VALUE1 = 01 or 02. If exception returned by FM is USER_NOT_AUTHORIZED, you can throw an error message.

Cheers,

KC

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Using SHD0 transaction also it can be handled.

Regards,

Chandra

Former Member
0 Kudos

Dear KC:

Thanks a lot for the help. I shall try this.

With best regards,

K. Dwarakanath