cancel
Showing results for 
Search instead for 
Did you mean: 

MIRO Badi or Exit for updating exchange rate

wwc0220
Participant
0 Kudos

HI guys,

Any exit, enhancement, badi for updating exchange rate when user perform MIRO?

System will take M rate as default, but we want daily bank rate for this action.

I try FI header substitution, it can trigger the change. But it can't update to the FI header eventually after the posting.

Also badi AC_DOCUMENT also can't modify the rate field, since it is read only data field.

Anyone can help and give me the sample to do so, thanks!!!

Already search for many topics from this community, but no luck.

Accepted Solutions (0)

Answers (4)

Answers (4)

ldmh
Member
0 Kudos

Try BADI_FDCB_SUBBAS05

avikjuoss
Participant
0 Kudos

For MIRO logistic invoice verification ( MM-FI integration where exchange rate is picked from PO)

You can use BADI-INVOICE_UPDATE - Method CHANGE_AT_SAVE

Trick is to use call stack '(SAPLMR1M)ydrseg[]'. to modify Invoice Item - drseg data.

KR

Avik

wwc0220
Participant
0 Kudos

INVOICE_UPDATE only display the data, local variables are read only. How can I change it.

Can you give me a sample for this?

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

The below question answered earlier may be useful

https://answers.sap.com/questions/9749125/changing-exchange-rate-in-miro.html

Thanks & Regards

Sanil Bhandari

wwc0220
Participant
0 Kudos

No, I don't want user to fill in the rate manually. I am looking for an user exit or Badi to auto update it.

avikjuoss
Participant
0 Kudos

Hi Derek,

I understand-you have opened a new thread with the same question as on the older thread-

https://answers.sap.com/questions/13913768/update-exchange-rate-when-sd-fi-or-mm-fi-conversio.html

Old Answer-Can you please respond what problem are you facing?

Standard behaviour:-
The exchange rate type in the customer master has two functions:1. Conversion of conditions from the local currency to the document currency(VBRP-KURSK)2. Determination of the exchange rate for accounting in the case of intercompany billingVBRK-KURRF
Can you please try using global include program - RV60AFZC?
Inside that - you need to search for FORM USEREXIT_FILL_VBRK_VBRP you can set VBRK-KURRF (Exchange Rate for the conversion Loc.currency <-> Doc.currency.)or VBRP-KURSK- Exchange Rate for the conversion Loc.currency <-> Doc.currency. for Price Determination
KRAvik

Note- Reagrding FI substitution - New Thread question- That also would work with appropriate choice- It must be on POST substitution not on Validation.

wwc0220
Participant
0 Kudos

Thx for your patience, but I still can't find a right answer for MIRO part.