2023 Dec 21 1:40 PM
Hello Everyone ... I want to put a check to prevent the price condition (z*) from being deleted in a sales order I want to give an error message if someone tries to delete it.
How can I do that?".
2023 Dec 21 2:51 PM
2023 Dec 21 3:09 PM
Hello Dominik Tylczynski... Thank you very much for your answer. Yes, I know this, but actually performing this user-based control, for example, user A can delete, but user B cannot.
2023 Dec 22 9:51 AM
Hope you can add the logic in BADI BADI_SD_BILLING_ITEM (method HEADER_PRICING_COM or ITEM_PRICING_COM)
2023 Dec 22 11:13 AM
Hello Thilakan T...
Thank you for your answer, but I need this control in the direct sales order. For example;
I want to allow only certain users to add, change or delete a particular pricing term..
2023 Dec 22 2:07 PM
Try BADI BADI_SD_SALES_ITEM method ITEM_PRICING_COM_H and ITEM_PRICING_COM_I.
This methods getting called in conditions tab. You can add the logic here to validate the actions based on SY-UNAME.
You can also use USEREXIT_PRICING_PREPARE_TKOMK, USEREXIT_PRICING_PREPARE_TKOMP in include MV45AFZZ.
check for Internal table - XKOMV, TKOMK, TKOMP for conditions data.