Skip to Content

Email Title Modification

I have created a copy of SAP code and am trying to add static text to an email title. I don't have much ABAP experience so please bear with me. I am trying to modify the code below to add a bit of static text before the dynamic elements, but I'm not really sure how to do so.

REPLACE '&' WITH ls_orderadm_h-object_id

INTO ls_output_options-tdtitle.

I think that is the place, but here is the whole snippet of code in case I am looking in the wrong spot.

* set mail title

SELECT SINGLE caption INTO ls_output_options-tdtitle

FROM stxfadmt WHERE

formname = ip_smart_form AND

langu = lv_language.



IF ls_output_options-tdtitle IS INITIAL.

SELECT SINGLE caption INTO ls_output_options-tdtitle

FROM stxfadmt WHERE

formname = ip_smart_form.

ENDIF.



REPLACE '&' WITH ls_orderadm_h-object_id

INTO ls_output_options-tdtitle.

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 25, 2012 at 07:06 PM

    If ls_output_options-tdtitle is being passed to the email title, then you

    CONCATENATE statictext ls_output_options-tdtitle INTO ls_output_options-tdtitle.

    Make sure the size of the data after concatenation does not exceed the variable

    - Puneet

    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.