Application Development 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: 

FUNCTION KEYS IN SCREEN

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

abdul_hakim
Active Contributor
0 Kudos

hi

use the below code...

loop at screen.

if screen-name = <screen field name>.

screen-input = 0.

modify screen.

endif.

endloop.

cheers,

Abdul Hakim

0 Kudos

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.

former_member223537
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.