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
655

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.

3 REPLIES 3
Read only

former_member673464
Active Contributor
0 Likes
518

hii..

Give the field to modif id group and use this modif id group in your loop at screen .It will solve your problem.

LOOP AT SCREEN.

IF screen-group1 = 'MOD'.

IF flag = ' '.

screen-input = '0'.

ELSEIF flag = 'X'.

screen-input = '1'.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

regards,

veeresh

Read only

Former Member
0 Likes
518

Vivek,

1. Check the field name once by double clicking on that field.

2 . IF sy-tcode EQ 'VA03' put the single codes here.

3.Debugg the code by puttin break poingt here.Try to cahnge the small letters of

tcodes to capital.

Code debugg will solve your problem.

Don't forget to reward if useful..

Read only

Former Member
0 Likes
518

Hi Vivek,

First of all search the Function Group for the function exits provided with the Screen exit.In that function group,under Includes,there u will get a list of all Includes used in the transaction 'VA03'.Now from this list u have to select includes & there u have to write ur code i.e.modify screen.

Now where to write the code:

Choose the include with following specifications:

Z 'Function Group name' O(O not zero) 'some no'.

e.g.Say ur Function gr. is XTOB then choose ZXTOBO01.

Reward all helpful answers.

regards,

Rajesh.