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

Why not working this code?

Former Member
0 Likes
670

Hi,

I want to use following part of code to exit the program whenever he wants. He should not have to enter a value into a required text area.

But not working?

What may be the problem?

PROCESS AFTER INPUT.

MODULE exit AT EXIT-COMMAND.

And the code is as follows:

MODULE EXIT INPUT.

LEAVE PROGRAM.

ENDMODULE. " EXIT INPUT

1 ACCEPTED SOLUTION
Read only

former_member480923
Active Contributor
0 Likes
647

Give the Function type for the button as E - Exit Command

Hope That Helps

Anirban M.

5 REPLIES 5
Read only

dhruv_shah3
Active Contributor
0 Likes
647

hi

YOu can use it like this...



MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
  WHEN 'EXIT'.
    LEAVE PROGRAM.
  WHEN 'ICON'.
    MESSAGE 'THIS IS INFORMATION' TYPE 'I'.
  WHEN 'BACK'.
    LEAVE TO SCREEN 0.
  WHEN 'CANCEL'.
    CLEAR OK_CODE.
  ENDCASE.

ENDMODULE.                 " USER_COMMAND_0100  INPUT

HTH

Regards,

Dhruv Shah

Read only

rahulkavuri
Active Contributor
0 Likes
647

hi

First check whether it comes till LEAVE PROGRAM by setting a break-point..

If it is, then make a call as follows to leave the transaction

CALL TRANSACTION SESSION_MANAGER

This is generally the case when the user navigates to a second screen and makes a call to LEAVE PROGRAM...

Read only

former_member480923
Active Contributor
0 Likes
648

Give the Function type for the button as E - Exit Command

Hope That Helps

Anirban M.

Read only

Former Member
0 Likes
647

Hi,

If the text area is mandatory field, then it is not possible to go back without entering the some values into that.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
647

hi,

make sure that u have given Function Type E ( Exit Command) to that button in GUI Status...