Application Development and Automation 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: 
Read only

Value diff in debugger and ALV

Former Member
0 Likes
1,799

i am stuck with a wierd problem in simple alv report.

here the problem starts. i am displaying the customer region from table KNA1.

the data has been selected perfectly.

when i see the value of field REGIO --> it is showing the correct value.

but when the alv is displayed ,suddenly the field is showing date.

here is the field catalogue.

when i see in debugger it shows like this:

and this is how alv gets displayed.no idea!!

i am really wondering why is this happening and came across such a problem 1st time.

suggest some solutions plz.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,717

Hi Abhishek,

According to Debugging what you mmentioned above the Field name in the internal table 'IFINAL' Is 'REGION' But while filling field catalog you are giving the fieldname as 'REGIO'.

Correct that filed name you will get the Required output.

Reward point if you find the required answer.

Thanks,

Mani

Moderator Message - Asking for points is against the forum's RoE.

Message was edited by: Suhas Saha

8 REPLIES 8
Read only

Former Member
0 Likes
1,718

Hi Abhishek,

According to Debugging what you mmentioned above the Field name in the internal table 'IFINAL' Is 'REGION' But while filling field catalog you are giving the fieldname as 'REGIO'.

Correct that filed name you will get the Required output.

Reward point if you find the required answer.

Thanks,

Mani

Moderator Message - Asking for points is against the forum's RoE.

Message was edited by: Suhas Saha

Read only

gouravkumar64
Active Contributor
0 Likes
1,717

Hi,

check column position may be some value overlapped.

Like in 3 & 4 position ,u r displaying same value.

can u plz post ur all field catalog portion code .

Thanks

Gourav.

Read only

vinoth_aruldass
Contributor
0 Likes
1,717

hi abishek,

check your internal table fieldname and fieldcatalog field name is same?.

hope it helps,

Vinoth

Read only

Former Member
0 Likes
1,717

Thanks all, that was a acute mistakes. oh god. how can  i be so stupid.

Read only

Former Member
0 Likes
1,717

Hi Abhishek,

As you have written code like Counter = counter + 1 and passing as fieldcatalog position. So third column which u have passing mate be position is 2 only. Due to that, it our lapping 2nd column data into 3rd column position as well.

So kindly check your counter logic, it will work.

Regards,

Praveen Reddy

Read only

0 Likes
1,717

counter logic will only determine the position of the column , not the contents of column.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,717

When you got that kind of problem on an ALV Grid, first action should be execution of The Consistency Check.

Regards,

Raymond

Read only

0 Likes
1,717

thnks raymond.