Application Development and Automation 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: 
Read only

updating table using BADI

Former Member
0 Likes
1,346

hi Gurus ...

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

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
836

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

Read only

0 Likes
836

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

Read only

Former Member
0 Likes
836

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

Thanks,

SKJ