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

NO-GAP

Former Member
0 Likes
4,978

Guys,

WRITE 😕 TEXT-120 NO-GAP,V_CNTLNS,'Hours'.

I want to remove the gap between the test-120 and v_cntlns.

I tried using NO_GAP keyword but it is showing gap.

please help on this.

regards,

vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,583

Hi Vijay,

There is no problem with your statement. I have written a similar statement using NO-GAP and it is working for me.

Can you tell me what V_CNTLS is?? Is it a selection-screen field?Or is it simply a variable?

In any case, it should work.

Regards,

SP.

5 REPLIES 5
Read only

Former Member
0 Likes
2,583

Hi,

NO-GAP doest work in this situation.

I think you will have to concatenate both the variables

TEXT-120 and V_CNTLNS into another variable without spaces and then use it.

Thanks,

Rashmi.

Read only

Former Member
0 Likes
2,583

Hi Vijay,

This will work

data : len type i.

len = strlen( text-120 ).

write 😕 text-120(len) no-gap,V_CNTLNS,'Hours'.

Regards,

Bikash

Read only

Former Member
0 Likes
2,584

Hi Vijay,

There is no problem with your statement. I have written a similar statement using NO-GAP and it is working for me.

Can you tell me what V_CNTLS is?? Is it a selection-screen field?Or is it simply a variable?

In any case, it should work.

Regards,

SP.

Read only

Former Member
0 Likes
2,583

Hello Vijay,

NO GAPS should work provided the TEXT-120 is completely filled. However if the length of TEXT120 is say 10 char and only 4 char are filled then No GAPS has no meaning. U will have to process this in a different way for this to work.

Read only

Former Member
0 Likes
2,583

Hi vijay,

1. CONCATENATE

2. Instead of using no-gap,

use concatenate

3. Just copy paste this program.

It will WRITE as u want.

(instead of my variable a, u can replace

it with text-120.)

(also note that there are spaces in

a = '' (after Z )

like this.

a = ' 1234567890 ABCDEFGHIJ.............Z...................'

(dots are spaces)

4.

report abc.

data : a(120) type c.

data : b(10) type c.

data : c(200) type c.

*----


a = ' 1234567890 ABCDEFGHIJ Z '.

b = 'AMIT'.

concatenate a b into c separated by space.

write : a , b.

write 😕 c.

regards,

amit m.