Skip to Content
0
Former Member
Feb 04, 2011 at 01:09 PM

Writing multiple line in SAPScript Subwindow

108 Views

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.