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

output error

Former Member
0 Likes
3,814

i am making a sales report and 8 of my feilds are displaying correct.and rest all are coming correct in debugging mode but when i am executing it,rest fields are copying the values of last feild irrespective of the input.please tell me how to correct it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,759

Hi

clear the work area after appending into internal table.

if you want more info reg to this copy the code after analyzing i can say wt the error

Regards

Mahesh

47 REPLIES 47
Read only

0 Likes
3,503

i have make a new table same as final table named gt_temp.

loop at gt_final.

at new vbeln.

move-corresponding gt_final to gt_temp.

sum.

gt_temp-prod1  = gt_final-prod1.

gt_temp-prod2  = gt_final-prod2.

gt_temp-prod3  = gt_final-prod3.

gt_temp-prod4  = gt_final-prod4.

gt_temp-prod5  = gt_final-prod5.

gt_temp-prod6  = gt_final-prod6.

gt_temp-prod7  = gt_final-prod7.

gt_temp-prod8  = gt_final-prod8.

gt_temp-prod9  = gt_final-prod9.

gt_temp-prod10 = gt_final-prod10.

gt_temp-prod11 = gt_final-prod11.

gt_temp-prod12 = gt_final-prod12.

gt_temp-prod13 = gt_final-prod13.

gt_temp-prod14 = gt_final-prod14.

append gt_temp.

endat.

* move-corresponding gt_temp to gt_final.

endloop.

Read only

0 Likes
3,503

Query :

What is the structure of GT_TEMP (or GT_FINAL)

Read only

0 Likes
3,503

Try This.

loop at gt_final.

at new vbeln.

sum.

gt_final-vbeln = gt_final-vbeln.

gt_final-prod1  = gt_final-prod1.

gt_final-prod2  = gt_final-prod2.

gt_final-prod3  = gt_final-prod3.

gt_final-prod4  = gt_final-prod4.

gt_final-prod5  = gt_final-prod5.

gt_final-prod6  = gt_final-prod6.

gt_final-prod7  = gt_final-prod7.

gt_final-prod8  = gt_final-prod8.

gt_final-prod9  = gt_final-prod9.

gt_final-prod10 = gt_final-prod10.

gt_final-prod11 = gt_final-prod11.

gt_final-prod12 = gt_final-prod12.

gt_final-prod13 = gt_final-prod13.

gt_final-prod14 = gt_final-prod14.

endat.

modify gt_final transporting prod1 prod2 prod3 prod4 prod5 prod6 prod7 prod8 prod9 prod10 prod11 prod12 prod13 prod14 where vbeln = gt_final-vbeln.

endloop.

after that use delete adjecent duplicate from table statement.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
3,503

Invalid Field catalog values I guess.

Read only

Former Member
0 Likes
3,503

Hi Ankan,

Have you cleared the ALV buffer using the program BCALV_BUFFER_DELETE giving your program name?

At times ALV won't display the recent fieldcatalog changes as it would be read from the buffer.

Otherwise check the ALV Consistency check screen.

Regards,

Karthik D

Read only

0 Likes
3,503

i have checked ALV consistency and it is showing error there but i am unable to correct it.

Read only

0 Likes
3,503

What is the  error? Kindly show us. Also, let us know how you populate your fieldcatalog.

Read only

former_member209920
Active Participant
0 Likes
3,503

Hi Ankan,

Just a thought... after going through all the responses. If your internal table is having correct data in debugger, then do check once your field catalog.

you might have assign same fieldname to all the column ( or something like that).

Regards,

ManuB