Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_GUI_CHART_ENGINE Graph As Email in Background

pavanm592
Contributor
0 Kudos

Hi All,

I am using CL_GUI_CHART_ENGINE class to display multiple graphs  with custom container using splitter method ,when i am running it in foreground everything is fine i can print/save  graphs seperatly.

If i use docking container to display CL_GUI_CHART_ENGINE will it run in background ?

My main problem is to send email with both graphs.

Is it possible to send email in background? if Yes please suggest a way.

As i have gone through many threads and i could'nt find the right way to do this.

Looking for some suggestions..

Thanks,

Pavan

8 REPLIES 8

pavanm592
Contributor
0 Kudos

Hi,

Looking for some suggestions....

Thanks

Pavan

pavanm592
Contributor
0 Kudos

Hi,

Is there any other option that i can run atleast bar graph in background and send an email by any other way,

Please suggest some methods to get this requirment done..

Thanks,

Pavan

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Have you consider using SVG ?

http://en.wikipedia.org/wiki/Scalable_Vector_Graphics

Regards.

From here:

http://bost.ocks.org/mike/bar/2/

Code:

<!DOCTYPE html>
<style>

.chart rect {
  fill: steelblue;
}

.chart text {
  fill: white;
  font: 10px sans-serif;
  text-anchor: end;
}

</style>
<svg class="chart" width="420" height="120">
  <g transform="translate(0,0)">
    <rect width="40" height="19"></rect>
    <text x="37" y="9.5" dy=".35em">4</text>
  </g>
  <g transform="translate(0,20)">
    <rect width="80" height="19"></rect>
    <text x="77" y="9.5" dy=".35em">8</text>
  </g>
  <g transform="translate(0,40)">
    <rect width="150" height="19"></rect>
    <text x="147" y="9.5" dy=".35em">15</text>
  </g>
  <g transform="translate(0,60)">
    <rect width="160" height="19"></rect>
    <text x="157" y="9.5" dy=".35em">16</text>
  </g>
  <g transform="translate(0,80)">
    <rect width="230" height="19"></rect>
    <text x="227" y="9.5" dy=".35em">23</text>
  </g>
  <g transform="translate(0,100)">
    <rect width="420" height="19"></rect>
    <text x="417" y="9.5" dy=".35em">42</text>
  </g>
</svg>

Result:

Private_Member_7726
Active Contributor
0 Kudos

Hi,

Well, what about CL_IGS_CHART_ENGINE - it should work just fine without the GUI, I believe...

cheers

Jānis

0 Kudos

Hi,

Every day I am learning something new !!!

Have you test this in Email ?

There is document

Worth while to test !!!

There is a program GRAPHICS_IGS_CE_TEST but its interactive

Regards.

0 Kudos

There is get_image() which should permit to get the image... I have not tried it out yet (there is some code getting  the bitmap here).


I'll try it after my holidays, time permitting, when I'm done with fixing parts of CL_RSPO_OUTPUT_RENDERER_OTF (seems another not quite finished, now dead end in SAP) in Z name space. I'm planning to extract Bitmap to OTF conversion logic from that class and enabling output of non BDS persisted images (SAP mime library and chart engine, among others) in smartforms. It should be easy job, via implicit enhancement in FM SAPSCRIPT_BITMAP_GET...

cheers

Jānis

0 Kudos


Hi,

Thanks I will do some testing.

Have a nice holiday.

Regards.

rosenberg_eitan
Active Contributor
0 Kudos

Hi ,

See if this is useful for you :

Regards.