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

Re: change the output length of a field?

$
0
0

Hi.

 

I think its quite similar with a issue I had a time ago and I solved it using copying RESPECTING BLANKS using concatenate command.

 

It will copy your 18 character fields adjusted to right position and respect blanks in the left side, in TXT file, so respecting 30 characters positions to this field in the file.

 

e.g.:

If you are trying to concatenate various fields per line into TXT, use this example that worked to me:

 

LOOP it_table.
your_30_char_field = matnr.
concatenate .....field1 field2 field3 your_30_char_field ... fieldN into ls_file RESPECTING BLANCS.
append ls_file to IT_file.
ENDLOOP.

 

 

 

I do not know if you are using gui_download. So it's the case, use this way:

 

 

  CALL FUNCTION 'GUI_DOWNLOAD'    EXPORTING      filename                  = lc_filename      filetype                  = 'ASC'       " important      trunc_trailing_blanks_eol = ''     " Important    TABLES      data_tab                  = it_data_out.

 

 

 

best regards.

Glauco


Viewing all articles
Browse latest Browse all 9041

Trending Articles



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