Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

updating table using BADI

Former Member
0 Kudos

hi Gurus ...

is it possible to update a Z table using BADI...

3 REPLIES 3

uwe_schieferstein
Active Contributor
0 Kudos

Hello Aravindh

Of course you can update a Z-table within a BAdI but - you must not do this.

Why?

A BAdI implementation is always called within a transaction where the COMMIT happens at the end of the transaction (SAVE = commit, CANCEL = rollback). Thus, a premature COMMIT would spoil the running transaction.

Technically it would be possible to trigger the DB update using a fm call IN UPDATE TASK but it is still weird logic.

Regards

Uwe

0 Kudos

thank u for u r reply .....

I have a requirement , where i have to update a Z table at the end of MIRO transaction ..... how to implement it ...

thank u

Former Member
0 Kudos

Do not explicity COMMIT after updating z table. Let standard COMMIT at the end of transaction do it.

Thanks,

SKJ