cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT how to place item header on next page

former_member184551
Contributor
0 Kudos

Hi Guys

The situation iam facing is this

outside the loop i have printed the item header then iam looping on an internal table which is printing all the items.

When the o/p is one page this works fine but when the o/p is more than one page the item header on the next page dosent get printed because its outside the loop.

somewhat like this

perform print_header.

loop at itab.
 perform print_item.
endloop.

Question is how can i place the item header text element in my sapscript so that it prints automatically before the start of the items on every page?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If u write in between TOP and ENDTOP then it will print in all pages.

/:TOP

header

/:ENDTOP

Regards,

jaya

Answers (3)

Answers (3)

former_member184551
Contributor
0 Kudos

I passed top in element while calling write_form.

Former Member
0 Kudos

Hi

You can print item header on every page

Define the following code in window in which you wnat to print item header

/: TOP

item header

/: ENDTOP

Regards,

Rajani

Former Member
0 Kudos

Use the following in Text Editor on Script form.

😕 TOP

Print the Item header.

:/ENDTOP.

Or.

Use a variable window. To print the header

So it will come for every new Page.

Or.

Define &CURRENT PAGE&

IF &PAGE& NE &CURRENT PAGE&

PRINT HEADER

ENDIF

&CURRENT PAGE& = &PAGE&

Hope this resolves your issue.

Regards,

Gurpreet