Skip to Content
0
Oct 20, 2012 at 06:20 AM

problem with triggering pages in sap scripts

25 Views

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