cancel
Showing results for 
Search instead for 
Did you mean: 

Print custom lines of text only in the LAST page

Former Member
0 Kudos

I have a scenario in smart form where I need to print lines of text only in the last page. I do not want the contents of main window come into last page.

Like say If there are 3 pages, then in first 2 pages I need the data of main window to be printed. And in page 3 only the lines of custom text I enter.

Please let me know what would the best way of achieving this result.

Thanks

sunny.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Before the Printing lines of that Text give the condition as below

/: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&

/: INCLUDE <TEXTNAME> <OBJECT> <ID> LANG..... "PRINT TEXT LINES

/: ENDIF.

this condition will see that the texts are printed only in last page

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

How would I do the same if its smartforms?

Thanks.

Former Member
0 Kudos

Hi

Give the condition as it is like below

If &SFSY-PAGE& EQ &SFSY-FORMPAGES&

....WRITE THE TEXTS

ENDIF

<b>Reward points for useful Answers</b>

Regards

Anji

Answers (0)