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

FUNCTION KEYS IN SCREEN

Former Member
0 Likes
647

Hi ALL,

i HAVE A MODAL DIALOG SCRREN , I HAVE TO SAVE DATA AND ONCE SAVED THE SCREEN HAS TO BE INACTIVE FOR INPUT THEN I USED

LOOP AT SCREEN.

SCREEN INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

bUT I HAVE A BACK BUTTON ON THIS TO COME BACK TO NORMAL SCREEN ,BUT WHEN I USE THE ABOVE CODE THE BACK BUTTON ALSO BECOMES INACTIVE,IS THERE A WAY THAT I CAN KEEP BACK BUTTON ACTIVE AND REMAINING THINGS IN ACTIVE.

CAN I HAVE FUNCTION KEYS ON MODAL DIALOG BOX.

THANKS

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
572

Yes, when you use the the LOOP, check the name of the screen element.



LOOP AT SCREEN.
<b>if screen-name = 'P_FIELD'.</b>
SCREEN INPUT = 0.
MODIFY SCREEN.
<b>endif.</b>
ENDLOOP.


Regards,

Rich Heilman

Read only

abdul_hakim
Active Contributor
0 Likes
572

hi

use the below code...

loop at screen.

if screen-name = <screen field name>.

screen-input = 0.

modify screen.

endif.

endloop.

cheers,

Abdul Hakim

Read only

0 Likes
572

on your screen give all the fields you wish to make protected the same group1 name, eg MOD.

Then put this in the PBO:

loop at screen.

if screen-group1 = 'MOD'.

screen-input = 0.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
572

Hi Swathi,

Also check whether you have set the PF-STATUS in PBO of the screen.

In the PF-STATUS, specify BACK button and activate the PF-STATUS.

Best regards,

Prashant

Read only

Former Member
0 Likes
572

hi,

Add lines in bold and try using your code.

LOOP AT SCREEN.

<b> if not screen-name cp 'BACK'.</b>

SCREEN INPUT = 0.

MODIFY SCREEN.

<b> endif.</b>

ENDLOOP.

Regards,

Sailaja.