on 02-04-2011 1:09 PM
Hi,
I am using "WRITE_FORM" to print multiple lines of an internal table in SAPScript as follows:
LOOP AT it_bseg.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM_LINE'
*
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'Sub_Window' "Secondary window
ENDLOOP.
In "Sub_Window" (In SE71), I have used /E ITEM_LINE and AS &it_bseg-dmbtr& ,, &it_bseg-prctr" .
But the problem is that I get only the last item_line as output of the internal table (it_bseg).
How can I get printed all the item_lines?
I have already searched this problem, but they didnt solve my problem.
Thanks in advance.
A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the time you enter the loop, in debug, how many rows are in it_bseg? One or ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.