Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mailtext (SAPscript) enrichment with program variables

Hi,

I have a SAPscript text, which contains an email text, I have to send via bcs-classes. Email sending is working fine, but now I am supposed to translate some program variables within the SAPscript text.

I think "program symbols" and the FM text_symbol_replace are the right way, but which attributes such a program variable has to have to be determined?

I have to say, that my mail is sent by a method, not by a report (so, no "global" fields are available).

Tags:
replied

Hi,

DATA: st_options TYPE itcpo. 

st_options-TDGETOTF = abap_true .

CALL FUNCTION 'PRINT_TEXT' 

      EXPORTING 

        OPTIONS                  = st_options 

        dialog                   = abap_false

        header                   = st_thead 

      TABLES 

       lines                    = it_lines 

      

      

See:

PRINT_TEXT - BC SAPscript: Printing with Forms - SAP Library

      

Regards.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question