2012 Feb 08 11:17 AM
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.
2012 Feb 08 12:06 PM
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.
2012 Feb 10 2:01 PM
Hi,
in order to distinguish between invoice, credit memo...etc you can use something like this:
Best regards.