My requirement is to encapsulate a string with 2 special characters and download to a flat file. Example below.
The world is good,
I can hardcode the beginning and ending characters in ABAP code. I am not finding the way to declare the datatype correctly.
data: x_begin type x value ' '.
data: x_end type x value ' '.
data: gen_text type string vlaue 'The world is good'.
" concatenate x_begin gen_text x_end into <<some container that will aceept that>>.
write:\ << container>>
itab-container = <<container>>.
append itab.
call function gui_download tables itab.
expected result => The world is good, in output and when I view the downloaded file in Excel.
Why I need this? There is a third party application that accepts comments from a file only if encased as above. I would like to take out some text from SAP and upload into the 3rd party app.
Any help will be gratefully received.