2008 Jan 12 9:33 AM
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
2008 Jan 12 12:23 PM
Hello,
I cannot see an output statement (e.g. write) in your code example. Therefore I think it's impossible for us to give you an answer to your question.
Best regards
Stephan
Hello,
I cannot see an output statement (e.g. write) in your code example. Therefore I think it's impossible for us to give you an answer to your question.
Best regards
Stephan
2008 Jan 12 12:23 PM
Hello,
I cannot see an output statement (e.g. write) in your code example. Therefore I think it's impossible for us to give you an answer to your question.
Best regards
Stephan
2008 Jan 12 12:25 PM
Hi Vivek,
Use New Line to output values on different lines.
Or else you can use WRITE : / to output values so that they will be outputted on different lines.
Regards,
Chandru
2008 Jan 12 1:02 PM
Hi Vivek,
Use the write command followed by new-line command between loop and endloop .
Reward points if helpful..
Regards,
Goutham.
2008 Jan 13 8:10 AM
HI,
CHECK THE 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.
******************************************
WRITE : / Y_WERKS,
Y_EBELN,
Y_EBELP,
Y_EINDT,
Y_OPENQTY.
******************************************
ENDLOOP.
REWARD POINTS IF USEFULL.
REGARDS,
SREE.....
2008 Jan 14 3:57 AM
2008 Jan 14 8:53 AM
Hi All,
Thanks for all your inputs. Keep the good work going.
Regards,
Vivek
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |