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

Customizing the VL32N transaction's BACK / EXIT functionality

Former Member
0 Likes
581

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

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

1 REPLY 1
Read only

Former Member
0 Likes
474

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