cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : Displying the SCRIPT output based on IF condition

Former Member
0 Kudos

Dear Experts,

I have copied standard Script into Zscript and it is running through standard Driver program. (Configuration has done)

the output of the script is Three pages. now I have to display totals in last page (i.e in 3 rd page), for 1 st and 2 nd page I am displaying a text message as "Continue to the next page" and for this I have written condition in TOTAL window as

/: IF &PAGE& = &SAPSCRIPT-FORMPAGES&.

logic of Total's display

/: ELSE.

Continue to the next page " this is the message I am displaying in the 1 st and 2 nd page ending.

/: ENDIF.

Please let me know if you have any idea to resolve this.

Regards

valluru

Accepted Solutions (1)

Accepted Solutions (1)

former_member230486
Contributor
0 Kudos

Hi Kishore,

Try to write like this.

This logic can be worked in Total's Window.

If &next-page& = 0.

write a logic for Total.

endif.

Former Member
0 Kudos

Hi,

Tnks for the replay,

I have tried with IF &NEXT-PAGE& = 0. still it is displaying the else message in all the three pages.

in between this IF and ENDIF I have used perform <perform name> in program <program name> using v1 v2 changing v3.

through above Perform I am doing some calculations for displaying the Totals.

can you suggest any other way

Regards

valluru

former_member230486
Contributor
0 Kudos

just remove the hyphen(-) in between next-page.

Like this.

IF &NEXTPAGE& EQ 0.

write a logic.

endif.

and let me know.Previously the command is not working.

Former Member
0 Kudos

Tnks Boss,

Its working, tnks for the solution and ur time.

Regards

valluru

Answers (0)