‎2008 Jan 07 6:04 AM
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..
‎2008 Jan 07 6:07 AM
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
‎2008 Jan 07 6:07 AM
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
‎2008 Jan 07 6:07 AM
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.
‎2008 Jan 07 6:21 AM
when 'BACK'.
set screen 0. <---give u r screen no here
leave screen.
‎2008 Jan 07 6:25 AM
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.
‎2008 Jan 07 6:55 AM
Hi,
u can try by giving the import parameters as optional.
hope this will work out.
with regards,
Hema.