Skip to Content

Logic in calculation view

Hi All, I need to exclude AUFK-AUFNR( AUFNR is key field) from my report where AUFK-OBJNR=JEST-OBJNR, JEST-STAT = I0015 and I0076 with JEST-INACT NE X . Please note that relationship between AUFK-OBJNR & JEST-OBJNR is 1:n . How can we apply this logic in Calculation view of HANA studio . Thanks in advance .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 19, 2016 at 02:04 PM

    Hi Pranjal

    As per my understanding of the scenario , if you model as following it would give you right data .

    1 ) You are planning to do it in Graphical Calculation view ( assumption )

    2) Create a projection on JEST table with all the filters . i.e

    Status in list ( I0076 ,I0015 ) and INACT NOT EQUAL X . Now, you would get all OBJNR for which you do not want to show data in report. However, there might be multiple lines for one OBJNR based on status .

    3) Use a rank node and take latest status --- ( in your case I0076 would be latest if OBJNR for both status exists ) -- It would give you only one line for one OBJNR .

    4) Take another Projection for AUFKtable .

    5) Left outer Join AUFK-Projection with Rank Node on OBJNR . Filter records where OBJNR from RANK NODE ( JEST) is populated.



    Capture.PNG (9.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.