cancel
Showing results for 
Search instead for 
Did you mean: 

URL gets truncated in email body sent using workflow

Former Member
0 Kudos

Hi All,

We need to insert an URL in the email body for emails being sent out using workflow. Issue is that the URL is around 210 characters long. This gets truncated to 80 characters whenever the email is sent out. I found few notes related to this problem , however seems like most of them provide a solution to accommodate max length of URL as 132 characters, not longer than this.

We are already considering the following options --

1. Breaking up of actual URL into smaller pieces and displaying it as different variables in the email body

2. Using an alias in SICF

Is there any other workaround solution to this problem ?

thanks-

Harmeet.

Edited by: Harmeet Singh on Jun 14, 2011 4:08 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

we used 3 different variables , broke the original URL into 3 pieces, and displayed them .

former_member185167
Active Contributor
0 Kudos

Hello,

Thanks for the follow-up. When the three parts are joined together, were they less than 132 characters?

If more, then surely SendMail can't handle that?

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi,

Please use the follwoing FM in a task-mehtod to send mail.

CONCATENATE '<A HREF=' lv_link '>'
   INTO ls_text.
APPEND ls_text TO lt_text.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    document_data              = ls_document_data
    document_type              = 'HTM'
    put_in_outbox              = 'X'
    commit_work                = 'X'
  TABLES
    object_content             = lt_text
    receivers                  = lt_receivers
  EXCEPTIONS
    too_many_receivers         = 1
    document_not_sent          = 2
    document_type_not_exist    = 3
    operation_no_authorization = 4
    parameter_error            = 5
    x_error                    = 6
    enqueue_error              = 7
    OTHERS                     = 8.

Where lv_link is the varibale wihich holds thlink more than 132 charecters.

Thanks and regards,

SNJY

former_member183917
Active Contributor
0 Kudos

Hi-

Alternatively you can use class- CL_BCS to send email. This will work, i have used this

Vinoth