2010 Mar 05 12:23 PM
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
2010 Mar 09 8:33 AM
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
2010 Mar 09 8:33 AM
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