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

Back

Former Member
0 Likes
961

hi all,

I created a screen by using se51 but my

problem and i write code for back ( leave program )

but my problem is i have manditory fields in that

screen when i press back an error is trigered please

suggest me.

thanks

kamesh..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
941

Hi Kamesh,

U must compulsory use AT EXIT-COMMAND to solve ur probelm.

sytax:

PROCESS AFTER INPUT

Module <modname> at exit-command.

In SE38:

module <modname> INPUT.

leave program..

end module..

Award points if helpful.

Kiran Kumar.G

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 7, 2008 7:09 AM

5 REPLIES 5
Read only

Former Member
0 Likes
942

Hi Kamesh,

U must compulsory use AT EXIT-COMMAND to solve ur probelm.

sytax:

PROCESS AFTER INPUT

Module <modname> at exit-command.

In SE38:

module <modname> INPUT.

leave program..

end module..

Award points if helpful.

Kiran Kumar.G

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 7, 2008 7:09 AM

Read only

Former Member
0 Likes
937

Hi,

you can write your code in at exit-command.

For Example.

In SE51

PROCESS AFTER INPUT.

Module Cancel At Exit-command.

In SE38

MODULE cancel INPUT.

LEAVE PROGRAM.

ENDMODULE. " Cancel INPUT

Plzz Reward if it is useful,

Mahi.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
937

when 'BACK'.

set screen 0. <---give u r screen no here

leave screen.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
937

in PAI.

module exit_command at exit-command.

MODULE exit_command INPUT.

SET SCREEN 0.

LEAVE SCREEN.

ENDMODULE. " EXIT_COMMAND INPUT

in your gui status.

give the function type as 'E' for back button.

Read only

Former Member
0 Likes
937

Hi,

u can try by giving the import parameters as optional.

hope this will work out.

with regards,

Hema.