2008 Feb 02 7:31 AM
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
2008 Feb 02 8:18 AM
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
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
2008 Feb 02 8:18 AM
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
2008 Feb 02 8:21 AM
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
2008 Feb 02 8:38 AM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |