Hi All,
I need to write a text file in application server with 'SPACE' like below. (ECC 6.0 , EHP : 0 , OS version : OS400 )
DATA : lv_one(1) TYPE c,
lv_two(4) TYPE c,
lv_spaceval(779) TYPE c.
lv_file_name TYPE string,
lv_raw TYPE string,
lv_space TYPE string.
lv_one = '5'.
lv_two = 'SAJ1'.
lv_spaceval = ' '. " I need to create 779 spaces from this variable in the text file
CONCATENATE '/usr/sap/MyFile_' sy-datum '.txt' INTO lv_file_name.
OPEN DATASET lv_file_name FOR OUTPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED.
lv_space = cl_abap_conv_in_ce=>uccp( '00a0' ).
WRITE lv_space TO lv_reserved+778(1). " this is the place Im trying to create Spaces
CONCATENATE lv_one lv_two lv_spacevalINTO lv_raw .
TRANSFER: lv_raw TO lv_file_name.
SET DATASET lv_file_name POSITION END OF FILE.
CLOSE DATASET lv_file_name.
I dont see any SPACES ( there should be '779' spaces ) in the text file.
If I write the statement ;
" WRITE lv_space TO lv_reserved+249(1) " , I can see there are 250 spaces in the text file .Maximum characters that text file contain is 255 (with or without SPACES ). cannot write exceeding that.
How can I increase this characters?