SAP for Automotive Discussions
Connect with fellow SAP users in discussions to troubleshoot challenges, share best practices, and fuel each other's success. Join a conversation or start your own.
cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization for discount

Former Member
0 Kudos
193

Hi,

I am trying to build up custom logic for checking the authorization when assigning item level discount.

It is to be checked, if the user is allowed to assign amount of discount (absolute or percentage) using Z authorization objects.

I would like to read the old and new values for the discount conditon QRPO in order processing and allow the change of the discount on successful authorization check.

Please suggest a suitable enhancement spot where discount values (KOMV - KBETR) can be read and edited in order to achieve this.

Or suggest if it is done better using formulae in pricing procedure.

Thanks in anticipation,

DRB

1 ACCEPTED SOLUTION

Former Member
0 Kudos
157

Hi,

you can of course try to use a formula but there you can not transfer proper error messages back to the user.

If you only check item conditions which are included in the DBM UI mapping (QPRO is mapped to /dbm/vbap_com-REBATE)

then you can implement a second execution BAdI for the ITEM_CHANGE/ITEM_NEW.

Here you can compare /DBM/VBAP_COM-rebate with /DBM/VBAP_DB-rebate and raise an action error with proper message for the user.

Best regards

Robert

View solution in original post

1 REPLY 1

Former Member
0 Kudos
158

Hi,

you can of course try to use a formula but there you can not transfer proper error messages back to the user.

If you only check item conditions which are included in the DBM UI mapping (QPRO is mapped to /dbm/vbap_com-REBATE)

then you can implement a second execution BAdI for the ITEM_CHANGE/ITEM_NEW.

Here you can compare /DBM/VBAP_COM-rebate with /DBM/VBAP_DB-rebate and raise an action error with proper message for the user.

Best regards

Robert