cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization for Shipping Point

Former Member
0 Kudos

Hi Friends,

The requirement is that we want to restrict users for Shipping Points in VA01. For example there as 2 users: User1 and User2. Shipping Points are 4: S10, S20, S30, S40. User1 should not be able to create Sales Order with Shipping Point S30 and S40. Similarly User2 shd not be able to create Sales Order with S10 and S20.

However the Proposal against V_LIKP_VST for VA01 is NO. When we are making it YS, the green light is converting to Yellow. So pl suggest how to achieve this restriction.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

You can try with USEREXIT_CHECK_VBAP  in program MV45AFZB

G. Lakshmipathi

Answers (2)

Answers (2)

former_member223981
Active Contributor
0 Kudos

The requirement cannot be fulfilled in the standard SAP system. You will need to implement the authorisation check in a user exit to fulfil the requirement.

As G. Lakshmipathi has already stated, USEREXIT_CHECK_VBAP would seem a logical place to implement an authorisation check. At this stage, the shipping point determination has been completed and you should access to the shipping point in field VBAP-VSTEL. USEREXIT_MOVE_FIELD_TO_VBEP is another place you could implement a check as by this stage, you should have the data in the XVBAP structure.

You will need to discuss the exact code with your own ABAP team, but you can look to other places where authorisation object V_LIKP_VST is used. For example, when processing VL01N, we see it checked here:

SAPMV50A FORM BERECHTIGUNG_PRUEFEN

* Berechtigung für diese Aktion in dieser Versandstelle

  AUTHORITY-CHECK OBJECT 'V_LIKP_VST'

       ID 'VSTEL' FIELD likp-vstel

       ID 'ACTVT' FIELD bp_actvt.

You can use similiar code in USEREXIT_CHECK_VBAP where you could use VBAP-VSTEL instead of LIKP-VSTEL.

Hope this helps.

Former Member
0 Kudos

Dear R.SGR

PLZ could tell me Business example why business wants to restrict ?