Skip to Content
avatar image
Former Member

updating table using BADI

hi Gurus ...

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 15, 2008 at 09:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Oct 16, 2008 at 07:59 PM

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

    Thanks,

    SKJ

    Add comment
    10|10000 characters needed characters exceeded