a month ago
Hello,
Need inputs on below requirement:
I would like to move data into excel of an internal table which has a field that stores long text with multiple lines separated by '#' (cl_abap_char_utilities=>newline). I would like to replace "#' with some character so that it will add that entry in a new line in the downloaded excel.
Please find the below use case:
say, I have data in internal table it_tab1 with work area ls_tab1.
Now, this lstab1-<field> = string1 #string2 #string3
Now, I want input of the field in the downloaded excel as below:
string1
string2
string3
Please provide possible solutions.
Note: I have used below statement still not able to get data as expected.
REPLACE ALL OCCURRENCES OF '#' IN lstab1-<field> WITH cl_abap_char_utilities=>newline.
and I am using SCMS_STRING_TO_XSTRING FM to convert string to xstring.
Thanks in Advance!
Vielleicht hilft es, den Feldwert in der Ausgabe durch " einzuschließen. In etwa:
<field> = `"` && <field> && `"`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.