cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT - text elements not showing on last page

Former Member
0 Kudos

I want to project text (&EKKO-ERNAM&,, ,,&V_USERNAME1&,,&V_USERNAME2&) on the last page of the document. It appears ok if it's only 1 page. But if there are 2 or more, it doesn't appear.

Here is a screen cap of my code in Text Editor

http://img180.imageshack.us/my.php?image=totalwindowpd7.jpg

Plus im having problems when Changing Editor. The code adds "par" Can you tell me what's wrong?

Points will be given

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jill,

on seeng the code you have sent.In the first line you have missed an & sign.It should be

IF &NEXTPAGE& EQ 0. Please correct this and it will work fine.

Reward if useful.

Thanks,

Dishant

Former Member
0 Kudos

hi sorry if i missed that... maybe i accidentally deleted it during editing but even if i put it back... it still dont get me the text in the last page

Former Member
0 Kudos

Hi,

Have you created 2 pages in the script and defined first page to point to the next page?

Former Member
0 Kudos

yes i have defined FIRST and NEXT pages. With the FIRST pointing to NEXT with MODE "Start" and the NEXT page pointing to NEXT with mode "INC"

Former Member
0 Kudos

Hi,

Can you put 0 in quotes as in IF &NEXTPAGE& EQ '0 '

Former Member
0 Kudos

i've tried it and it still don't work.. i appreciate your immediate replies

Former Member
0 Kudos

Hi,

Sorry was checking out a few forms here for you. In many forms we have put .(dot) after the IF statement and .(dot after the endif.Please check if this works for you,although I doubt if that is a solution.

Otherwise,could you activate the debugger in your script and checl if the value of NEXTPAGE changes?

Thanks,

Dishant.

Former Member
0 Kudos

i checked and it is getting to 0. prints the part of the program like "Purpose:"

but that certain line is not printed

Edited by: Jill Chou on Feb 13, 2008 7:59 AM

Former Member
0 Kudos

Hi again,

Does it go into the program ZPO_ROUTINE? Can you check that? If it does check for the values in the variables V_USERNAME1 and 2.

Thanks,

Dishant

Former Member
0 Kudos

yes i checked that too.... i just made a new window and transferred the items separately with the other text... T___T coz of urgency... but really thanks my friend~

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

As per the code . I understood that you are supposed to print the data on last page only right. So if there are two or more pages then you can see that data in last page only.

Have you written this code in the main window.

Regards,

Nageswar

Former Member
0 Kudos

that's right. no... i've written this in a secondary window with type VAR