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: 

Problem with Alv grid

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

rainer_hbenthal
Active Contributor
0 Kudos

Maybe your fieldcatalog points to type that will have a display exit making 2012 from 0012...

7 REPLIES 7

Former Member
0 Kudos

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.

0 Kudos

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.

rainer_hbenthal
Active Contributor
0 Kudos

Maybe your fieldcatalog points to type that will have a display exit making 2012 from 0012...

0 Kudos

where can i identify that in my code?

0 Kudos

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

0 Kudos

thanks

Former Member
0 Kudos

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