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

Screen processing-Urgent

Former Member
0 Likes
774

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

7 REPLIES 7
Read only

Former Member
0 Likes
755

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

Read only

Former Member
0 Likes
755

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,

Read only

Former Member
0 Likes
755

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

Read only

0 Likes
755

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

Read only

0 Likes
755

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

Read only

Former Member
0 Likes
755

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

Read only

Former Member
0 Likes
755

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