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

display only output mode after saving data in module pool

Former Member
0 Likes
1,377

hi..

i am working on a module pool..after input the data and press save button..i want all fields in display mode only..

how should i do this...

please reply..

6 REPLIES 6
Read only

Former Member
0 Likes
867

use

loop at screen.

if screen-name = ''.

screen-input = '0'.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
867

Write this code in PBO of the screen

loop at screen.

if screen-name = <fieldname> or

screen-group1 = <group name>.

screen-input = '0'.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
867

in ur code

proir to this use the screen groups which u 'll find in the field attributes of the fields in the table control.

this will be like screen group1, group 2 group 3 group4 .

now in ur screen

as u say assign all the fields u want to see them in display mode to a screen group.

say screen group1 = 001

in ur PAI code

when 'SAVE'.

loop at screen.

if screen-group1 = 001.

screen active = '0'.

modify screen.

endif.

endloop.

effect is this makes all the screen fields of group 001 into display mode .

hope this helps u ,

regards,

vijay.

typical code will be like this.

u can completely or partially(restrict the fields) using this method.

LOOP AT SCREEN.

IF SCREEN-GROUP4 = 'SC4'.

SCREEN-INPUT = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Message was edited by: Vikky

Read only

Former Member
0 Likes
867

Hello i want to do this..

user will input the user id in the 1st screen..

then system will display related info abt the student on 2nd screen..how to do that?

data:

stud_id

name

addres

etc

Read only

abdul_hakim
Active Contributor
0 Likes
867

hi write the below code

<b>LOOP AT SCREEN.

IF SCREEN-NAME = <UR SCREEN FIELD NAME>.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.</b>

Cheers,

Abdul Hakim

Read only

hymavathi_oruganti
Active Contributor
0 Likes
867

save all the paramets in one group by specifying modif-id

at the end of each parameter declaration

ex: paramter s type i modif-id afg.

loop at screen.

if screen-group1 = 'afg'.

screen-input = 0.

modify screen.

endif.

endloop.