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: 

Editable ALV

Former Member
0 Kudos

Hi,

Im trying to update data of a single cell in ALV grid.Im doing this using Reuse_alv_grid_display_lvc FM.I've used reuse_alv_fieldcatlog_merge FM to get the fieldcatalog.When i try to change data of the column which has character data, i can do the changes.As soon as i select the column having numeric datatype, i get a short dump 'convert_number'.What is the reason for this dump.Do i need to specify sumthing for editing numeric fields in the FM?

If there is some other method to edit both character and numeric data in alv grid pls let me know.

Thanks,

Nidhi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Suzie,

Thanks for the help.I tried with what you said but still its giving me the dump CONVT_NO_NUMBER.Following is my entire code :

<Garbled code removed>

Nidhi.

Moderator Message: Post relevant portions of the code only

Edited by: Suhas Saha on Jul 20, 2011 3:52 PM

10 REPLIES 10

lijisusan_mathews
Active Contributor
0 Kudos

in your field catalog for that field, assign the data type as numc10 or so.. ie. some numeric data element and check,

gte back if it does not work... and paste relevant parts of your code

Former Member
0 Kudos

Hi Suzie,

Thanks for the help.I tried with what you said but still its giving me the dump CONVT_NO_NUMBER.Following is my entire code :

<Garbled code removed>

Nidhi.

Moderator Message: Post relevant portions of the code only

Edited by: Suhas Saha on Jul 20, 2011 3:52 PM

0 Kudos

Is this the code you are using. I tried it in my system and it has not even been edit enabled yet !! ?

0 Kudos

i added these two lines to the above code

data wa_layout type slis_layout_alv.

wa_layout-edit = 'X'.

and added wa_layout to the structure is_layout ( not is_layout_lvc as in the code) and your program worked fine for me.

0 Kudos

hey is_layout is not the parameter in REUSE_ALV_GRID_DISPLAY_LVC.In this FM the parameter name is is_layout_lvc.

Secondly, i want to edit on the double click so initially i cant use wa_layout-edit = 'X'.I want the grid in display mode initially.

For layout tab im passing this

wa_layout-box_fname = RS_SELFIELD-fieldname.

WA_LAYOUT-no_rowmark = 'X'.

WA_LAYOUT-STYLEFNAME = 'CELLTAB'.

0 Kudos

u had 2 alv s in your code.. So you are talking about the second alv right?? The first one in the code you gave was not LVC

0 Kudos

Just comment this line and try . It should work

wa_layout-box_fname = RS_SELFIELD-fieldname.

Suzie

0 Kudos

Thanks a ton Suzie.I commented that line and now its working for numeric fields also.But can u pls tell me the actual use of this field boxname and why was this affecting only number fields.

0 Kudos

Box field name is used to indicate that the given field is to be displayed as a check box. So it will check if the value in it is "x'( marked) character fields will not show a problem while cheeking , but when you check it against a number, it will result in an error,

0 Kudos

Tats amazing thanks