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

sap scripts

Former Member
0 Likes
521

Hi Guys,

there are a few option in sap script in which we can print a variable centered , remove leading zeros, compress a variable etc.

like &var1(c)&.

If any one got those can u send it across to me urgently. Its important. Else please lete me know how to print a variable centered not using tabs?????????

1 ACCEPTED SOLUTION
Read only

dev_parbutteea
Active Contributor
0 Likes
498

Hi,

&SYMBOL(S)&

S can be,

a) < --> leading sign to left

b) > --> leading sign to right

c) Z --> omitting leading Zeros

d) C --> Space compression (condense)

e) .2 --> number of decimal places " here 2 decimals

f) E --> an exponent for floating point number, ex, E3, E6 etc

g) R --> Right justified

h) F* --> fill characters, here * will be prefixed in empty spaces

i) I --> surpress output initial value

j) K --> Ignore conversion routine

k) + --> increament

l) - --> decrement

m) L , R, C --> left justified, right justified, Center

Regards,

sooness

4 REPLIES 4
Read only

Former Member
0 Likes
498
Read only

Former Member
0 Likes
498

Hi,

To remove leading zeros and leading blanks

Please use FM

CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal

CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external

Thanks.

Read only

Former Member
Read only

dev_parbutteea
Active Contributor
0 Likes
499

Hi,

&SYMBOL(S)&

S can be,

a) < --> leading sign to left

b) > --> leading sign to right

c) Z --> omitting leading Zeros

d) C --> Space compression (condense)

e) .2 --> number of decimal places " here 2 decimals

f) E --> an exponent for floating point number, ex, E3, E6 etc

g) R --> Right justified

h) F* --> fill characters, here * will be prefixed in empty spaces

i) I --> surpress output initial value

j) K --> Ignore conversion routine

k) + --> increament

l) - --> decrement

m) L , R, C --> left justified, right justified, Center

Regards,

sooness