Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

open dataset space at the end of the character

$
0
0

Hi,

 

I know this question has been asked a couple of times and have already gone through all the posts.

 

using the open dataset filename for output in text mode.

 

I need a header line as below

 

HI1111ABC........ ( the dots represent spaces as the last character is 11 characters)

 

I have declared a work area and all is good till HI1111ABC but am not getting the spaces after that which gives an error on the target system

 

I have tried :

 

data : lv_space ( 8) type c.

 

lv_space = cl_abap_conv_in_ce=>uccp( '00a0' ).

concatenate work area lv_space lv_space lv_space lv_space lv_space lv_space lv_space lv_space into workarea.

 

the output is

HI1111ABCNULNULNUL instead of HI1111ABC........

 

CRLF at the end as that is getting displayed properly so the cl_abap_char_utilities=>horizontal_tab is not one of the options.

 

I have even tried :

data : lv_space type c.

concatenate work area lv_space lv_space lv_space lv_space lv_space lv_space lv_space lv_space into workarea.

 

no luck there also

 

Any suggestions what I am doing wrong ?

 

Thank you.

 

Narayani


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>