cancel
Showing results for 
Search instead for 
Did you mean: 

problem with triggering pages in sap scripts

former_member420959
Participant
0 Kudos

Hello all,

I have two pages in a script and in first page in footer window i have to print date and place as

place:Hyderabad

date:today day

and in second page i have to leave it blank

place:

date:

I have written the below logic but the hyderabad and date are getting printed in both pages

/:         IF &PAGE& EQ '1'

P2         Place  :UPPAL,HYDERABAD

P2         Date  :&j_1iexchdr-EXDAT&

/:         ELSEIF &PAGE& EQ '2'

P2         Place  :

P2         Date  :

/:         ENDIF

I have also tried as

/:         IF &ITCTG-TDPAGE& EQ 'PAGE1'

P2         Place  :UPPAL,HYDERABAD

P2         Date  :&j_1iexchdr-EXDAT&

/:         ENDIF

/:         IF &ITCTG-TDPAGE& EQ 'PAGE2'

P2         Place  :

P2         Date  :

/:         ENDIF

if i use this its not getting printed in both pages

Kindly help

Ujwal

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1115366
Active Participant
0 Kudos

ujwal,

Check the page attibutes of your NEXT page.  Make sure the Page Counter Mode is set to increase the counter.  See below.

Regards,

Ken