07-14-2015 6:33 AM
HI Abap Gurus,
I already searched threads in SCN and in Google but i did not get a Proper Solution.
I need to put some blank spaces beside one field value in the file in Application server.
putting Blank spaces in SAP is possibe?
07-14-2015 7:20 AM
Hi Srinivas,
I don't think putting blank space is possible after a filed in Application server.
If in case you are looking for a separator between the fields, please use separator symbols in between the fields... it will be helpful while exporting the file to Excel
For eg: '|' or ':'.
Regards,
Deepan swaminathan
07-14-2015 7:36 AM
Hi,
What exactly is meant with "Blank Spaces End of Field value"? I think you'd get better advice when trying to describe how you are creating file, and what problem you have with it currently - not your preferred solution (Blank Spaces).
cheers
Jānis
07-14-2015 11:07 AM
Hi Srinivas,
You can add one field as filler with 100 characters so that you will expected space.
Regards,
Pravin
07-14-2015 2:33 PM
You can put the blank space using backtik (`). You can find the backtick on keyboard just below the ESC key.
DATA: lv_string TYPE string.
"Concatenate 'SPACE' ` ` into lv_String.
lv_string = 'Space' && ` `.
DATA: lv_len TYPE i.
lv_len = strlen( lv_string ).
WRITE: / lv_len,
/ lv_string, 'something to show space inbetween'.
Output would be:
8
Space something to show space inbetween
Regards,
Naimesh Patel