‎2010 Aug 03 9:39 AM
Hello All,
Please let me know how to Customizing the VL32N transaction's BACK / EXIT functionality based on codition.
My requirment is : when user click on BACK / EXIT of VL32N without saving the changes then it will display a pop-up with the inforamtion '' System will exit the processing Do you want to save data'', still user click on 'NO' option of the pop-up then it will move the initial screen of VL32N ( as per Standard process ) , instead of it has to move 'SAP easy access ' screen .
Please reply if anyone have solution.
Thanks
‎2010 Aug 03 12:57 PM
Hi Nandana,
What we have to do here is to find out a BAdi, or exit or an enhancement point during this activity.
To find the BAdi please follow below procedure.
Go to transaction SE24, class name CL_EXITHANDLER, go to methods, double click on method GET_INSTANCE.
Set a break point at
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
CHANGING
exit_name = exit_name
EXCEPTIONS
no_reference = 1
no_interface_reference = 2
no_exit_interface = 3
data_incons_in_exit_managem = 4
class_not_implement_interface = 5
OTHERS = 6.
CASE sy-subrc.
Now run trasaction VL32N, and after you reach or enter some data in the next screens, press the button BACK/EXIT , your control will break at each BADI(If any), exit name and instance will give you the BADI details.
If there is no BAdi during this activity, enter /h just before BACK/EXIT and set BREAK POINT AT(Menu-> Break pints-> Break points at) statement = CALL , if you can find out the customer exit by this way(if any) you can add your code here. Here also please check whether you are getting Yes/No values throgh the interface of exit function module.
Next part is enhancement point , here problem is you may have to write the same code in PAI of several screens.
Please check the feasiblity of these solutions, hope this will help you to a certain extent.
Thanks and Regards,
Antony Thomas
‎2010 Aug 03 12:57 PM
Hi Nandana,
What we have to do here is to find out a BAdi, or exit or an enhancement point during this activity.
To find the BAdi please follow below procedure.
Go to transaction SE24, class name CL_EXITHANDLER, go to methods, double click on method GET_INSTANCE.
Set a break point at
CALL METHOD cl_exithandler=>get_class_name_by_interface
EXPORTING
instance = instance
IMPORTING
class_name = class_name
CHANGING
exit_name = exit_name
EXCEPTIONS
no_reference = 1
no_interface_reference = 2
no_exit_interface = 3
data_incons_in_exit_managem = 4
class_not_implement_interface = 5
OTHERS = 6.
CASE sy-subrc.
Now run trasaction VL32N, and after you reach or enter some data in the next screens, press the button BACK/EXIT , your control will break at each BADI(If any), exit name and instance will give you the BADI details.
If there is no BAdi during this activity, enter /h just before BACK/EXIT and set BREAK POINT AT(Menu-> Break pints-> Break points at) statement = CALL , if you can find out the customer exit by this way(if any) you can add your code here. Here also please check whether you are getting Yes/No values throgh the interface of exit function module.
Next part is enhancement point , here problem is you may have to write the same code in PAI of several screens.
Please check the feasiblity of these solutions, hope this will help you to a certain extent.
Thanks and Regards,
Antony Thomas