Pricing Routine - unable to enter new net price in sales order
I have a routine 993 in sales order which is in Column 'Bas Type' in pricing procedure . The routine has statement like this that calculate the unit price:
If xkomv-kbetr is initial.
xkomv-kbetr = komp-netwr / kmeng
This calculate the net price which appear in the column 'Amount/Net Price. In the order, the user can change the net price in column 'amount'. However, if i remove the line "If xkomv-kbetr is initial", the user can change the amount, but the amount value will stay as the original amount. I don;t understand why this happen. I have been debugging saplv61A (FM Pricing) but unable to get the flow. Can anyone pls provide guidance ?