Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

&SAPSCRIPT-FORMPAGES(CL)&

Former Member
0 Likes
638

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
615

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).

4 REPLIES 4
Read only

Former Member
0 Likes
616

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).

Read only

Former Member
0 Likes
615

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

Read only

0 Likes
615

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

Read only

0 Likes
615

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