cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use the same variable window for changing texts

Former Member
0 Kudos

Hi all,

My requirement is...

I have 3 pages in my script,for the first two pages ,the title is same,

for the last page ,title is different.

So, can I write an if condition in the variable window for changing titles.

This was not working for me.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If &nextpage& = 0

title = 'Title2'

else

title = 'Title1'

endif.

OR

If &page& = 3

title = 'Title2'

else

title = 'Title1'

endif.

Former Member
0 Kudos

try using value of sy-pageno in the Script editor for the contents you want to display in the window