Skip to Content
0
Former Member
Jan 12, 2008 at 09:33 AM

Output from Internal Table - pls help

34 Views

Hi All,

In my infoset-query, i am trying to output the values from my internal table in different lines, but the values are getting overwritten & displayed in a single line only.

I have defined Y_MATNR, Y_WERKS, Y_EBELN... as nodes in the extra tab of the infoset.

Output i need is:

Y_MATNR Y_WERKS Y_EBELN Y_EBELP Y_EINDT Y_OPENQTY

ABC 1000 12345 0010 1.2.2008 2

BCF 1000 12345 0020 2.2.2008 3

XYZ 1000 13423 0010 10.2.2008 20

But at the moment i just see:

Y_MATNR Y_WERKS Y_EBELN Y_EBELP Y_EINDT Y_OPENQTY

XYZ 1000 13423 0010 10.2.2008 20

Code:

LOOP AT IL_PO.

READ TABLE IL_PO.

MOVE: IT_PO-YL_MATNR TO Y_MATNR,

IT_PO-YL_WERKS TO Y_WERKS,

IT_PO-YL_EBELN TO Y_EBELN,

IT_PO-YL_EBELP TO Y_EBELP,

IT_PO-YL_EINDT TO Y_EINDT,

IT_PO-YL_OPENQTY TO Y_OPENQTY.

ENDLOOP.

Can someone let me know why is it not displaying all 3 lines instead overwriting on the 1st line itself?

Anyone to help?

Edited by: Vivek on Jan 12, 2008 6:24 PM