Skip to Content
avatar image
Former Member

Upload/Export graph made with GFW_PRES_SHOW into an email body.

I have a report which has an output screen divide in 2 parts. On top, an ALV is displayed and based on the data of the ALV, a line graph is displayed below, at the bottom.

The line graph is created with the FM "GFW_PRES_SHOW".
Now, the final requirement for this report is that both, the ALV and Line Graph, should be displayed in the email body, which will be sent to the client.

Any help would be appreciated.

Thanks,
Monik

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 14, 2016 at 11:37 AM

    What did you already try, did you attach the ALV (in XML or HTML format) and/or the exported content picture of graphic from GFV_PRES_SHOW to the message, did you define the body of the mail as html format and include the two object in the html (e.g.<img src="CID:attachment" etc>. )

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Raymond Giuseppi

      Thanks for your input, Raymond.
      I'm making progress. I changed the FM to CL_BCS and added second attachment of image with w3mime data. Below is the code:

       lr_document->ADD_ATTACHMENT(
      
                          i_attachment_type = 'JPG'
      
                          I_ATTACHMENT_SUBJECT = 'ips_graph'
      
                          I_ATT_CONTENT_HEX = W3MIME ).

      Now I'm getting email with bigger blank image box. My guess is, it is somehow related to i_attachment_type. I don't know what type of image data is returned by GFW_PRESS_SHOW.

      I will debug to find out more. Meanwhile, if you have any suggestion, I would appreciate it.