on 07-09-2007 1:55 AM
Ladies and Gentlemen,
I have 2 problems with a SAPScript development for a client.
1) I am using the &PAGE& of &SAPSCRIPT-FORMPAGE&, but when the output continues over 2 or more pages, the numbering on the form continues to show 1 of x. Do I need to manually increment the &PAGE& value? I thought SAPScript managed this funtionality automatically.
and 2) I have a constant value ( '>' ) that I need to print if text is available. How do I code an if statement around the constant. I have tried
/: if not wa_text is initial.
ZL >,,&wa_text&
/: endif.
(where ZL is the paragraph type) but I get a syntax check error. Any thoughts or answers would be greatly appreciated (and rewarded).
Cheers,
Steve
Try like this :
&PAGE& of &SAPSCRIPT-FORMPAGE(3Z)&
/: <b>if wa_text ne ''.</b>
ZL >,,&WA_TEXT&
/: endif.
I hope you will get it.
Thanks
Seshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seshu,
Thank you for your assistance, but unfortunately it didn't work. I think I can get around the logic by changing the '>' to a variable and managing it in the program code, but the page number is totally confusing.
The actual code (I was working from Memory before) for the page print is:
Page: &PAGE& / &SAPSCRIPT-FORMPAGES(C)&
. It works on other forms, but on is causing a problem with this one. Is there something that I need to define/maintain in the program code?
Thanks,
Steve
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.