‎2007 Mar 23 5:20 AM
Hi all,
I have created two screens, in one screen i have a mandatory field ...In this screen when i press Back or Exit or Cancel button in application tool bar, i should be able to go to my previous screen without entering any value in the mandatory field.
In my case, i cant able to go to my previous screen without entering some value in the mandatory field...Please explain how to go about this
Thanks in advance
Nandhu
‎2007 Mar 23 5:24 AM
hi
inorder to skip the mandatory checks of a field u should give the function type of
that field as 'E' in the properties of that field
‎2007 Mar 23 5:39 AM
Hi ,
U need to write code in AT EXIT COMMAND for back ,exit and cancel
and in function attributes set functional type as 'E'.
Regards,
‎2007 Mar 23 5:51 AM
Hi...
in the PAI events of ur screen. U first need to define a modue AT EXIT-COMMAND .
while creating the Gui status of the screen itself for the BACK or EXIT or CANCEL in the <b>Function attributes window</b> for the <b>function type</b> u need to give 'E'...
***********************************
case 'OK_CODE'.
WHEN 'BACK' OR 'CANCEL' OR 'EXIT'.
leave to screen <number> * Screen number of the previous screen.
endcase.
***********************************
While assigning the Functin code to the BACK OR EXIT OR CANCEL, Give the Command type as 'E' i.e EXIT COMMAND.
If u do this, even though there is a mandatory field on ur screen, it will go to the screeen which u have specified in BACK code.
regards,
sai ramesh
‎2007 Mar 23 6:16 AM
hI SAI RAMENSH,
I HAVE DONE AS YOU SAID...BUT STILL I AM FACING SOME PROBLEM...
I CANT ABLE TO GO TO THE SPECIFIED SCREEN IN LIKE 100 OR 200. IT ALWAYS COMING OUT OF THE PROGRAM....HOW TO GO ABOUT THIS
THANKS
NANDHA KUMAR
‎2007 Mar 23 6:21 AM
Hi,
in Case 'OK_CODE'.
u need to set the next screen as 100.
<b>leave to screen 100. </b>
endcase.
U paste the AT EXIT-COMMAND code here..
i will check that !!!
regards,
sai ramesh
‎2007 Mar 23 5:51 AM
Hi nanda,
you should define fcode as exit command in gui status and write the following flow logic in flow logic.
MODULE d9001_exit AT EXIT-COMMAND.
*& Module D9001_EXIT INPUT
&----
MODULE d9001_exit INPUT.
SET SCREEN 0.
LEAVE PROGRAM.
ENDMODULE. " D9001_EXIT INPUT
thanks !
Regards,
Srini
‎2007 Mar 23 5:58 AM
hi all,
in order to resolve your problem open the menu painter from where you added cancel back and exit button, double click on that with open apop-up for you from there you have to select
Function module of type E and hope it will work