Application Development 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: 

How to made fields readonly in LE_SHP_TAB_CUST_HEAD.

Former Member
0 Kudos

Hi all

I have implemented LE_SHP_TAB_CUST_HEAD- I have managed to get the tab with all fields. The fields are also saving but there is something still left.

i wish to make these fields readonly in VL03N. Could someone guide me on the process. I have searched quite a bit around sdn for it. I have tried creating a PBO module for my screen in my function group and set the screen attribs there but this had no effect.

I also tried placing a change in the screen during the TRANSFER_DATA_TO_SUBSCREEN call but this also had no result.

Looking forward to some answers. Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi Dear,

Use the below code,

loop at screen.

if sy-tcode = 'VL33N' and sy-ucomm = 'HDET_T'.

screen-input = 0.

screen-active = 1.

modify screen.

endif.

endloop.

It will work.

Former Member
0 Kudos

Problem Solved.

It was a simple matter really. Just had to declare the PBO module in the top include of the main program of my function group.

The coding for making the fields readonly is just setting the active field to 0 in the screen structure.