‎2007 Apr 16 12:50 PM
Hi,
I am designing a table control related with screen exit. It is having 5 fields, among that 4 are only for output and one field is both input and output. when the tcode is va03 or va23 that one field also to be in only display mode. for that i have written the following logic in PBO.
IF sy-tcode EQ va03 OR
sy-tcode EQ 'VA23'.
LOOP AT SCREEN .
IF screen-name EQ 'I_CUSTOM-FIELD5'8'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
But it is not working.
Can anybody tell me what is the problem and how to ressolve that. If any body having logic please provide me.
Thanks in advance,
Vivek.
‎2007 Apr 16 12:56 PM
hi Vivek,
your logic is correct, but the place you have put the code is not right i guess!
<b>put the following code inside a module, written inside</b>
loop at i<nternal table name> with control <table control name> .
IF sy-tcode EQ 'VA03' OR sy-tcode EQ 'VA23'.
LOOP AT SCREEN .
IF screen-name EQ 'I_CUSTOM-FIELD5'8'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this helps,
Sajan Joseph.