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

Reduce space between a variable in sap script

Former Member
0 Likes
2,752

Hi All,

I am displaying a text for example let it be w_text. this has a value due date. When displayed it is as below,

Due date

But, between due and date why is there so much space. I am fetching it form a table, and in the table due date is given. How to reduce that space, could you please help me.

Regards,

Indira

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,278

hi indira,

i think by using condense key word you can reduse the space.

or check once the table how the data in table is .

ramakrishna buddala

6 REPLIES 6
Read only

Former Member
0 Likes
1,279

hi indira,

i think by using condense key word you can reduse the space.

or check once the table how the data in table is .

ramakrishna buddala

Read only

0 Likes
1,278

Hi,

Thank you for the reply. But can i use condense keyword in text editor in sap scripts. int he tabel i have checked, it is maintained with only one space. but while display it shows up many spaces.

Read only

Former Member
0 Likes
1,278

hi,

Use symbol C(condence).

Ex: &itab-kunnr(C)&

Thanks & regards.

Read only

Former Member
0 Likes
1,278

Hi,

As per your questions in your driver progarm you can use Condence statement in your progarm and send that value to the form .

i think it may help you.

Thanks

Ravipatlola

Read only

0 Likes
1,278

Hi,

I tried using condense keyboard in program and also in script. But it dint work out. Could you help me out.

Regards,

Indira

Read only

0 Likes
1,278

Hi,

In your program Try like this...

data: a(10) type c.

a = '$ 80.00 *'.

CONDENSE a NO-GAPS.

write a.

or like this

&symbol(i)& ---> Supress the initial value.

&symbol(z)& ---> Supress the leading zeros.

&symbol(c)& ---> compress blank spaces

Thanks

Ravipatlola