on 01-30-2009 4:09 PM
(Have also posted this on Security forum but hope someone on here can help)
We need to be able to block users from deleting sales order items. The objects V_VBAK_VKO and V_VBAK_AAT can be used at the 'order header' level but these do not prevent a user deleting an individual item in an order. Does anyone know of a way of achieving this through authorisations?
Dear Peter
Following are some of the sale order user exits which you can make use of to achieve your requirement.
- User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
- User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT
- User exits in the program MV45AFZB - USEREXIT_CHECK_VBAP
Tell the logic to your ABAPer and ask him / her to write a code in any of the above user exits which can definitely be achieved.
thanks
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter Andrew,
For that use the exit USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_CHECK_VBAP, you need to add the logic in both exit to ensure to cover all bussines case.
Thanks,
Mariano.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your responses. We have decided to use USEREXIT_CHECK_XVBAP_FOR_DELET in MV45AFZB with some code based on the AUTHORITY-CHECK syntax below:
AUTHORITY-CHECK OBJECT 'S_CARRID'
ID 'CARRID' FIELD pa_carr
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 4.
MESSAGE e045(sabapdocu) WITH pa_carr.
ELSEIF sy-subrc <> 0.
MESSAGE e184(sabapdocu) WITH text-010.
ENDIF.
In our case we will reference object V_VBAK_AAT.
User | Count |
---|---|
102 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.