2007 Dec 19 2:53 PM
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
2008 Jan 29 3:11 PM
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.
2008 Jan 29 3:18 PM
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
2008 Jan 29 3:17 PM
Please disregard my post. I misunderstood your question.
Edited by: Pushpinder Randhawa on Jan 29, 2008 9:25 AM
2008 Jan 29 3:20 PM
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
2013 Feb 19 6:39 AM
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