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

logic needed

Former Member
0 Likes
475

ON SREEEN i have few input/output fields & a table control.

Now my requirenment is on display

both of these convert into disable mode.

i m doing this

if ( flg = 'C' ).

loop at screen.

if ( screen-name = 'WA_ZISUSLIP-WERKS'

or screen-name = 'WA_ZISUSLIP-SNO'

or screen-name = 'WA_ZISUSLIP-MATNR'

or screen-name = 'WA_ZISUSLIP-MAKTX'

or screen-name = 'WA_ZISUSLIP-SNO'

or screen-name = 'WA_ZISUSLIP-MEINS'

or screen-name = 'WA_ZISUSLIP-MENGE'

or screen-name = 'WA_ZISUSLIP-MENGEISU'

or screen-name = 'WA_ZISUSLIP-LGPBE'

or screen-name = 'WA_ZISUSLIP-TEXT'

or screen-name = 'WA_ZISUSLIP-REMARKS').

screen-input = 0.

endif.

modify screen.

endloop.

werks is input/output fields

rest others are in table control.

using this its converting all table control grey(input diable) but nt works.

How to convert works to disable mode.

Plz guide

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

Hi,

Can you just assign a screen group for these fields.

and try the the following code.

if ( flg = 'C' ).

loop at screen.

IF screen-group1 = '<GRP1>' .

screen-input = 0.

ENDIF.

MODIFY SCREEN.

endloop.

<GRP1> is the group aasigned for these fields(group1).

Edited by: Rengith Skariah on Feb 2, 2008 9:18 AM

3 REPLIES 3
Read only

Former Member
0 Likes
462

Hi,

Can you just assign a screen group for these fields.

and try the the following code.

if ( flg = 'C' ).

loop at screen.

IF screen-group1 = '<GRP1>' .

screen-input = 0.

ENDIF.

MODIFY SCREEN.

endloop.

<GRP1> is the group aasigned for these fields(group1).

Edited by: Rengith Skariah on Feb 2, 2008 9:18 AM

Read only

0 Likes
461

THNAKS

Anyways my problem was resolved as i included werksin same table control loop.

as soon as i declared outside the loop error was resolved.

Thanks for ur reply

Read only

0 Likes
461

Hi,

Hope u are writing the foll piece of code in PBO module of the screen................if not put it in PBO....

if ( flg = 'C' ).

loop at screen.

..........

..........

..........

MODIFY SCREEN.

endloop.

Even now if its not working keep a brk-pt in if ( flg = 'C' ). statement and check if flg = 'C'. also check the screen names........

Cheers,

Will.