Hi there,
I am looking for a successful solution to capture certain document change events (date stamp, time stamp, user name, document number) and store them inside Z* table (exported to external system on daily basis). Of course I need to be sure, that change is commited (perhaps in update event, if error, auto rollback for both my changes in Z* table and system changes in RBKP/BKPF and underlying tables).
RBKP-purchasing documents
II've managed to locate INVOICE_UPDATE BAdI, method CHANGE_IN_UPDATE. Here I have document number, can store it in Z* table and fetch rest of data later.
Will the above solution grant me integrity - i.e. if data is stored in RBKP(and underlying tables) my record in Z table will be stored as well ? (otherwise both will disappear)
--
BKPF-accounting documents
I was unable to find similar approach using BAdI.
Can someone point me into the right direction - what event/user exit/BAdI/BTE could be used to log data similar way as above (assuming its a safe solution preserving integrity ) ?
Thanks in advance.
Cheers,
Bart