Application Development 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: 

Back

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

kesavadas_thekkillath
Active Contributor
0 Kudos

when 'BACK'.

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

leave screen.

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

u can try by giving the import parameters as optional.

hope this will work out.

with regards,

Hema.