Recently there was a question about sending a chart by mail from pavan kumar Mallipeddi
Using a hint from Jānis B I was able to generate a chart and to add it in the body of the message and also as attachment .
Program Y_R_EITAN_TEST_10_06 attached use cl_document_bcs and cl_igs_chart_engine .
cl_igs_chart_engine recieve XML documents as input so cl_ixml used .
In order to display the image in the body of the message cl_gbt_multirelated_service is used this allow the use of <img src=”cid:<image name>“> tag .
FORM do_igs_chart is reponsible to return the image as xstring .
The program is also send a smart form as attachment. (A bonus….. 😛 )
2014/08/28 Increase the picture size to 600X800