Skip to Content
0
Former Member
May 15, 2008 at 09:42 AM

ALV : problem with an editable field (quantity)

423 Views

Hi there , I got this problem , in a ALV I got a quantity field that in the field catalog is referred to a unit field, the problem is that when i change the value , after click or enter pressing, the value change in Sap standard value , for example the value 30 (pieces) began 0,030, I tried to intercept the data_changed event but seems that I can read the new value but I can't write on it.

this is how I declared the fieldcatalog

ls_fieldcatalog-col_pos = 8.

ls_fieldcatalog-fieldname = 'MENGE_C'.

ls_fieldcatalog-reptext = ls_fieldcatalog-scrtext_l =

ls_fieldcatalog-scrtext_m = ls_fieldcatalog-scrtext_s = 'Q.ta Cons Forn.'.

ls_fieldcatalog-outputlen = '000015'.

ls_fieldcatalog-qfieldname = 'MEINS'.

ls_fieldcatalog-just = 'R'.

ls_fieldcatalog-emphasize = 'C3'.

APPEND ls_fieldcatalog TO pt_fieldcat. "clear pt_fieldcat.

(i change the editability dinamically depending on the value of another field)