‎2008 Jun 24 9:24 AM
Hi, follows the scenario I'm using for the following question (I'm using ABAP/6):
DATA v8(7) TYPE N value '1234567'.WRITE: / 'V8: ', v8.--> there's a space after V8:
The output shows V8: 1234567 - with TWO spaces after V8:.
If, however, I use
WRITE: / 'V8: ' NO-GAP, v8, the output shows the expected result:
V8: 1234567instead of
V8: 1234567My question is, thus: why does the sole WRITE command displays this 2nd space in the output ? It may have something to do with the N type, perhaps, but I declared a 7-long N field and I filled it all.
Thanks,
Avraham
‎2008 Jun 24 9:38 AM
When U write two variables .. they'll be separated by space..
In your case UR writing ( 'V8: ', v8 ) ..
One space is of 'V8: ' .. the other will be like a separator ..
Instead write ..
Write :/3 'V8: ',
7 v8.
‎2008 Jun 24 9:27 AM
Hello,
Can U check if in ur write stmnt:
WRITE: / 'V8: ', v8.
there is a gap between ': and the '.
Reward, if it works,
Rgds,
Raghu.
‎2008 Jun 24 9:27 AM
hi,
do this way ...
Make use of concatenate statement ...
data: v_final(10).
concatenate 'V8: ' v8 into v_final.
WRITE: / v_final.
‎2008 Jun 24 9:28 AM
use this..
why are you giving space next to 'V8: '
WRITE: / 'V8:', v8.
‎2008 Jun 24 9:31 AM
Hi,
DATA v8(7) TYPE N value '1234567'.
WRITE: / 'V8:' no-gap , v8.remove the space after 'v8:' .
Regards
Adil
‎2008 Jun 24 9:31 AM
hiii
gap will be display because you have put gap between V8: & '...
so change it like below.No-gap will delete space but after ', only
WRITE: / 'V8:', v8.
reward if useful
thx
twinkal
‎2008 Jun 24 9:35 AM
I may not have made myself clear, I know how to solve the problem, all I wanted was an answer for why does this happen. Where does the 2nd space come from.
Avraham
‎2008 Jun 24 9:34 AM
Hi Avraham,
Just do the following.
write:/ ' V8: ', 3 V8.
here 3 is the number of spaces you want. It can be any number.
Hope this helps you.
Any queries, please get back to me.
Regards,
Chandra Sekhar
‎2008 Jun 24 9:38 AM
When U write two variables .. they'll be separated by space..
In your case UR writing ( 'V8: ', v8 ) ..
One space is of 'V8: ' .. the other will be like a separator ..
Instead write ..
Write :/3 'V8: ',
7 v8.