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 variables . LOOP AT SCREEN

Former Member
0 Likes
905

Hi friends,

i am working on Module pool.

I am at screen 200. when I click SAVE, data is being stored in data base tables.

then come back to screen 200.

But, I need my screen fields should be not editable now. means output only...

I tried with loop at screen.

SCREEN-Input = 0.

modify screen.

endloop.

But I could not achive the functionality. still the screen fields are editable.

Please help me.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
736

Hello,

Did you write this code under the PBO event for Screen#200?

After the DB tables are updated successfully update some flag & based on this flag write this code in the PBO of screen#200.

@Radhika: SCREEN-ACTIVE = '0' makes the screen element invisible & not grayed out.

Cheers,

Suhas

4 REPLIES 4
Read only

Former Member
0 Likes
736

Hi

Write SCREEN-ACTIVE = '0'.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
737

Hello,

Did you write this code under the PBO event for Screen#200?

After the DB tables are updated successfully update some flag & based on this flag write this code in the PBO of screen#200.

@Radhika: SCREEN-ACTIVE = '0' makes the screen element invisible & not grayed out.

Cheers,

Suhas

Read only

Former Member
0 Likes
736

hi,

use this in the PBO of the screen and capture the user command as well.

loop at screen.

if screen-name = 'name of the screen field'.

screen-input = 0 .

modify screen.

endif.

endloop.

regards,

sakshi

Read only

Former Member
0 Likes
736

hi,

in the PBO also u capture the user command for save and within that you write this code for the required functionality or in PAI capture the user even and set a flag and in the PBO check this flag as write the code for non editable within it.

in PAI

case sy-ucomm or ok_code.

when 'SAVE'.

v_flag = 'X'.

end case.

in PBO

if v_flag = 'X'.

your code.

endif.

clear v_flag.

thanks

shivraj

Edited by: ShivrajSinha on Feb 8, 2010 10:49 AM