cancel
Showing results for 
Search instead for 
Did you mean: 

ALLIGNEMENT PROBLE IN SCRIPT

NAeda
Contributor
0 Kudos

Hello frnds

the decimal value is not dispaying properly in script

value type p decimals 4.

ex value :_______ 0.2353

but i need

value : 0.2353

the spaces i dont need... how can i do that...

plese guide me regarding this

and please let know all formatting options in Scripts

Thnks

regards

Edited by: Aeda N on Mar 21, 2008 3:40 PM

Edited by: Aeda N on Mar 21, 2008 3:41 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aeda,

SPACE COMPRESSION:

The symbol value is viewed as a sequence of ‘words’, each separated from the next by either one or a string of space characters. The C option has the effect of replacing each string of space characters with a single space and shifting the ‘words’ to the left as necessary to close up the gaps. Leading spaces are completely removed. The results are the same as those of the ABAP command CONDENSE.

Syntax:

&symbol(C)&

Example

Assuming ' Albert Einstein ' is the symbol value,

&symbol& -> Albert Einstein

&symbol(C)& -> Albert Einstein

Leaving content frame

OMITTING LEADING ZEROES:

Certain symbol values are printed with leading zeros. If you want to suppress these, use the Z option.

Syntax

&symbol(Z)&

Example

Assuming the current date is 1.1.1994,

&DAY& -> 01

&DAY(Z)& -> 1

Leaving content frame

For more formatting options try the following link:

Link: [http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb3d07455611d189710000e8322d00/frameset.htm]

Answers (3)

Answers (3)

Former Member
0 Kudos

hai Aeda,

For Supressing leading zeros use Z option.

Syntax

&symbol(Z)&

For Compressing Leading Spaces Use C Optin.

Syntax:

&symbol(C)&

Hope this Will Solve U r Problem.

Regards.

Eshwar.

Edited by: Eshwar on Mar 22, 2008 6:33 AM

Pawan_Kesari
Active Contributor
0 Kudos
Former Member
0 Kudos

To resolve your issue try following

What ever the variable you are passing to your SAP Script through your driver program, before passing it,,

use : "CONDENSE <var> NO-GAPS. "

and then pass it to the SAP Script, that should take care of this issue.

You can find the related documentsi in the following links:

http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp

http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html

http://www.thespot4sap.com/articles/SAPscript_example_code.asp

http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm

http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm

www.geocities.com/wardaguilar25/sapscript-tutorial.html

http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm

Hope you found this useful.

Rahul.