10-14-2008 12:09 PM
hello
i have a strange problem in my alv grid
when i see the values of the internal table they are correct but when they are displayed through grid they are wrong
to be specific i have a value in my internal table as 0012 but when its displayed through grid it is appearing as 2012 where as i have a single digit value like 0002 its appearing in grid as is i.e. same 0002
what is the problem with double digit where should i check to correct this
10-14-2008 12:22 PM
Maybe your fieldcatalog points to type that will have a display exit making 2012 from 0012...
10-14-2008 12:12 PM
1.tell me how you decalred that field in your internal table ??
2.tell me how you assigned that filed for field catalog table ??
so that it can be immideatly clarified.
Regards,
Ramesh.
10-14-2008 12:22 PM
declearations:
toye2 type T001B-toye2,
newval type T001B-toye2.
wa_cat-col_pos = 8.
wa_cat-fieldname = 'TOYE2'.
wa_cat-datatype = 'NUMC'.
wa_cat-intlen = 4.
wa_cat-seltext_m = 'OldValue'.
append wa_cat to it_cat.
10-14-2008 12:22 PM
Maybe your fieldcatalog points to type that will have a display exit making 2012 from 0012...
10-14-2008 12:24 PM
10-14-2008 12:38 PM
Hello Ram Reddy,
There is a Conversion for that particulat domain, so declare it as some other data element,
enter that TOYE2 in SE11 as dataelement display it.
click on domain
in Definition Tab there is a Conversion Routine GJAHR.
so you declare that variable with some other data type.
Thanks
Regards
Narsim Aeda
10-14-2008 12:44 PM
10-14-2008 12:36 PM
dont mention datatype as numc in the field catalog . dont give any data type . remove that line . just try it
Edited by: Sunintdeep Singh on Oct 14, 2008 1:42 PM