cancel
Showing results for 
Search instead for 
Did you mean: 

user exit or BADI in MIRO

Former Member
0 Kudos

HI

We have a special situation where SAP MIRO is proposing values for freight at MIRO which is in variance with freight clearing account values at GR stage. Is there some user exit or BADI that I can call to substitute the system proposed value with another value?

Or some exit or BADI to atleast give a warning message to users along the lines in such situation?

Sriram

Message was edited by:

Sriram Chundi

Accepted Solutions (1)

Accepted Solutions (1)

dipak_kumar3
Active Contributor
0 Kudos

Hi ,

You can try with invoice_update BADI . This BADI gets triggered at the time of simulation as well as at the time of save also .

Thanks

Dipak

Former Member
0 Kudos

HI Deepak

Can this BADI be used to issue warning message? The documentation on it reads as: You should note that no system messages can be send in the methods. One exception here is the method CHANGE_AT_SAVE. Within this method, a system message can be issued if the exception ERROR_WITH_MESSAGE is triggered.

Sriram

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Before you try using BADIs or user exits it is worth understanding why you think there is a problem?

This functionality is being used world wide and does not cause a problem for many other users?

Have you determined why it is using a different value at GR to Invoice receipt stage? The only situation that I can think of is for exchange rate differences if foreign currencies are being used.

If it is not a foreign currency and so the difference is not down to fluctuation exchange rates then the two values should be the same. (i.e the value posted to the clearing account at GR will equal the value proposed at MIRO stage).

So please can you check WHY there is a difference because it is probably working as it should.

As for using a different value via a user exit, where would that value come from? How woould you calculate it? The problem is that the whole MIRO has to balance exactly, if you manually (via a BADI or user exit) change a value there is a real danger of causing corruption, because the system is using the value it has calculated with a complex equation.

Steve B

Former Member
0 Kudos

Thnx Steve, you made valid point. I did not elaborate on the situation earlier as I thought it is not really relevent to the question:

We use shipment costing for freight. In some cases, shipment cost is a fixed price irrespective of the quantity in the shipment. In such cases, at IV stage system behaves funny for planned del costs.

We took this up with OSS, they ack it is a problem, but can't change the way it is currently designed any time soon.

If you are more interested, I can elaborate more with example

Sriram

Former Member
0 Kudos

Hi,

I was not aware of this problem and so I am sorry if I have misunderstood.

If you are using the correct condition type for fixed price shipment costs and getting problems at invoice stage then this is strange and if you are indicating that SAP have said that it is an error and they have no solution then that is even stranger !

But Strange things do happen (even in SAP sometimes!).

Steve B