Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Internal table text data in new window in SAP SCRIPT

Former Member
0 Likes
852

Hi Gurus,

My requirement is print the header text data at the end of the main window & also at last page which is in the form internal table.

I created a new window for this & I am extracting the header text data into internal table & using the variables in the new window script. But it is displaying only the last line........

Please I am in need of help regarding this...

Thank you.

Hi Gurus,

My requirement is print the header text data at the end of the main window & also at last page which is in the form internal table.

I created a new window for this & I am extracting the header text data into internal table & using the variables in the new window script. But it is displaying only the last line........

Please I am in need of help regarding this...

Thank you.

6 REPLIES 6
Read only

Former Member
0 Likes
832

Hi

display the internal tables lines with offsetting in each line separately to print the all lines

/ &ITAB-LINES+0(50)&

/ &ITAB-LINES+51(50)&

/ &ITAB-LINES+101(50)&

/ &ITAB-LINES+151(50)&

AND SEE THE OUTPUT

Regards

Anji

Read only

0 Likes
832

Hi Anji,

Thank you for quick response.

But even inthis case also it is displaying the last line only.

In my print program the code is as follows:

LOOP AT LINES1 .

CALL FUNCTION 'WRITE_FORM'

EXPORTING

WINDOW = 'INVTXTMG'

EXCEPTIONS

ELEMENT = 1

WINDOW = 2.

IF SY-SUBRC NE 0.

PERFORM PROTOCOL_UPDATE.

ENDIF.

ENDLOOP.

Script Editor:

&LINES1-TDLINE+0(45)&

&LINES1-TDLINE+45(70)&

The internal table consists of atleast 5 lines.

Waiting for your response.

Thanks,

Read only

0 Likes
832

Hi,

Can you check the window height? That might be causing the problem.

ashish

Read only

0 Likes
832

The window height is 2.00 CM.

Thank you.

Read only

Former Member
0 Likes
832

Hi,

ur code seems to be OK. try increasing the window space and see.

Read only

0 Likes
832

Hi,

Though I increased the height & width of the window it is displaying only the last line........

Please help me with this issue.

Thanks in advance.