Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

Stacked Bar Chart with OLE

$
0
0

Many a time I had previously used OLE for excel based online reporting, but this time it was a graph.

The requirement was to have a Stacked Bar chart, to have a invoice status wise colour difference for same Account Manager.

First I said its not possible, but now I have the confidence to say, same output as in excel report could be achieved from ABAP OLE coding.

The best reference is excel macro recording codes.

Report.png

From the available  help links and documents, I could understand that the type of report is 52

chart type.png

Then the real challenge was to have the legend dynamically with only available statuses from larger list.

So add dynamic coding to add column based on available statuses with value and then hide this status based invoice value column.


Dynami.png

Hide column logic

hidden.png

To use the hidden columns' data in graph we have to enable the following option in excel ,

finding the equivalent for that from ABAP was another difficulty, finally from an excel macro was able to trace that

UseHiddenRows.png

Then Enabled legend based the Invoice Status ( Colour coding is based on this statuses)

legend.png

Though there are many other reporting option, OLE is powerful.

The  report  exactly met our customer expectation.


Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>