I'm blocked trying to find a way to automatically update the exchange rate at MIR7 time.
Actually we store an hedging rate in the sales contract (specific field) for shipment costs.
When creating shipment costs document I use an exit to replace standard exchange rate by the specific one (from sales contract). Everything works fine for budgeted costs but when we enter carrier invoice in MIR7 I also have to update exchange rate (INVFO-KURSF) with the specific rate from sales contract.
Could you give me some clue to update that field using an exit or BADI?
The process would be, when going to MIR7, user enters a currency different from company's currency (In background the system gets exchange rate from OB08 and fills in INVFO-KURSF).
User then goes to enter carrier vendor code and select shipments concerned by the invoice.
At that time, a specific program has to get specific hedging rate stored in related sales contract and replace standard rate in field INVFO-KURSF.
BADI INVOICE_UPDATE doesn't change any data.
I didn't find the way to do it with BADI_FDCB_SUBBAS04...
Thanks in advance.