MDX for hierarchy extraction
Does anyone know of a way to use MDX to create a generational extract of hierarchies from Essbase? I know the outline extractor will do this, but our co will not allow us to use this as it is not supported by Oracle.
Any suggestions??
I think it depends on what you are looking for exactly. If you are looking for an extract that will look like what you get out of outline extractor or something you can re-use in a load rule, then the answer is no.
MDX only allows one dimension per axis so there isn't a way to write a query that lets you put Gen 1 members in 1st column and Gen 2 members in second column. Each column represents an axis so that isn't going to work. Try to think about how you would do it in Excel addin, you can't and it is the same concept.
You can easily write a query that will let you query member lists and filter based on Gen 1, Gen 2, etc. But how you match them up to know what the correct parent for any given member would be, is a challenge.
A less than elegant solution would have been if you could query and return the fully qualified member name (i.e. [Year].[Qtr1].[Jan]) then at least you could have copied into Excel and with some basic parsing you could have pulled it apart to come up with the result. Unfortunately the Oracle Essbase version of MDX is extremely lacking. It's kind of sad when you compare it to pretty much everyone else who uses MDX. I blame this in large part on the initial idea that they would bastardize MDX to make it look more like Calc script language Essbase developers were used to rather than say "hey, this is what everyone else uses so we should use it too". Kind of like the United States and the metric system. But I digress, the point is that MDX for Essbase is limited and so there is no good way I am aware of to do what you are looking to do.
That being said if you were just looking for informational purposes or documentation, you could try using the Ordinal() function to return members and report what generation they are.
Similar Messages
-
Data Source 3.x for hierarchy extraction
Hi,
Need help on following :
How do we assign data source which are not available in "Data Source List" during the assignment of the data source when creating the infosource?
What is the pre-requisite to extract hierarchy from one server to another server? Do we need to have the same Info Object Name and the same properties?
Thank you.No - We do not replicate DS from R3 - BI 7.0 & we can't transport anything from 3x to BI 7.0. After upgrade, the whole box will come to 7.0.
There is a option in BI 7.0 if you want to use your old staffs(RSA1old). But if you open any objects in BI 7.0, you can't go back. -
Hi all,
Can anyone tell about delta for generic extraction i.e 3 options in detail and when do we use it.
thanks in advance,
chandra sekharWhen you want to customize existing datasources at R/3 sides then you can do that with customer exits.
Suppose if you want to add a column to the existing datasource then you will use append structures (Transaction SBIW-> Edit Data sources - Enhance Datasource) then to fill the column you will write the code in these Exits.
There are 4 types of Exits available.Function Group (XRSA)
EXIT_SAPLRSAP_001 Customer Function Call for Supplying Transaction Data
EXIT_SAPLRSAP_002 Customer Function Call for Supplying Master Data (Attributes)
EXIT_SAPLRSAP_003 Customer Function Call for Supplying Text
EXIT_SAPLRSAP_004 Customer Function Call for Supplying Hierarchies
As you are aware there 4 types since the datasources in R/3 are predefined to fill the data of BW viz, attributes,Text,Hierarchy and Transaction.
Check the below forum discussion for more information..
DataSource Enhancement
Regs
Gopi
Assign point if it helps ... -
Doubt in Generic data sources for hierarchy & text
Hi All,
I have a couple of doubts as mentioned below.
1 . Why we canu2019t generate generic data source for hierarchy?
2. While creating Generic datasource for text there is one more option is available i.e. "Extraction from domain"
what is domian please explain .
Thanks & Regards,
Saurabh BansalHi,
1.We can't maintain Hierarchies in ECC, Because the Database design of the OLTP system is based on ERM(Entity Relationship Model),i.e Tables are connected via Primary and Foriegn key relationships, Whenever we need 1: Many connection divide the data in different tables,connect them using the primary and foriegn key relationships.
2. Domain will provide the technical properties of the Field of the R/3 table.
for Eg: length,data type of the field. -
Functiion module for hierarchy of classes excluding a sub tree.
Hi,
I am working on a custom transaction for hierarchy of classes by cloning standard CLHP transction.
There were some FMs which will give all the subclasses of a class or all super classes of sub class.
for ex.FM: CLHI_STRUCTURE_CLASSES.
But my requirement is to get all the lower level classes except a specified class( excluding its subclasses also if any).
Thanks in advance,
Satya.Hi Stephen,
Yes this is what the org unit I want to exclude is called. I'm actually wondering when the filtering is supposed to happen. Is it at the extraction of the data in the FM? I took a look at the FM /NAKISA/OC_OU_STRUCTURE and I could not see a filtering logic anywhere in the code. I saw some authority checks though, and I'm wondering if the following method would work:
- in the SAP side, exclude the org unit from the area of responsibility of the RFC user (an RFC user is used in all the data connections)
- modify the parameters of the /NAKISA/OC_OU_STRUCTURE FM so that an area of responsibility check is performed (parameter AOR_CHECK set to 'X') on the RFC user (parameter IM_UNAME set to the RFC User's uname).
What do you think?
Thanks
M.E. -
Cost Center hierarchy extraction errors
Hi,
I'm trying to extract R3 Cost center hierarchies into BW and in doing so, I get following errors. Could some one shed some light on these errors.
Extraction (messages):Errors occured
Error occured in the data selection
But, I successfully extracted Cost center master data from R3 just before hierarchy extraction.
I also checked RSA3 for the hierachy that I'm trying and it pulled around 2000 records in R/3 datasource extractor.
Appreciate any help
Hari Immadi
http://immadi.com
SEM BW AnalystHi,
Thanks for your reply.
I replicated the datasource before starting the extraction & also I double cheked the hierarchy name between BW & R3.
I don't get any other useful messages in the log & here is the entire log.
Requests : Everything OK
Extraction : Errors occured --> Errors occured in the data selection
Trasnfer IDOCS & TRFC : Everything OK
Processing (data packet) : No data
Subseq processing : Missing messages
Soon after execution of extraction, I get ALE Inbox error as follows & I double cheked that hierarchy in R/3 is not being edited.
Express document "Check Load from InfoSource 0COSTCENTER" received from author " Warehouse background user"
Check Load from InfoSource 0COSTCENTER , Packet Cost Center hier test
for demo
Please execute the mail for additional information.
Error message from the source system
Diagnosis
An error occurred in the source system.
System response
An error occurred in Service API .
Check the error message.
Procedure
The procedure for removing errors takes place depending on
the error message:
Note
If the source system is a Client Workstation, then it is possible that
the file that was to be loaded was being edited at the time of the data
request. Make sure that the file is in the specified directory and is
not being edited, and restart the request.
Note: If you not wish to receive any mails, maintain transaction
RSMONMAIL.
Hari Immadi
http://immadi.com
SEM BW Analyst -
Cost Center Master Data Issue for Hierarchy
Hi,
We are building a hierarchy on Cost Center and realized that the way Master data on Cost Center is stored in SPM it's getting concatenated with Controlling Area. So CC 1234 becomes 1234_010 where 010 is a controlling area.
While we understand a need to make CC unique across several controlling area, it's impacting Hierarchy. In Hierarchy we only upload CC and not CA.
Do you recommend to do concatenation of CC & CA for Hierarchy as well so that it matches with Master? Or is there any other recommended way to go ?
RegardsHi Rohit,
That was helpful. We will certainly take concatenation route.
However in Invoice Extract File we do get CC & CA separately in XARCOCTR & XSACOARR fields respectively.
When you say that this is concatenated even on Transaction Data are you talking about data AFTER it is loaded into SPM ? Also when data is sent out to DSE will it have CC & CA concatenated ?
Regards, -
Activating and using 0CUSTOMER Hierarchy extraction in R3
Dear Expert,
Could anybody explain me about Activating and using 0CUSTOMER Hierarchy extraction in R3 and then extract to BW systems from R3 in step by step?
Points will be assign granted
Regards
SanjivYou can load Hierarchies (sets) from R/3 in the same as other Master Data. Just you need to create Hierarchy DataSource using Tcode BW07. Where you have to give the name of the table and field on which you created Hierarchy iin R/3.
Also there are many standard avilable datasources also for hierarchy for which you can load Hierarchy Directly.
Here are the step by step procedures:
Hi,
If you are using standard infoobject and you want to load r3 hierachy you dont have to configure any additional thing in order to load it in BW.
The Steps are:
1)Activate the hierarcie datasource in R3
2)Replicate it in BW
3)Assign the datasource for an Infosource, and make sure you select the hierarchie datasource.
4)Active the Infosource
5)Create Infopackage
6)Select the desire hierachie in the infopackage(if you dont see it, click on Available Hierarchies from OLTP and select it)
Regards
Asigns point if useful please
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/3d/320e3d89195c59e10000000a114084/frameset.htm
Re: Hierarchies -
I have a situation, where i need to write expression Period to date(PTD). i want to know how to get the period date. i want you to help in writing Period date or else is there any function to get period date for a given date(the date is given
from the parameter dynamically) in MDX for SSRS report
ramHi ram,
Per my understanding that you want to get the period date based on the month selected and the given date, right?
Could you please provide details information below to help us better understanding your requirements, thus we will be more effective to provide an solution:
What is the format of the period date you want to get, is this date in the DB and you want to filter it based on the month and the given Date?
Did the month and given date are two parameters in the report? if possible, could you please provide some sample data in the DB and also the snapshot of the report structure
I assume you want to get the period date(mm/dd/yyy) between the select month(e.g:Feb) and the given date (10/1/2014) and you should get the date between(02/01/2014-10/1/2014).
If so,and you also have two parameter "Month","EndDate"(EndDate is the given date), please reference to details information below:
You can create an new parameter "BeginDate" (Date/Time) which is the begin date of the period, you can use the expression to get the value based on the value of the month and the year value from the given date,finally hide this parameter:
Specify the available value:
Label:=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value)
Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
Specify the default Value:
Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
Add filter to the dataset as below:
Preview you will get all the date in the given Period:
If you still have any problem, please feel free to ask.
Regards
Vicky Liu -
Creation of Variable for Hierarchy Node
Greetings...fellow matez,
I am using Characteristic "0PROFIT_CTR" : PROFIT CENTER
Here, I created used SAP <b>Standard</b> variable 0N_PCTR (Profit Center/Profit Center Hierarchy)
This meets my requirement of allowing User to Input the TOP MOST Hierarchy Node basically means my Hierarchy.
Now, what I need is the ability of a User Input/Key In Variable to ask for a specific Node of my Hierarchy instead of just the <b>'main'</b> hierarchy
Let me demonstrate with an example :-
At the moment, I have a variable defined for "0PROFIT_CTR". So, I am able to choose "XXX GROUP" as my hierarchy.
Now, under this "XXX Group" I have several Sub-Nodes like XXX-Functional Groups ; XXX-Business Units; XXX-Subsidaries.
How can I create a variable which prompts for this Subnodes of my hierarchy ?Matez,
Issue remains unresolved.
What I need is a <b>Hierarchy - NODE</b> variable for my "Profit and Loss" Hierarhy
But, when I use the variable option in the 'Selecting Variable for Hierarchy' scree, I only get to choose my Hierarchy instead of my Hierarchy Node.
How can I created a variable of type Hierarchy-NODE instead of Hierarchy for my characteristic "0Account"
Kindly advice matez! -
Steps for Data extraction from SAP r/3
Dear all,
I am New to SAP Bw.
I have done data extraction from Excel into SAP BW system.
that is like
Create info objects > info area> Catalog
--> Character catalog
--> Key catalog
Create info source
Upload data.
create info cube
I need similar steps for data extraction for SAP R/3
1. when data is in Ztables ( using Views/Infosets/Function etc)
2. When data is with Standard SAP using Business Content.
Thanks and Regards,
Gaurav Soodhi,
chk the links
Generic Extraction
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
CO-PA
http://help.sap.com/saphelp_46c/helpdata/en/7a/4c37ef4a0111d1894c0000e829fbbd/content.htm
CO-PC
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
iNVENTORY
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
Extractions in BI
https://www.sdn.sap.com/irj/sdn/wiki
LO Extraction:
/people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
/people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
/people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
/people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
Remya -
Code For Delta Extraction Using Function Module
Dear Experts,
I want a sample code for Delta Extraction using Function Module ( If it is customized already working code very helpful ), I have already created Function Module but Full update is happening. If I give delta update again it is retrieving all records. It is very urgent, if you have please send me to the following mail ID.
[email protected]
Best Regards,
SGK.Dear KJ,
Thank for your response. I saw the code that you sent, you have used some ztables like ZSC_DELTA_IP, ZSC_SAFETY_DELTA, ZSC_SET_EXT_TIME
What are the fields that you have created in these tables , what is use of these tables, can you send the fields that you have used in these tables.
Thanks & Regards,
SGK -
Need a sample program for hierarchial oops ALV report
Hello experts,
I Need a sample program for hierarchial oops ALV report.Hi,
Check the following sample code...
T A B L E S
tables : ekko.
data definition
types : begin of ty_ekko,
ebeln type ekko-ebeln,
lifnr type ekko-lifnr,
bsart type ekko-bsart,
aedat type ekko-aedat,
ernam type ekko-ernam,
end of ty_ekko.
types : begin of ty_eket,
ebeln type ekpo-ebeln,
ebelp type ekpo-ebelp,
werks type ekpo-werks,
matnr type ekpo-matnr,
menge type eket-menge,
wamng type eket-wamng,
netpr type ekpo-netpr,
end of ty_eket.
data : it_ekko type table of ty_ekko,
it_eket type table of ty_eket.
data: ob_hieralv type ref to cl_salv_hierseq_table.
data: it_binding type salv_t_hierseq_binding,
is_binding type salv_s_hierseq_binding.
S E L C T O P T I O N S
select-options : s_ebeln for ekko-ebeln.
S T A R T O F S E L E C T I O N
start-of-selection.
select ebeln
lifnr
bsart
aedat
ernam from ekko
into corresponding fields of table it_ekko
where ebeln in s_ebeln.
if sy-subrc eq 0.
select aebeln aebelp
awerks amatnr
bmenge bwamng
a~netpr from ekpo as a join eket as b
on amandt = bmandt
and aebeln = bebeln
and aebelp = bebelp
into corresponding fields of table it_eket
where a~ebeln in s_ebeln.
endif.
is_binding-master = 'EBELN'.
is_binding-slave = 'EBELN'.
append is_binding to it_binding.
*TRY.
call method cl_salv_hierseq_table=>factory
exporting
t_binding_level1_level2 = it_binding
importing
r_hierseq = ob_hieralv
changing
t_table_level1 = it_ekko
t_table_level2 = it_eket .
*CATCH cx_salv_data_error .
*CATCH cx_salv_not_found .
*ENDTRY.
call method ob_hieralv->display( ).
Cheers,
Ram -
How to create a New Tranport Request for changed Extract structure
How to create a New Tranport Request for changed Extract structure ?
Hi Experts,
I have a FI AP Generic Datasource containing extract structure with appended fields.
It has already been activated and transported to Testing System.
Now, I am to create a new transport request for this DataSource and Extract structure.
I do not want to delete and recreate the Generic Datasource.
I am trying to look at the options in the extract structure top menu from where I can create a new Tranport Request.
Please let me know the steps
URGENTHi Dev,
Once you send the transport request for any data source from Dev to Testing you wont find that again in your Dev (I mean the TR). So, when you change anything for this data source or view now in Dev and try to save it, it will ask for a new transport request and here you can mention a new one starting from View then activate it and go to RSO2 regenerate it and use the same transport request for this too. When you transport this TR to Testing Environment the data source will automatically get changed.
Hope it helps... -
Need help for writing extract program
hi
i need help for writing extract program to retriew data from legacy system.
i already developed bdc programs for me31k and me21.
my requirement is to write extract program s for those t.codes.
to retriew data from legacy system and stored in flat file.i need help with a java program. it is a program that allows the user to enter a student's GPA, number of extracurricular activities, and number of service activities. The user can not enter a gpa above 4.0 or below 0. The user can not enter a negative number for the number of both activities. If the student meets the following criteria: 1) GPA of 3.8 or above and at least one extracurricular activity and one service activity, 2) GPA below 3.8 but at least 3.4 and a total of at least three extracurricular and service activities, 3) GPA below 3.4 but at least 3.0 and at least two extracurricular activities and three service activities, the message "Scholarship candidate" should display. If the student does not meet the criteria above, then the message"not a candidate" should display. Can you help me, please?
You haven't posted ANY 'java program' for us to help with.
The forum is NOT a coding service. It is to help you with YOUR code.
Post the code you have written and SHOW us (don't just tell us) how you compile it and execute it and the results you get. Then we can help you with any problems you are are having.
If you need help understanding just what the program should be doing you need to ask your instructor to clarify the assignment.
Maybe you are looking for
-
Has anyone had issues with the most recent Yosemite update
I installed Yosemite October of 2014 mainly because I needed to update itunes to continue to help my daughter maintain her music files. Anyway the reason hardly matters. My computer and Yosemite did not get along. Posted up a file of my computer cond
-
Hi, Would you please explain the vendor invoice varification process? what is the step that need to flow? what are the validation required? Regards, Pankaj
-
Chnage log for classisication data of material
Hi All, From last two day's i have trapped with this problem. We have requirement where we have to send IDOC to our EDI partners for any change in material master data and calssification data of material. We will run a batch say every day which will
-
Hello, We are in the process of implementing EP in our company... We have uploaded salary slips and are checking whether it is working fine or not? One issue we are facing is when we click on the link of salary slip it opens up in different window an
-
Why won't Numbers update free, when my other iWork apps have update for free?
why won't Numbers update free, when my other iWork apps have update for free?