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: 

Output from Internal Table in Infoset Query

Former Member
0 Kudos
552

Hi All,

I have written the below code to output the data stored in my internal table in the Record-processing section, where Y_MATNR, Y_MAKTX & Y_DOKNR are additional fields.

Loop at IT_TAB.

NEW-LINE.

MOVE IT_TAB-MATNR to Y_MATNR.

MOVE IT_TAB-MAKTX to Y_MAKTX.

MOVE IT_TAB-DOKNR to Y_DOKNR.

ENDLOOP.

But when i execute the query, the output instead of writing the values in different lines, is overwriting on a single line & thus only the last value is displayed

i.e Output is showing as

Y_MATNR | Y_MAKTX | Y_DOKNR

ZAC | Rubber - 30 | 787890

The output which i actually want is:

Y_MATNR | Y_MAKTX | Y_DOKNR

ZAA | Rubber - 10 | 187890

ZAB | Rubber - 20 | 387890

ZAC | Rubber - 30 | 787890

Can someone let me know what mistake i have done?

Anyone to help???

Edited by: Vivek on Jan 29, 2008 11:03 PM

5 REPLIES 5

Former Member
0 Kudos
154

Hi Vivek, hope this helps.

Please check the vendor master changes & check if in the past Payment terms was maintained as ZN30.

As it seems that after the entry of material, this is happening you need to check if there are any info records present.

Info recoreds get created automatically with the info update indicator, even if not maintained manually.

kindly reward if found helpful.

cheers,

Hema.

0 Kudos
154

Hema,

I am totally confused by your post, may i know what does your post means & how will it help me??? Are you sure you meant that post for my question????????

Vivek

Former Member
0 Kudos
154

Please disregard my post. I misunderstood your question.

Edited by: Pushpinder Randhawa on Jan 29, 2008 9:25 AM

0 Kudos
154

Mr. Pushpinder,

Your suggestion puts my program into an infinite loop....!!!!

Any suggestions, please help???

Edited by: Vivek on Jan 29, 2008 11:30 PM

0 Kudos
154

Hi Vivek,

The reason why you are able to output only the last line instead of all the 3 lines is:

In the record processing section of the code , only one record is processed and output is done for that record.

When you loop only the last record is send to output.

Hope you this helps.

Warm Regards,

Daniel