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: 

how to disable the tax calculation field in MIRO screen only for CreditMemo

Former Member
0 Kudos
480

Dear Expert

user want to create credit memo by MIRO transaction .But in table RBKP there no field to trace document ,that is invoice or credit memo document .i want to validate during credit memo, tax & with holding tax cannot calculate .I tried a lot badi but no badi or user exit is controlling at the time selection transaction & validating before save MIRO .

please help me.

Regards

Girish.

2 REPLIES 2

Former Member
0 Kudos
85

Daer Anup,

Check the below link where you can capture the current transaction in MIRO.

http://forums.sdn.sap.com/thread.jspa?threadID=1416227&tstart=0

CONSTANTS: c_vorgang(23) TYPE c VALUE '(SAPLMR1M)RM08M-VORGANG'.

FIELD-SYMBOLS: <fs_vorgang> TYPE ANY.

ASSIGN (c_vorgang) TO <fs_vorgang>.

CASE <fs_vorgang>.

WHEN '1'.

WHEN '3'.

WHEN OTHERS.

ENDCASE.

Based on the value of field symbol you can differentiate.

Thanks to Pablo who has given this solution in the above mentioned thread.

The BADI you can use is INVOICE_UPDATE and method AT SAVE .

Regards,

Deepak.

former_member182371
Active Contributor
0 Kudos
85

Hi,

in order to distinguish between invoice, credit memo...etc you can use something like this:

Best regards.