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

Former Member
0 Likes
627

how to align the fields and remove te decimals etc.,

field(R)

waiting 4 reply

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

Hi

e.g.

&itab-posnr(L12.0)&

Regards

Ashish Jain

5 REPLIES 5
Read only

Former Member
0 Likes
581

<b>Offset</b> - specifying an offset of ‘n’ , n left most characters are not displayed.

E.g &symbol& ---> 1234576789

&symbol+3& -


> 456789

<b>

Output Length</b>

&symbol(3)& -


> 123

&symbol(7)& -


> 1234567

<b>

Time Mask</b>

&Time&

Normally 10:08:12

(hh) : (mm): (ss)

/: Set Time Mask = ‘HH:MM’

&Time& = 10:08

/: Set Time Mask = ‘HH hours MM minutes’

&Time& = 10 hours 08 minutes

&Time(Z)& = 10 hours 8 minutes

<b>Date Mask</b>

/: Set Date Mask = ‘DDMMYY’

&Date& = 01 05 01

/: Set Date Mask = ‘MMMM DD,YYYY’

&Date& = May 01,2001

<b>Fill Character</b>

Leading spaces in a value can be replaced with a fill character.

The ‘F’ option is used and character to be filled is specified.

E.g &KNA1-UMSAT& = 700.00

&KNA1-UMSAT(F*)& = **700.00

<b>Space Compression</b>

&symbol(C)&

It has a effect of replacing each string of space characters with a single space and

shifting the words to left as necessary to close up gaps.

Also Leading spaces are completely removed.

<b>Omitting Leading Zeros</b>

&symbol(Z)&

&Day& = 01

&DAY(Z)& = 1

Read only

Former Member
0 Likes
582

Hi

e.g.

&itab-posnr(L12.0)&

Regards

Ashish Jain

Read only

0 Likes
581

thank u guys

rewards to u

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
581

Hi,

&SYMBOL(R)& Right align output

&SYMBOL(8.0)& Decimal format. Length 8 decimals 0

For more information,check this link.

http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm#Formatting

Read only

0 Likes
581

Hi,

You can go for &itab-posnr(CIZ.0)& for deleting the decimals and removing zeros.

Regards

Abhishek