2007 Feb 06 7:01 PM
Hi all,
can anyone suggest me a userexit to change the amount value for a pricing condition , when the suggested retail price (zsrp) is zero.
thanks,
nani.
2007 Feb 06 7:07 PM
Hi,
You can create a Formula in the transaction VOFM..
Then assign the formula in the pricing procedure..
In the formula..
You can use the table XKOMV..
READ TABLE XKOMV WITH KEY KSCHL = 'ZSRP'.
IF SY-SUBRC = 0 AND XKOMV-KWERT IS INITIAL.
**CHANGE THE AMOUNT VALUE.
XKWERT = XKWERT + 10
ENDIF.
Thanks,
Naren
2007 Feb 06 7:21 PM
Hi Nani,
Go through the following Statements for caliculating the Taxes
Table is KONV.
This is for Tax Caliculation
READ TABLE IT_KONV INTO X_KONV WITH KEY KSCHL = 'MWST'.
IF SY-SUBRC = 0.
V_MWST_PER = X_KONV-KBETR / 10.
V_MWST_TOT = V_MWST_TOT + X_KONV-KWERT.
ENDIF.
This is for Discount Caliculation
READ TABLE IT_KONV INTO X_KONV WITH KEY KSCHL = 'SKTO'.
IF SY-SUBRC = 0.
V_SKTO_PER = X_KONV-KBETR / 10.
V_SKTO_TOT = V_SKTO_TOT + X_KONV-KWERT.
ENDIF.
V_NET_AMOUNT = ( X_VBRP_NETWR1 + V_MWST_TOT ) + V_SKTO_TOT.
Regards
Sreeni
2007 Feb 06 7:31 PM
Hi,
You can use user exit USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ.
Changing condition in xkomv (Field UPDKZ to manage the creation (I) deletion (D) and change (M)).
Regards,
Ferry Lianto