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: 

display only output mode after saving data in module pool

Former Member
0 Kudos

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

Former Member
0 Kudos

use

loop at screen.

if screen-name = ''.

screen-input = '0'.

modify screen.

endif.

endloop.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

abdul_hakim
Active Contributor
0 Kudos

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

hymavathi_oruganti
Active Contributor
0 Kudos

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.