Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

new line file .csv

Former Member
0 Likes
451

Hello,

I need help.

I want to send mail with an attachement; is a document .csv. The program is going to use in background.

The problem is that I know the field separator ( but I don't how can i do to jump a line.

My code is like that:

text = CL_DOCUMENT_BCS=>string_to_soli( IP_STRING = lv_line ).

attachment = cl_document_bcs=>create_from_text(

i_text = text

I_DOCUMENTTYPE = 'CSV'

i_length = '11'

i_subject = 'attachment...' ).

add (existing) attachment to main document

CALL METHOD DOCUMENT->ADD_DOCUMENT_AS_ATTACHMENT

EXPORTING

IM_DOCUMENT = attachment

.

Hello,

I need help.

I want to send mail with an attachement; is a document .csv. The program is going to use in background.

The problem is that I know the field separator ( but I don't how can i do to jump a line.

My code is like that:

text = CL_DOCUMENT_BCS=>string_to_soli( IP_STRING = lv_line ).

attachment = cl_document_bcs=>create_from_text(

i_text = text

I_DOCUMENTTYPE = 'CSV'

i_length = '11'

i_subject = 'attachment...' ).

add (existing) attachment to main document

CALL METHOD DOCUMENT->ADD_DOCUMENT_AS_ATTACHMENT

EXPORTING

IM_DOCUMENT = attachment

.

1 REPLY 1
Read only

Former Member
0 Likes
338

Hello again,

I forgot this previous code of lv_line.

lv_line = 'werks;bukrs\n1000;1000'

I want to show in the file:

WERKS BUKRS

1000 1000

Thanks in advance