07-18-2011 8:10 AM
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.
07-20-2011 10:24 AM
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
07-18-2011 8:45 AM
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
07-20-2011 10:24 AM
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
07-20-2011 10:44 AM
Is this the code you are using. I tried it in my system and it has not even been edit enabled yet !! ?
07-20-2011 10:48 AM
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.
07-21-2011 8:37 AM
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'.
07-21-2011 8:40 AM
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
07-21-2011 9:05 AM
Just comment this line and try . It should work
wa_layout-box_fname = RS_SELFIELD-fieldname.
Suzie
07-21-2011 11:28 AM
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.
07-21-2011 11:46 AM
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,
07-21-2011 1:05 PM