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

Adding a link(URL) to a BCS document

Former Member
0 Likes
1,767

Dear BCS professionals,

I am using cl_document_bcs for sending Email. Now I encountered a problem as I have links in the document which are longer than 255 chars. As soli_tab only allows lines with 255 the URL is split and not working any longer (only the first 255 chars are realized as link).

How can I make this work anyway? Maybe it is possible to add those links as attachment to the mail?

Any ideas?

Thanks a lot in advance,

Daniel

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
790
data : mylink type string .
data: text               type bcsy_text.

mylink = '<a hr..="http://...........3000thchar.htm" >mylink</a>' .


 call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = mylink
        tables
          ftext_tab = text.

document = cl_document_bcs=>create_document(
                          i_type    = 'HTM'
                          i_text    = text
                          i_subject = subject ).
1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
791
data : mylink type string .
data: text               type bcsy_text.

mylink = '<a hr..="http://...........3000thchar.htm" >mylink</a>' .


 call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = mylink
        tables
          ftext_tab = text.

document = cl_document_bcs=>create_document(
                          i_type    = 'HTM'
                          i_text    = text
                          i_subject = subject ).