Create views for Workbook
Hello,
I need to create a workbook which has the same row and key figures but each tab should have different countries.
a. Should I create three different queries restricting each query to the country I need to display
or
b. Can I create different views out of the same query?
- If so, how can I create query views and insert them into my workbook.
Taking performance into consideration, which method is the best.
All feedback is appreciated with points:)
Thanks for your help.
Please send your comments
creating three different queries is a better option.
View is a navigational state of the query and when you do not need all the data, it makes no sense to get all the data from the infoprovider and then restrict it.
Similar Messages
-
How to create view for xmltype table in oracle
hi:
Can some one help me how to create view for xmltype table in oracle?
XMLType do not have column
SemThank you !!
I read it and become very hard to implement what I want to do.
Can you give me example please?
My main goal to create view for xmltype table is to XQuery the XML data?
Do you have any other suggestion?
Please help
Ali_2 -
To create View for the following req
Hi Gurus
Table view is to be generated for tables ZFUNCTION, ZPFUNCTION, and ZLOCATION.
Assignment of T Code to this table so that SSC team can update as and when there is change in business requirement.
Pls suggest me to create view for the above req and to assigning T code for the same.
Regards
SureshI seem to recall (don't have the docs handy) that there is a higher level
PDDest object and a PDAction object - you might want to look at using those
higher level objects (created via PDXXXFromCosObj) if you are having trouble
working with Cos.
Leonard -
Creating View for a table with parent child relation in table
I need help creating a view. It is on a base table which is a metadata table.It is usinf parent child relationship. There are four types of objects, Job, Workflow, Dataflow and ABAP dataflow. Job would be the root parent everytime. I have saved all the jobs
of the project in another table TABLE_JOB with column name JOB_NAME. Query should iteratively start from the job and search all the child nodes and then display all child with the job name. Attached are the images of base table data and expected view data
and also the excel sheet with data.Picture 1 is the sample data in base table. Picture 2 is data in the view.
Base Table
PARENT_OBJ
PAREBT_OBJ_TYPE
DESCEN_OBJ
DESCEN_OBJ_TYPE
JOB_A
JOB
WF_1
WORKFLOW
JOB_A
JOB
DF_1
DATAFLOW
WF_1
WORKFLOW
DF_2
DATAFLOW
DF_1
DATAFLOW
ADF_1
ADF
JOB_B
JOB
WF_2
WORKFLOW
JOB_B
JOB
WF_3
WORKFLOW
WF_2
WORKFLOW
DF_3
DATAFLOW
WF_3
WORKFLOW
DF_4
DATAFLOW
DF_4
DATAFLOW
ADF_2
ADF
View
Job_Name
Flow_Name
Flow_Type
Job_A
WF_1
WORKFLOW
Job_A
DF_1
DATAFLOW
Job_A
DF_2
DATAFLOW
Job_A
ADF_1
ADF
Job_B
WF_2
WORKFLOW
Job_B
WF_3
WORKFLOW
Job_B
DF_3
DATAFLOW
Job_B
DF_4
DATAFLOW
Job_B
ADF_2
ADF
I implemented the same in oracle using CONNECT_BY_ROOT and START WITH.
Regards,
MeghaI think what you need is recursive CTE
Consider your table below
create table basetable
(PARENT_OBJ varchar(10),
PAREBT_OBJ_TYPE varchar(10),
DESCEN_OBJ varchar(10),DESCEN_OBJ_TYPE varchar(10))
INSERT basetable(PARENT_OBJ,PAREBT_OBJ_TYPE,DESCEN_OBJ,DESCEN_OBJ_TYPE)
VALUES('JOB_A','JOB','WF_1','WORKFLOW'),
('JOB_A','JOB','DF_1','DATAFLOW'),
('WF_1','WORKFLOW','DF_2','DATAFLOW'),
('DF_1','DATAFLOW','ADF_1','ADF'),
('JOB_B','JOB','WF_2','WORKFLOW'),
('JOB_B','JOB','WF_3','WORKFLOW'),
('WF_2','WORKFLOW','DF_3','DATAFLOW'),
('WF_3','WORKFLOW','DF_4','DATAFLOW'),
('DF_4','DATAFLOW','ADF_2','ADF')
ie first create a UDF like below to get hierarchy recursively
CREATE FUNCTION GetHierarchy
@Object varchar(10)
RETURNS @RESULTS table
PARENT_OBJ varchar(10),
DESCEN_OBJ varchar(10),
DESCEN_OBJ_TYPE varchar(10)
AS
BEGIN
;With CTE
AS
SELECT PARENT_OBJ,DESCEN_OBJ,DESCEN_OBJ_TYPE
FROM basetable
WHERE PARENT_OBJ = @Object
UNION ALL
SELECT b.PARENT_OBJ,b.DESCEN_OBJ,b.DESCEN_OBJ_TYPE
FROM CTE c
JOIN basetable b
ON b.PARENT_OBJ = c.DESCEN_OBJ
INSERT @RESULTS
SELECT @Object,DESCEN_OBJ,DESCEN_OBJ_TYPE
FROM CTE
OPTION (MAXRECURSION 0)
RETURN
END
Then you can invoke it as below
SELECT * FROM dbo.GetHierarchy('JOB_A')
Now you need to use this for every parent obj (start obj) in view
for that create view as below
CREATE VIEW vw_Table
AS
SELECT f.*
FROM (SELECT DISTINCT PARENT_OBJ FROM basetable r
WHERE NOT EXISTS (SELECT 1
FROM basetable WHERE DESCEN_OBJ = r.PARENT_OBJ)
)b
CROSS APPLY dbo.GetHierarchy(b.PARENT_OBJ) f
GO
This will make sure it will give full hieraracy for each start object
Now just call view as below and see the output
SELECT * FROM vw_table
Output
PARENT_OBJ DESCEN_OBJ DESCEN_OBJ_TYPE
JOB_A WF_1 WORKFLOW
JOB_A DF_1 DATAFLOW
JOB_A ADF_1 ADF
JOB_A DF_2 DATAFLOW
JOB_B WF_2 WORKFLOW
JOB_B WF_3 WORKFLOW
JOB_B DF_4 DATAFLOW
JOB_B ADF_2 ADF
JOB_B DF_3 DATAFLOW
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Creating View for an extractor with reference field
Hi All,
Here is my requirement.
I need to create a DB view for an extractor. I need to join 3 tables : AUFK,AFIK & AFKO.
Table Join Conditions:
AUFK MANDT = AFIH MANDT
AUFK MANDT = AFKO MANDT
AUFK AUFNR = AFIH AUFNR
AUFK AUFNR = AFKO AUFNR
This AUFK table has a Z field ZZACCOMPLISH(QUAN field) and it it referning to MARA-MEINS.
I created view successfully with all fileds including ZZACCOMPLISH.
But when i give the view name in RSO2, i am getting an error message that 'ZZACCOMPLISH' is refering to some other table.
In this case i don't know how to include MEINS in ths view and There is no link between table AUFK and MARA.
Please guide me on this.
Regards,
AshokCould you please share how this was resolved?
I currently have the same requirement/issue.
Many Thanks, -
Hi guys, I just created a View using VBRP table in R# for (Billing item) documents.I selected 9 fields from this table in an extract structure. Now i am trying to create DS using RSO2, when i chose view and try to enter the name of database View name , it does not recognize it.It says invalid extract structure templete for DS. whats this message? should i create master data DS or transactional DS?
I am trying to perform a simple loading process to the cube in bw. Could anyone suggest me what are my next steps. AFter replicating DS , how should i go about creating cube, i want to create a customize cube.Whats the best way to create all infoobjects( fields in the extract structure) in the cube?
I am trying to simply extract some data ( no specific requirement) from R3 table for SD component, and load it to the new Cube, and use BEx for reporting.Again, all these are for self practicing purpose.
I am really confused , i have been reading lot of theoritical part, but when i try to see how it really works , i never have completed full load or extraction process.
I would appreciate it if anyone could guide me here, I am using BI7. What table should i chose for this ,it could be from any Component, SD,MM etc. Whats the best way to proceed?
I know all basic stuffs ..like..if using generic DS, create view, create DS using RSO2 and replicate to bw etc.
i would really apprciate it if any one walk me thru or suggest me what should i try first. i ll assign points also.thanks
dkHi,
A few more pointers
Creating generic datasource
Error when creating generic datasrc
Errors in Generic Datasource
Generic Data Source Creation Problem....URGENT!!!!!!!!!!!!!
Reg GENERIC DATASOURCE
Generic DataSource Problem
Generic extraction
Hope this helps.
Thanks,
JituK -
Creating views for users by entering a field
Hi I want to create a veiw for a new user.
I want the user to view details for a member after he has entered a Membership No
create view member_details
(&memberno, name, address)as
select memberno, name, address
from member
where memberno = &memberno;
when i use this command it asks me for a memberno, I enter one so when the user logs in and
select * from reilly.member_details;
all he gets is the info for the memberno I have entered
how do I fix this so the user is the one entering the membernoIf your admin staff need to access details for any member, can't they just query a view of all members and specify a memberno then?
View (presumably more complex than this in reality) would be
create view member_details
(memberno, name, address) as
select memberno, name, address
from members;Admin user query would be:
select * from member_details
where memberno = &memberno;Is SQL*Plus really the interface you provide your admin users with? -
Creating views,iviews,Workbook
HI
how to create views,iviews and workbook?can u explain me step by step??
Thanks & Regards
Senthilhttp://help.sap.com/saphelp_nw04/helpdata/en/33/746e393cf65c1ae10000000a114084/frameset.htm
-
Creating view for DataSource from table containing Structures.
Hello All,
I need to make a datasource for HR PY master data from a table PA9004(its special for a HR infotype) which needs some fields like PFOBEE(PF-Opening Balance-Ee).
Field(PFOBEE) is part of a structure(PS0008) which is included in the table PA9004.I tried where-used list for this structure in programs,FuncModules,Tables but got no result of any transparent table.
To form my Datasource I tried creating the Database view, which had inconsistencies. I tried using the table PA9004, which said "This operation failed, because the template structure quantity fields or currency fields, for example, field PFOBEE refer to a different table."
Also Projection view cant be used for generic datasources.
Even Create Infostructure(MC21) does not work for HR: PY-IO.
All suggestions welcome.Mail me at [email protected]Hello All,
I solved this problem by forming my generic datasource(TCode RSO2) on a Infoset which had the table pa9004. There were some warnings regarding the use of the development class, but finally I had the datasource ready.
I checked the datasource is working using the RSA3 TCode and the DS is perfectly extracting the data. I replicated this DS in BW server and it appears exactly where I wanted.
Some colleages had suggested writing a functional module to extract the data, which must be right but I have not tried this option yet.
Experts may please review my solution and offer tips. I am willing to offer points to anyone offering a more elegant solution. -
Create view for Global Temporary Table
if view is create for global temporary table so exactly how it works which helps regarding application performance.
Regaards,
Sambit RayA view is just a stored query. It can be on global temporary tables or regular one, makes no difference.
-
Creating view for exchange alerts only
how do I give access to another group to view or modify alerts for the exchange servers alerts? Should this be done on the web view or the scom console?
Rather than building another view, just create a new operator role (Exchange Ops - or whatever name you want to call it), scope it to the Exchange Views, and add their security group to that role. Now they can log in to the console and they will be
presented with ALL the alerts contained within the Exchange View. If you have multiple versions of Exchange, scope them to all of them.
Now, if these Exchange ops people want to see ALL alerts on an Exchange server, then you would have to author a custom MP containing an instance group of windows.server/computer classes, create a view which would display all alerts for that instance group,
then scope them to that particular custom view which would reside in your newly created custom MP.
Otherwise, if they just want Exchange related items, then scope them to the views and don't bother creating more. That's my take on the situation, but the other suggestions work as well. Just depends on what they want to see and how much work
you want to make for yourself. Explain to them, that if they are scoped to a specific MP view (Windows, IIS, etc) then they are going to mostly see alerts pertaining to those applications. If you are monitoring hardware or clusters, and there are
issues with hardware or clusters, then they may not see it in the Exchange alert view because of how the targeting is set up and presented.
Regards, Blake Email: mengotto<at>hotmail.com Blog: http://discussitnow.wordpress.com/ If my response was helpful, please mark it as so, if it answered your question, then please also mark it accordingly. Thank you. -
Create view for Material using BAPI_MATERIAL_SAVEDATA
Hello. I need create Accounting View(1&2) and Costing View(1&2) using FM BAPI_MATERIAL_SAVEDATA, but i don't now who importing values are required for this...
please HELP!!!!Hi,
Check this link.
http://sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm
Thanks,
Anitha -
How to create index for a column of a view
Hi,
I have created view for a table and then i am trying to create index for a column of that view. i am using the query "CREATE INDEX index_name ON view_name (col)". but Mysql is showing error like "view_name is not a base table".
How can i do that......As mentioned this is a java forum not a mysql forum, but as I know the answer - you can't create an index directly on a view in mysql.
-
Swith between query views in workbook
Hi,
Is there a way to switch between two or more query views in a workbook.
I'm in 7.0 analyser.
Thanks in advance.
Prakash CHi,
Thanks for your reply.
I will explain the issue again so please tell me the process we are following is correct or not?
Last month we created views for two queries and attched them in the workbook, the variable values which we have given at that time were month = 01 year 2010.
This month when we try to access the workbooks we are getting 0 records in the views of the workbook.
now my doubt is:
If we create views for variable values month jan and year 2010, will they show output when we change the variable values to Feb, 2010?
or
Do we have to create new views every month and attach them to the existing workbook manually?
PLease revert.
Thanks
SC -
Query Views in Workbook are not getting refreshed
HI Folks,
Query views atatched in workbook are not showing any data when we move from previous month to current month. So we are creating views for current month and attaching them to workbook manually at this moment.
Please advise what needs to be done to make the views get refreshed automatically according to the variable values we select.
Regards,
SCHi,
Thanks for your reply.
I will explain the issue again so please tell me the process we are following is correct or not?
Last month we created views for two queries and attched them in the workbook, the variable values which we have given at that time were month = 01 year 2010.
This month when we try to access the workbooks we are getting 0 records in the views of the workbook.
now my doubt is:
If we create views for variable values month jan and year 2010, will they show output when we change the variable values to Feb, 2010?
or
Do we have to create new views every month and attach them to the existing workbook manually?
PLease revert.
Thanks
SC
Maybe you are looking for
-
HOW MANY HOURS DID YOU CHARGE YOUR iPHONE FOR THE 1ST TIME OUT OF THE BOX?
As the title says. And how soon does the battery start to finish when watching YouTube after a FULL CHARGE? I can watch abt 3 or 4 videos (between 2 to 10 mins long each) + searching youtube for a minute or two before I notice the FULL BATTERY starts
-
Hey Everyone! I want to learn how to create a video in iMovie. My goal is to be able to take many vidoes and place them into one. I would also like to delete scenes and and add transitions. I am also hoping to add music to the video I create. Plea
-
My audio says that is working but it is not, how would i fix that?
I'm not good with computers
-
Dynamic Internal table using another internal table values
Hello All, I have an internal table ITAB1, which will get populated inside the program. This ITAB1 will have only one field. I want to create an internal table dynamically with the values of ITAB1( single field internal table ) as fields. Thanks in a
-
Moving iphoto's mobileme and facebook galley into Aperture 3
In iPhoto I have a lot of mobileme and facebook gallery that I update frequently. I'd like to use Aperture3 also for this, but I'm unable to import these galleries. I migrated all iphoto's library into Aperture, but on the left of Aperture mobileme a