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

Table control - Chain..End chain Cancel functionality

Former Member
0 Likes
384

Hi,

I m working on table control. i have used chain..end chain functionality for checking input. But if user changes any thing in the table control and he click on Cancel button then it is not coming out of the program. I mean it check for the input only, unless and until that field is corrected it will not allow to come out.

How to come out through Cancel button if user enters anything wrong and want to come out without changing the wrong value?

Thanx in advance.

-Umesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
358

Hi,

For the cancel button have the function type as 'E' (Exit command).

And create a module in the PBO...like this..

PROCESS AFTER INPUT.

MODULE EXIT_COMMAND AT EXIT-COMMAND .

MODULE EXIT_COMMAND.

IF SY-UCOMM = 'CANCEL'.

LEAVE PROGRAM.

ENDIF.

ENDMODULE.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
359

Hi,

For the cancel button have the function type as 'E' (Exit command).

And create a module in the PBO...like this..

PROCESS AFTER INPUT.

MODULE EXIT_COMMAND AT EXIT-COMMAND .

MODULE EXIT_COMMAND.

IF SY-UCOMM = 'CANCEL'.

LEAVE PROGRAM.

ENDIF.

ENDMODULE.

Thanks,

Naren

Read only

0 Likes
358

HI Naren,

Thankx for the quick response.

Problem is solved adn given u the point.

-Umesh