21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Once the COMMIT WORK for the transaction is executed, control comes to custom method<br />

CALL_DIALOG method. Here we can check whether transaction got committed successfully<br />

or rolled back by using interface parameter KIND as shown in below screen shot.<br />

To get the control to the CALL_DIALOG method, we need to do SET HANDLER to register<br />

the event in any user exit before transaction COMMIT WORK execution.<br />

Here in this case, I registered event in a BADI, which gets triggered after pressing SAVE<br />

button in the outbound delivery (VL01N/VL02N) and before COMMIT WORK execution.<br />

Please find below screen shot of BADI method.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!