on 06-09-2010 7:23 AM
Hello,
we would like to prevent some users to change the billing block at item level (VBAP-FAKSP).
Would you know how to do this? Is there any authorization objet we could use?
There is (V_VBAK_AAT-ACTVT) but it is at header level so it does not fit our requirements.
Thank you in advance for any information & regards,
Didier
Hans had the right idea, but I think this should rather be done in the user exit USEREXIT_CHECK_VBAP in MV45AFZB since it's usually triggered when the item is changed.
Inside Hans's sample code the developer will need to add AUTHORITY-CHECK comand. You'll also need a custom authorization object to check and to assign to the roles.
This is basic ABAP stuff, so your ABAPer should know, actually.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Didier,
you can use an Userexit with a E-Message, to preven the change.
Userexit mv45afzz
Save_prepare
check, if the VBAP-FAKSP has changed
field-symbols : <yvbap> like line of yvbap,
<xvbap> like line of xvbap.
loop at yvbap assigning <yvbap>
read xvbap assigning <xvbap>
with key vbeln = <yvbap>-vbeln
posnr = <yvbap>-posnr.
if sy-subrc eq 0 and
<xvbap>-updkz ne 'D'.
if <xvbap>-faksp ne <yvbap>-faksp.
call function popup_to_inform ......
Message e...() .....
endif.
endif.
unassign <xvbap>.
endloop.
Hans
hans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.