on 11-18-2013 8:12 PM
Hello experts,
Need your assistance.
1) In Attribute View, we can't have a table having joins coming from 2 different sources/tables in Attribute View.
For example, table MARC has join coming in from AUFK and AFKO. (even though before this would work at attribute level, it would fail at calculation view level).
I've tried this now and it seems to work at calculation level = confused But concerned it may not be consistent or cause other issues.
Is it still incorrect to have joins coming into a table from 2 or more different tables in Attribute View?
OR
If it is allowed, anyone have documentation from SAP, maybe a patch resolved it - so documentation of that will help? I have to show the client.
------------------------------------
2) I have a simple scenario where I only want data for the last 60 days. Unfortunately, in Attribute view you can only use a hard value. I can't put system date nor a hard coded date because the date is dynamic.
So At the calculation level I created a filter expression at projection node. But now() is not recognized here either.
So I'm stuck with getting all the data from the Attribute view. Then filtering. But that's effecting the performance significantly.
Is there a way to dynamically retrieve data only for the last 60 days from the Attribute View?
Thanks in advance.
My Key attributes are MANDT and AUFNR from table AUFK (order header).
And I do need a field from Table MARC. But I have to satisfy the 2 primary keys in table MARC (plant and material) to avoid duplicates. I can satisy the 2 primary keys using AUFK and AFKO.
That's my dilemma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Durgha, that's what I was thinking. But I'm confised why it's working, before I used to get an error...I don't know why it's not giving an error. Regardless I don't feel comfortable moving forward this way.
Any graphical workaround for this type of scenario?
---------
Siddharth - HANA didn't propose a synonym(?) even thought MARC was used as a right table twice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are looking for the restriction criteria (using this model you are trying to do that) then inner join is the only join that should be used for restriction...
But if you want addtional info from the MARC table based on join you can just use this table twice with different names and have right outer join on them in attribute view and use each MARC table for separate purposed...
Check the screenshot where I am having Z_Corporate_Parts more than once(Alias) in the same attribute view
Durgamadhab, in your scenario you have only one source table. I have two source tables (AFKO & AUFK) joining MARC. I have to use a field from AUFK and a field from AFKO to join table MARC to eliminate duplicates.
If I try alias then it would look like below (diagram), but it's not working, it's giving duplicates. I did inner join and 1 to 1 cardinality.
I'm looking for a graphical work around.
No it won't propose a synonym in this case. If you have a table field used in two different attribute views and you are using both this attribute views in an analytical view then it proposes a synonym. Anyways it should not concern you, yours is a totally different problem. Do you want data from MARC and are you using AUFK and AFKO to restrict the data in MARC. Or is it the other way around. Which table contains your key attributes i.e., which is your central table. The logic is not a bit clear to me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Durghamadab - I mean that a table cannot be identified as the right table on a join more than once. Basically a table can be a "right table" only once. But a table can be a "left table" many times. If you click on the join and look at properties you'll see left element and right element.
So basically, Table A cannot have a multiple joins coming in (this will make table A right table). It used to give error before at the calculation level but it's not anymore.
Nidhi - I don't have documentation but was getting an before, but now I'm now. I actually want to see documentation myself.
Siddharth - That scenario makes sense. But I'm concerned within Attribute View only. Can a table be a right table more than once? (it is receiving a join from many sources).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to clarify in any RDBMS let alone HANA for a query you can have as many right tables but a single table can not be used as right table more than once..
So we can have a "work around" where we can use the same table as right table more than once; infact the moment you add a table as right table more than once, the HANA studio proposes the synonyms automatically. So I don't think that this should be an issue. I can only remember the two points i.e. having a table only once in a join path and all Key characteristics coming from a single table that is mentioned in the documentation which can have an impact in this scenario.
There is no rule restricting multiple tables/joins ; however you can not have the same table twice in a join path.
An example would be, say you are using table "X" in an attribute view. Now you use this attribute view in an anlaytical/calculation view whose fact table also contains table "X" such that you can trace out a single path between the two instances of Table "X" ; then this would result in error.
Please check if your scenario is violating this condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see any issue having data from 2 or more tables with more than one join in attribute view. In fact we are using attribute view with more than one join and more than 2 tables without any issues. I will suggest to check the calculation view definition of what is going wrong...
Unfortunately with SPS6 there is no way to create a filter on a dynamic date using now.This is very much needed now and I hope SAP includes this in SP7. As of now there is a dynamic filter concept that only work in script .. Please check the below link if that might help
http://scn.sap.com/community/developer-center/hana/blog/2013/07/01/using-dynamic-filters-in-sap-hana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Durgamadhab.
But two joins coming in from two different tables caused an error before in the calculation view. Hence I'm concerned.
The rule was that a table can be joined to many tables (going out), but a table cannot receive joins from multiple tables. (coming in)
Any documentation would be helpful to confirm it's allowed or not allowed. (maybe a recent patch allows it).
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.