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

Screen modification

Former Member
0 Likes
297

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.

1 REPLY 1
Read only

Former Member
0 Likes
269

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.