Skip to Content

Create Hyperlink when sending mail via Outlook

Hi all,

I want to mail a hyperlink from within function module via outlook. Creating the hyperlink and starting function <new mail> in outlook works just fine. But when the document (word, pdf, etc.) contains blanks, the hyperlink gets interrupted.

For example:

h:\temp\word1.doc (this will work just fine).

h:\temp\word 1.doc (error when displaying hyperlink in body of new mail).

I know that sometimes on the internet blanks are displayed as %20. But how to insert this in an ABAP statement using CONCATENATE?

Best regards,

Micky.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 07, 2005 at 01:20 PM

    Hi,

    or use :

    concatenate f1 f2 f3 into f separated by '%20'.

    regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2005 at 12:53 PM

    Hi Micky,

    Try using replace command... to replace SPACE with %20

    Regards,

    Raj

    See the example below:

    REPLACE

    Basic form

    REPLACE f WITH g INTO h.

    Addition

    ... LENGTH len (length specification for field f )

    Effect

    Replaces the first occurrence of the contents of field f in field h with the contents of field g . All fields are handled in their defined length; this means that closing blanks are not ignored.

    The return code value indicates whether the string f was found in h and replaced by g :

    SY-SUBRC = 0 String replaced.

    SY_SUBRC = 4 String not replaced.

    Example

    DATA FIELD(10).

    MOVE 'ABCB' TO FIELD.

    REPLACE 'B' WITH 'string' INTO FIELD.

    returns:

    FIELD = 'AstringCB', SY-SUBRC = 0

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.