‎2006 Apr 18 6:21 AM
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
‎2006 Apr 18 6:36 AM
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.
‎2006 Apr 18 6:30 AM
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.
‎2006 Apr 18 6:31 AM
Hi Vijay,
This will work
data : len type i.
len = strlen( text-120 ).
write 😕 text-120(len) no-gap,V_CNTLNS,'Hours'.
Regards,
Bikash
‎2006 Apr 18 6:36 AM
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.
‎2006 Apr 18 6:51 AM
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.
‎2006 Apr 18 7:08 AM
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.