Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

user exit in sales order

Former Member
0 Kudos
186

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.

3 REPLIES 3

Former Member
0 Kudos
100

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

Former Member
0 Kudos
100

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

ferry_lianto
Active Contributor
0 Kudos
100

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