Skip to Content
author's profile photo Former Member
Former Member

Broadcast email Custom Text Variables

Hi Gurus,

Is it possible to introduce in Subject or Content of the mail a custom Text Variable ?

My idea is to introduce in the Subject of the mail a Text Variable representing the value of the Company for which i have scheduled the query, like in the standard BEx reporting.

Thank you in advance.

Ciao.

Riccardo.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2007 at 01:11 PM

    Hi Riccardo,

    is exactly the problem that we solved as follows.

    The subject and the body are stored in the table

    rsrd_sett_node_t

    with the key:

    ID = 'DI_SUBJECT' or 'DI_BODY'

    setting_id = <technical name of the ID of broadcasting report that you have saved>

    You can substitute the subject and body before the broadcasting execution with a simple ABAP program.

    Pay attention at table, it is language-dependent.

    unfortunately it's not possible to change the name of workbook file:

    broadcasting-workbook---change-attachment-filename

    Regards,

    Sergio

    Message was edited by:

    Sergio Locatelli

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I suggest to substitute text and launch the query from the same report or the same chain (if you're in 7.0).

      In the body and subject you can insert a tag to identify where you want to insert the text. An example:

      "Report delivered from broadcasting for <COMPANY>"

      the code could be as follow:

      SELECT SINGLE * FROM rsrd_sett_node_t INTO l_s_sett_node_t

      WHERE setting_id = t_broad-idbroadcas

      AND id = 'DI_SUBJECT'.

      IF sy-subrc EQ 0.

      REPLACE '<COMPANY>' INTO zsd_broadrep_tex-value_subject WITH t_broad-company.

      REPLACE '<TEXTCOMPANY>' INTO zsd_broadrep_tex-value_subject WITH /bic/t0company-txtmd.

      condense zsd_broadrep_tex-value_subject.

      l_s_sett_node_t-value = zsd_broadrep_tex-value_subject.

      MODIFY rsrd_sett_node_t FROM l_s_sett_node_t.

      ENDIF.

      Regards,

      Sergio

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2007 at 11:57 AM

    Hi,

    Asper my knowledge , it is not possible since we have only some standard text variables are displayed in the broadcaster settings ( in text tab).

    Perhaps you can attach a text variable (replacement path) at the end of query description in the query, so that the header line of the report will be having some description as well as company value.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2010 at 09:26 AM

    Hi,

    If you by any chance are watching this thread: Where do we place the above code? Is there a customer exit for the broadcaster?

    Regards,

    Rikard

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Neville,

      Again a while ago but i'm facing a similiar problem right now.

      We have a montly broadcast that sends an overview of travel costs to each manager.

      Now we want to add a comparison with the total budget for the current year. This needs to be included in the body of the broadcasted e-mail.

      Our broadcast uses a control query to determine the recipients.

      Can I use this ABAP code to calculate the budget spend before sending the e-mail, for each recipients? How can I make sure the ABAP code is executed before each broadcasting step?

      Any help or info is greatly appreciated.

      Best regards,

      Thomas Nelissen

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.