cancel
Showing results for 
Search instead for 
Did you mean: 

text object to be printed on the last page of MAIN window of SAPScript

govind_parmar
Participant
0 Kudos

text object to be printed on the last page of MAIN window of SAPScript

is this condition OK:

IF &PAGE& EQ &SAPSCRIPT-FORMPAGES &

PROTECT

TEXT OBJECT XYZ.

ENDPROTECT

ENDIF.

This is the case when there are more than one form in a print program.

Thanks

Govind.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi govind,

try giving like this..

/: IF &NEXTPAGE& EQ 0.

/:PROTECT

/: INCLUDE OBJECT XYZ .........

/:ENDPROTECT

/:ENDIF.

Do reward if it helps,

priya.

Former Member
0 Kudos

Hi..

<b>When there are more than one forms then u need to use : </b>

&SAPSCRIPT-JOBPAGES& in the if condition for the last page of all the forms..

&SAPSCRIPT-FORMPAGES& in the if condition for the last page of each form..

This is the syntax..

U need to use INCLUDE command here !!

<b>/:IF &PAGE& EQ &SAPSCRIPT-FORMPAGES &

/:PROTECT

/:INCLUDE XYZ OBJECT TEXT ID ST LANGUAGE EN

/:ENDPROTECT

/:ENDIF.</b>

Regards,

sai ramesh.