‎2006 Mar 21 9:15 AM
Hi all.
we are doing some upgradation from 4.6b to ecc5.0.
I am fasing some trouble in scripts.
for getting the total number of pages ,they used
&SAPSCRIPT-FORMPAGES(CL)& in old system.But in new system while seeing the print preview it is going to dump.
Please let me know what is the purpose of that adding (CL).
Thanks in advance,
Regards,
Eswar.M
‎2006 Mar 21 9:26 AM
The CONDENSE option cannot be used on the program icon SAPSCRIPTFORMPAGES
(C) without an explicit length specification. This symbol is
replaced with a value only after the form has been completely edited, since the
total number of pages of a form is first known in the program function
END_FORM or CLOSE_FORM.
However, the symbol size (number of characters) is reserved correctly when the
symbol first occurs, with the current page number. Therefore, only one character
is reserved for option C (CONDENSE).
‎2006 Mar 21 9:26 AM
The CONDENSE option cannot be used on the program icon SAPSCRIPTFORMPAGES
(C) without an explicit length specification. This symbol is
replaced with a value only after the form has been completely edited, since the
total number of pages of a form is first known in the program function
END_FORM or CLOSE_FORM.
However, the symbol size (number of characters) is reserved correctly when the
symbol first occurs, with the current page number. Therefore, only one character
is reserved for option C (CONDENSE).
‎2006 Mar 21 9:30 AM
Hi
C means COMPRESSION (it's like the statament CONDENSE)
L means LOCAL DATE (it converts a field date to locale date)
So it's very strange to use these two options together.
I believe the option L is wrong in this case.
Max
‎2006 Mar 21 9:50 AM
Hi.
Thank you very much.
As you said I removed the 'L' from CL,It is working fine.
When I am using 'CL',it is going to dump while seeing the print preview.
But in the previous version(4.6b),they had used CL, working in 4.6b.
Thanks,
Eswar.M
‎2006 Mar 21 9:58 AM
Hi
Sapscript is sometimes a strange object or has a strange behavior, i.e. no all errors can give a dump.
I think in 4.6B that error didn't give any dump, now in your new release you're obtaining a dump: you're using a best release...I don't know, It depends on your point of view.
Max