|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Dialog processing after COMMIT WORK statement
By Raghavender Vadakattu, CSC
to perform dialog processing after commit
general, we may come across the scenario where, some dialog processing needs to
be done after transaction “commit work”. It’s explained here by
considering a scenario.
filling all necessary details in the delivery document, user clicks on
“save” button to create a delivery document. If any dialog processing (like
pop-up to fill some details) required upon successful execution of COMMIT WORK
statement. In this case, we can approach below method.
me explain this by creating a custom class.
an event handler method in the custom class ZTEST_HANDLER for the event
TRANSACTION_FINISHED of the standard class CL_SYSTEM_TRANSACTION_STATE.
This event gets triggered as soon as the COMMIT WORK gets executed.
custom class name :
event handler method: CALL_DIALOG (Event TRANSACTION_FINISHED of standard class
CL_SYSTEM_TRANSACTION_STATE attached to this custom method)
handler method CALL_DIALOG
handler method: CALL_DIALOG detailed view
the COMMIT WORK for the transaction is executed, control comes to custom method
CALL_DIALOG method. Here we can check whether transaction got committed
successfully or rolled back by using interface parameter KIND
as shown in below screen shot.
get the control to the CALL_DIALOG method, we need to do SET HANDLER to register
the event in any user exit before transaction COMMIT WORK execution.
in this case, I registered event in a BADI, which gets triggered after pressing
SAVE button in the outbound delivery (VL01N/VL02N) and before COMMIT WORK
find below screen shot of BADI method.
The Event TRANANSACTION_FINISHED of standard Class CL_SYSTEM_TRANSACTION_STATE and its parameters are shown in below screen shots:
of Class CL_SYSTEM_TRANSACTION_STATE:
Note: We can use IMPORT and EXPORT statements to
transfer data from BADI to the method CALL_DIALOG.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards