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: 

alv grid key field non editable

Former Member
0 Kudos

Hi expert,

I m building a report with an alv grid.

when starting the report all key fields of the existing entries of a ztable are non -editable , this is ok.

When i add a new entry in the alv grid , and i save : the key fields are not automatically non -editable.

So how i can slove this problem?

Any suggestions,

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi Chandra,

You can define the variable value directly in standard text so10.

Oderwise to use variable in the smart form you can use.

<c1>&Field-name&<C1>

which will display ur variablein bold or whatever way u want u can display.

If you want to read and write the standard text u have to use fm read_text and sav_text fm in smart forms.

Checkout following Wiki:

http://wiki.sdn.sap.com/wiki/display/Snippets/HowtosaveandretreiveTextobjects

Regards,

sMITA gUPTA

Former Member
0 Kudos

Hi Moo yac,

Declare your data like

data: gt_fieldcat type slis_t_fieldcat_alv with header line,

gt_fieldcat-fieldname = 'xxxx'.

gt_fieldcat-ref_tabname = ''.

gt_fieldcat-input = 'X'.

gt_fieldcat-checkbox = 'X'.

gt_fieldcat-outputlen = 3.

append gt_fieldcat. clear gt_fieldcat.

thanks

kallam