Quantcast
Viewing all articles
Browse latest Browse all 676

COPA E2E Modelling Scenario in SAP HANA 1.0 Part_2

In Part 1 covered the creation of Attributes.

http://scn.sap.com/community/developer-center/hana/blog/2013/03/06/copa-scenario-in-sap-hana-10-sps-5part1doc.

 

Now Part 2 covers Analytic Views.

 

 

COPA Analytical View ACTUAL DATA

This Analytic view Is based on CE2DEA table & following attribute views

Material Attribute View    ( MARA,MAKT tables)

Customer  Attribute View (KNA,T005U,T005T Tables)

 

Image may be NSFW.
Clik here to view.
00.jpg

1. Create an analytical view AV_ACTUAL_XX with the description Contribution Margin for Actuals.

As a result you should see below screen.

Image may be NSFW.
Clik here to view.
1.jpg

 

2. Drag & drop CE1IDEA table in to Data Foundation.

 

Navigate to your package, expand the folder and select the attribute views for PRODUCT and LOCATION and drop in to Logical Join.

Image may be NSFW.
Clik here to view.
2.jpg

 

3.In the details screen , select PERIO,KNDNR,ARTNR,AKORG,VV010,VV070,VV0290 & VV0960

Right Click > Add to Output

Image may be NSFW.
Clik here to view.
3.jpg

 

4.  Join DataFoundation.ARTNR to AT_PRODUCT_MATNR.

5.  Join DataFoundation.KNDNR to AT_LOCATION_KUNNR.

Image may be NSFW.
Clik here to view.
4.jpg

6. Define the calculated measures to be included in the analytic view.

Right click on Calculated Measures and choose New.

Image may be NSFW.
Clik here to view.
5.jpg

Create the first Calculated Measure, Net Revenue.

                 Select Decimal data type with length 15,0

Double click on the desired measure for it to appear in the expression editor. Either type in the minus sign or double click on the Operator.

Image may be NSFW.
Clik here to view.
5.jpg


  • Continue to create all other needed Calculated Measures.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Name

Description

    Data Type

Length

Formula

 

 

 

 

 

CM1

Contribution Margin 1

    DECIMAL

15

NetRevenue –ProductVariance

CM2

Contribution Margin 2

    DECIMAL

15

CM1 -OtherExpenses

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

7. Navigate to Data Foundation Tab, where we will define filters.

  • Apply filters on the fields  PALEDGER and VRGAR (record type).
  • Select PALEDGER > right click > Apply Filter.
    • Choose Operator Equal from the Apply Filter dialog box & Specify the value 01.


  • For VRGAR, choose Operator Equal and specify the value F.

Image may be NSFW.
Clik here to view.
7.jpg

Image may be NSFW.
Clik here to view.
8.jpg

8. Validate the Analytic view, Active & click preview to see data.

Image may be NSFW.
Clik here to view.
9.jpg

9.Result will appear in the below screen.

Image may be NSFW.
Clik here to view.
10.jpg

Image may be NSFW.
Clik here to view.
11.jpg

Image may be NSFW.
Clik here to view.
12.jpg

Image may be NSFW.
Clik here to view.
13.jpg

Image may be NSFW.
Clik here to view.
13.jpg

10. Navigate to the Catalog.  Select the folder _SYS_BIC, expand Column Views and locate you Analytic View.

Image may be NSFW.
Clik here to view.
Last.jpg

------------------------------------------------------------------------------------------------------------------------------------------------

COPA Analytic View PLAN DATA

This Analytic view Is based on CE2IDEA table & below attribute views.

Material Attribute ( MARA,MAKT tables)

Customer (KNA,T005U,T005T Tables)

 

11.Create an analytic view AV_PLAN_XX with the description Contribution Margin for Plan.

As a result you should see below screen.

 

Image may be NSFW.
Clik here to view.
11.jpg

 

12. Drag & drop CE2IDEA table in to Data Foundation.

  Navigate to your package, expand the folder and select the attribute views for PRODUCT and LOCATION and drop in to Logical Join.

Image may be NSFW.
Clik here to view.
12.jpg

13 .Navigate to the Logical View Tab to see the two attribute views.

    • Note that the Data Foundation is empty.
    • It will be filled once you select your columns.

    Image may be NSFW.
    Clik here to view.
    12.jpg

    14 .In the details screen , select PERIO,KNDNR,ARTNR,AKORG,VV010001,VV070001,VV290001 & VV960001

    Right Click > Add to Output

     

    Image may be NSFW.
    Clik here to view.
    14.jpg


    14. Join DataFoundation.ARTNR to AT_PRODUCT_MATNR. 

    15.  Join DataFoundation.KNDNR to AT_LOCATION_KUNNR.

     

    Image may be NSFW.
    Clik here to view.
    15.jpg

    16. Navigate to Data Foundation Tab, where we will define filters.

    •             Apply filters on the fields  PALEDGER and VRGAR (record type).

    •             Select PALEDGER > right click > Apply Filter & Choose Operator Equal from the Apply Filter dialog box, Specify the value 01. 

    •             For VRGAR, choose Operator Equal and specify the value F.

    Image may be NSFW.
    Clik here to view.
    16.jpg

    Image may be NSFW.
    Clik here to view.
    17.jpg

     

    Notice there is now a filter icon next to the PALEDGER and VRGAR.

     

    Image may be NSFW.
    Clik here to view.
    18.jpg

     

    17. Define the calculated measures to be included in the analytic view.

    Right click on Calculated Measures and choose New.

    Image may be NSFW.
    Clik here to view.
    19.jpg

    Create the first Calculated Measure, NetRevenue. 

    -              Select Decimal data type with length 15,0

    Double click on the desired measure for it to appear in the expression editor. Either type in the minus sign or double click on the Operator.

    Image may be NSFW.
    Clik here to view.
    20.jpg

    18. Continue to create all other needed Calculated Measures.

     

    Name    Description                    Data Type            Length      Formula

    --------------------------------------------------------------------------------------------------------------------------------------------                                                               

    CM1       Contribution Margin 1    DECIMAL             15           NetRevenue –ProductVariance

     

    CM2       Contribution Margin 2    DECIMAL             15           CM1 -OtherExpenses

     

    Image may be NSFW.
    Clik here to view.
    20A.jpg

    19. In the below screen under Calculated columns you can can new columns.

    Image may be NSFW.
    Clik here to view.
    21.jpg

    20.Validate & Active the analytic View.

    Preview the data

    Image may be NSFW.
    Clik here to view.
    22.jpg

    Image may be NSFW.
    Clik here to view.
    23.jpg

    Image may be NSFW.
    Clik here to view.
    24.jpg

    Thanks for reading this series blogs.

    Soon I will update part 3 also.

     

    Regards,

    Mahesh Kumar CV





     


     

     



    Viewing all articles
    Browse latest Browse all 676

    Trending Articles



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