Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

how to use the power of AMDP for section headings subtotals,total and row coloring

$
0
0

I had a requirement given by the business which was a bit difficult. The data was to be pulled from FI and MM module and combined in one report.

The report had to have 5 sections

  1. For section 1 the data needs to be pulled from FI
  2. Subtotal
  3. For section 2 the data needs to be pulled from MM
  4. For section 3 the data needs to be pulled from FI
  5. Sub total
  6. Grand total

I decided to explore all this by using the AMDP method. Given below is a screen shot of my procedure for the first 2 points.

I added one column called color in the structure which i will be using in the ABAP coding. I am also using the select from dummy to add a heading row.

Finally i do a union all and assign it in the out parameter of the procedure.

 

Capture1.PNG

This is for retrieving the data

Capture2.PNG

This is for the subtotal

Capture3.PNG

In the ABAP Code

Capture4.PNG

For coloring the line just add the line highlighted in the layout

Capture5.PNG

The final out put

 

 

     Capture6.PNG

I Hope this helps the fans of code push down.


Viewing all articles
Browse latest Browse all 831

Trending Articles



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