2007 Nov 14 1:32 PM
Hello,
As you know we cannot leave the screen if there is a field required to be filled on this screen.However if the user does want to leave the screen without entering any data, how can he / she leave the program?
For example you have entered 10 bulks of data but want to exit without entering the 11. bulk.
How?
Thanks.
2007 Nov 14 1:34 PM
hi Deniz,
you have to code as <i>exit command</i>, than it is possible to leave without entering mandatory data.
ec
Hello,
As you know we cannot leave the screen if there is a field required to be filled on this screen.However if the user does want to leave the screen without entering any data, how can he / she leave the program?
For example you have entered 10 bulks of data but want to exit without entering the 11. bulk.
How?
Thanks.
2007 Nov 14 1:34 PM
hi Deniz,
you have to code as <i>exit command</i>, than it is possible to leave without entering mandatory data.
ec
2007 Nov 14 1:38 PM
Thank you eric.
However my issue is dialog programming.
Can I use at exit command here?
Thanks.
2007 Nov 14 1:41 PM
Hi Deniz,
Check below link for details
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/frameset.htm
Regards,
Atish
2007 Nov 14 1:37 PM
Hi Deniz,
Are you talking about module pool or report program. If module pool then you can handle it in AT EXIT command.
regards,
Atish
2007 Nov 14 1:42 PM
Hi Sarda,
How can I handle it at exit command?
I have put a gui status and assign fcode 'BACK', and coded it as:
Case ok_code.
When 'BACK'.
Leave program.
endcase.
Where will I use AT EXIT.
Thanks.
2007 Nov 14 1:46 PM
Hi
- U need to set the command E for the code BACK in the status by menu painter
- U need to implement a module to be triggered when a ok-code (with command E) is called by AT EXIT-COMMAND addition:
PROCESS PAI.
MODULE EXIT AT EXIT-COMMAND.
MODULE EXIT.
IF OK_CODE = 'BACK'.
LEAVE PROGRAM.
ENDIF.
ENDMODULE.Max