Skip to Content
0
Apr 20, 2007 at 03:10 PM

Regarding BADI INVOICE_UPDATE, method CHANGE_AT_SAVE

424 Views

Hi there,

I'm implementing this Badi so i can make some checks at the time of saving an edited preliminary (parked) document. If the total of the invoice is higher than the old one, i do the checks (against a Z table, a Z function module, etc) and if i have to stop saving, i trigger an error message raising ERROR_WITH_MESSAGE exception. As the only method that gets called in all the cases I need, and allows me to trigger messages, is CHANGE_AT_SAVE, I use this one.

The okcodes that i'm interested in are:

<i>PARK (Save parked document)

COMP (Save as completed)

BU (Post)</i>

The problem is, to do all the processing, i compare the method parameters

S_RBKP_OLD vs. S_RBKP_NEW.

When the okcode is PARK or COMP it's ok, but <b>when posting (BU) the S_RBKP_OLD doesn't get populated</b>! Anyone knows why is that and what the workaround would be?

Update: i've searched throught OSS but there's no note related to this.

Thank you very much.