Data src creation using DB view
Hi all
I am trying to create a DB view for tables VBAK,VBAP and VBRP..keeping VBELN as the common field..when i activate the view taz getting activated but when i try to create a data src for that view it is not creating the extract structure..actually i am taking quantity fields like KWMENG and FKMIG..so when i try to activate the data src for this view it is throwing an error saying that qty fields KWMENG and FKIMG refer to another fields..so how should i go abt this...
Actually i created an infoset also for these tables and its working fine in quality and picking the data but when i moved it in to production and try to access that datasrc its getting hung and atlast getting timed out...even though i gave the filter criteria just for a day also it is not able to pick up data..
Can you guys suggest me the best way to combine these three tables..the business content data src dont have the those qty field require..
please help me out..thanks in advance..
Rgds
Shilpa
Shilpa,
Why cant you use standard business content datasources to pull data into BW from R/3.
2LIS_11_VAHDR - Sales Order Header(VBAK)
2LIS_11_VAITM - Sales Order Item(VBAP)
2LIS_13_VDITM - Billing Doc Item(VBRP).
Try to pull these data into 3 ODS in BW and merge. These datasouces has delta capability and easy to maintain then a generic datasource.
To create datasource on view:
As your view has reference fields for Qty and Values you need to provide reference fields in view.
SE11 --> View(change) --> goto currency / Quantity fields and provide reference and activate view.
Try to create datasource now. It works.
But for performance infoset and view both are same. due huge no of records... no gurantee for performance. I suggest use standard datasources and merge data at BW side not at R/3 side.
Hope it Helps
Srini
Similar Messages
-
How to maintain data in tables using maintenace view of the tables in ECC6
Hi,
I have two table SBUSPART (Business partner) and STRAVELAG (Travel agency).
SBUSPART is foreign key table while STRAVELAGE is a reference table. The relationships is :
SBUSPART-MANDANT = STRAVELAGE-CLIENT
SBUSPART-BUSPARTNUM = STRAVELAGE-AGENCYNUM
now, I create a maintenance view ZVI_HT_PARTNER in which SBUSPART is primary table and STRAVELAGE is secondary table. I have also created maintenace interfaces by generating maintenance modules in function group zht_fg. Authorization group is SUNI and maintenance type is one-step, the number maintenace screen is 100.
Now I want to maintain the data in tables SBUSPART and STRAVELAGE together in the maintenace view. If i want to enter a new partner dirctly I have to enter it in table SBUSPART first, only then could I enter the corresponding data in STRAVELAGE.
in older version I easyly do this by the way: in maintenace screen of zvi_ht_partner ( in se11) I choose: system/ services/table maintenace/Enhance.Tab.maintain.
but in ECC6 when I choose: system/ services/table maintenace, there is no Enhance.Tab.maintain instead there are two options Extended table maintenace and View cluster maintenace.
So in this case I don't know how to tackle this problem, Please help me if you have a solution.
Thanks,Hi,
I suppose 'Extended table maintenace ' would be same as 'Enhance.Tab.maintain'.
Regards,
Himanshu -
How to obtain date of creation if image is obtained using getImage()
When Image is obtained using getImage() method , how to
obtain date of creation or another header value if image is
obtained using getImage method.Actually, some formats do indeed have creation or modification dates built in. e.g. http://www.w3.org/TR/PNG-Chunks.html#C.tIME. (Of course since most programs save a new copy of the file every time, the two dates are the same.) However, just because formats have this data doesn't mean it's reliable or even present. Your best bet is to pass creation dates in an Applet param tag for applets (assuming you were referring to Applet.getImage()) or to parse out a filename from a classloader URL and use a File object to check (assuming you were instead referring to Toolkit.getImage(URL)). That's the best answer I have without knowing more about what you are trying to accomplish.
-
Insert data into multiple entities at once using a view object
Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)?Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)? Peter:
This is definitely supported and tested. Please send us the exception stack trace. You must running into other problems. A few things to note:
A) You have to mark the entities as both updateable (not read-only) and not reference-only.
B) If you're not seeing an exception stack, turn on diagnostic. Here is how:
To turn on diagnostic, go to the IDE,
1. Select the project.
2. Do right mouse click and select "Project Settings..."
3. On the Settings dialog, select Configurations/Runner.
4. In the righthand side pane, you should see a textbox for "Java
Options". Please add the following JVM switch:
-Djbo.debugoutput=console
Then, rerun. The run command should include
-Djbo.debugoutput=console as in
"D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
You should now see a lot more output on the IDE's message window. Here you should see the exception stack trace.
If you invoking your app directly from command prompt, just add "-Djbo.debugoutput=console" after your "java.exe".
Thanks.
Sung -
Using a view-object as a data web bean?
Hi,
When writing JSP pages, I'd like to have a web bean that allows basic data manipulation such as:
- set up a row set - e.g. by specifying a view object and an (optional) where clause;
- navigate this row set (first, next, etc.);
- get or set the values of the attributes of the current row;
- insert, update or delete a row;
- commit or rollback the modifications;
- etc.
This bean should be "silent" - i.e. it would not have to be able to "render" anything - instead, I would use it in <%= bean.method() %> tags, or in <% ...java code... %> sections, in conjunction with other (custom) beans.
I guess I could use a view object - but:
1) How would I have to use it in a JSP context?
2) Or, are there more appropriate objects to do this job?
3) What methods could I use (i.e. where are they documented)?
4) What pitfalls should I be aware of (most notably related to housekeeping after bean use)?
Any information greatly appreciated!
Thanks in advance,
SergeHi,
When writing JSP pages, I'd like to have a web bean that allows basic data manipulation such as:
- set up a row set - e.g. by specifying a view object and an (optional) where clause;
- navigate this row set (first, next, etc.);
- get or set the values of the attributes of the current row;
- insert, update or delete a row;
- commit or rollback the modifications;
- etc.
This bean should be "silent" - i.e. it would not have to be able to "render" anything - instead, I would use it in <%= bean.method() %> tags, or in <% ...java code... %> sections, in conjunction with other (custom) beans.
I guess I could use a view object - but:
1) How would I have to use it in a JSP context?
2) Or, are there more appropriate objects to do this job?
3) What methods could I use (i.e. where are they documented)?
4) What pitfalls should I be aware of (most notably related to housekeeping after bean use)?
Any information greatly appreciated!
Thanks in advance,
Serge -
Error entering data in a data form using Smart View
One of my user is facing an issue while entering data in a data form through Excel, if she uses the same data form in workspace she is able to enter data. She is facing the issue while entering in a specific column, for all other columns she is able to enter data in the data form. It is only one column for which she is facing issue while using smart view/excel and not workspace, as in workspace she is able to enter data.
Thanks,Hi
Check they have the "Data Form Write Back from Excel" role in Shared Services.
See p.133 of the security guide for more info -
http://docs.oracle.com/cd/E17236_01/epm.1112/hss_admin_1112200.pdf
Regards
jpr -
Unable to select Quantitative data during creation of MIC while using Clas
*Unable to select Quantitative data during creation of MIC while using Class characterstics*
Dear All,
I want to transfer MIC Result recording to Batch class.
For that, i am trying to create MIC & giving class characteristic name in QS21, and then under control data, I am unable to select, Quantitative. By default system is selecting Qualitative. But I want to create that MIC as Quantitative.
Is there any setting for this?
Please help...
Thanks in advance
Edited by: Sitarami Reddy Kummeta on Nov 30, 2009 6:44 PMHi
to have master inspection characteristic quantitative ,the class characteristic must be of format "NUM":
Regards
Sujit -
Upload data for Tcode LT06(Transfer order creation) using BDC -very urgent
hi experts,
I got stucked up in writing a BDC for the Tcode LT06(Transfer order creation using wearhouse number) in MM module,
the problem is like this, when i go to the tcode LT06 , it will ask for material doucument,mat. docu. year and wearhouse number, iam entering the inputs and then press enter, as soon as i press enter it takes me to the second screen where i will be selecting the item and then click on the button called 'Generate TO item'
here the problem arises, as soon as i click the button iam getting a standard SAP error message(No Destination Storage Bin found in storage type 'IMP'). Due to this errror iam not able populate the batch input data on the screen, suggest me a proper solution. rewards will given if solution found useful.
Kishore KHi ,
I have done the same in Background with BDC and TR Number for Multiple Materials ,
Can u please explain the scenario, so then I would be able to try for solution ?
Warm Regards. -
Data Replication Between Sqlserver and Oracle11g using materialized view.
I have Sqlserver 2005 as my source and oracle11g as my target.I need to populate the target daily with change data from source.
for that we have created a dblink between sqlserver and oracle and replicated that table as a Materialized view in Oracle.
problem we are getting here is Fast refresh option is not available.each day it will pick full data from the source.
is there any way to use Fast refresh in this scenario??
Thanks in advance.
Regards,
Balaram.Pl do not post duplicates - Data Replication Between Sqlserver and Oracle11g using materialized view.
-
Used Migration Assistant to successfully transfer PC files to Mini. However file creation or modified date does not transfer. Date of creation is listed as day of transfer. I would gratefully appreciate any help in solving this?
I have the same problem; used Migration Assistant to transfer all my pix from PC to MacbookPro, however dates of pix were not transferred. Date created as the date of transfer. Cannot sort my pix according to date.
Anybody has an answer? -
Data Modeling for controls using XML views(SAPUI5)
Hello ,
I am trying to create Table control using XML view and binding data to it through controller onInit method.
XML View Code is as follows :
<core:View xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:core="sap.ui.core">
<l:VerticalLayout width="100%">
<l:content>
<Text id="description" class="marginAll" />
<Table id="idProductsTable" items="{
path:'/businessData'
}">
<headerToolbar>
<Toolbar>
<Label text="Products"></Label>
</Toolbar>
</headerToolbar>
<columns>
<Column>
<Label text="Product" />
</Column>
<Column>
<Label text="Supplier" />
</Column>
<Column>
<Label text="Dimensions" />
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier title="{COUNTRY}" text="{COUNTRY}" />
</cells>
<Text text="{REGION}"></Text>
<Text text="{CITY}"></Text>
</ColumnListItem>
</items>
</Table>
</l:content>
</l:VerticalLayout>
</core:View>
Controller onInit method Code is as follows :
var oData = {
businessData : [ {
'COUNTRY' : "Canada",
'CITY' : "Toronto",
'REGION' : "US",
'LANGUAGE' : "English"
'COUNTRY' : "China",
'CITY' : "Bejeing",
'REGION' : "Ashia",
'LANGUAGE' : "Chinese"
var demoJSONModel = new sap.ui.model.json.JSONModel();
demoJSONModel.setData(oData);
sap.ui.getCore().getElementById("idProductsTable").setModel(
demoJSONModel);
Same thing when i tried with JS views , it worked however through XML view , I am getting empty table.
Is the data modeling correct for XML views?
Thanks,
Mahesh.I've got it ! The reason for that is you bind items as below,
<Table id="idProductsTable" items="{
path:'/businessData'
}">
This pattern is followed if you wanna add a formatter/sorter/grouping.
As you don't do any of those you can bind items as below & it doesn't require data-sap-ui-xx-bindingSyntax="complex".
<Table id="idProductsTable" items="{/businessData}"> -
Info-Object Master Data is not populated using Attribute View
Hi Colleagues,
I have one info-Object 'Resource', compounded with client, resource type and scenario.
I want to fill its master data using an attribute view. In Master data tab, i have mentioned the package and attibute view (SAP HANA MODEL).
Assigned all the attributes to respective fields in attribute view.
I can see data using the 'Data Preview' in my attribute view.
Two issues --
1. Maintain master data option is disabled in the context menu of 'Resource' Info-Object.
2. Also the data available in attribute view is not populating in master data of info-Object ( I tried seeing by creating a report).
Please suggest what is wrong here.
Thanks in advance.
Regards,
RohitHi,
When you are loading data from DSO to IO, seems like some filtering is happening. Just check the active table of DSO and make sure that you have all the 59 records available.
Another important thing is check the primary key of your master data i.e. if there is any compounding attribute if not then records from DSO might be getting overwritten in the master data. i.e. only 6 unique records.
Regards,
Durgesh. -
Create default sales area data on BP creation using BUPA_GENERAL_UPDATE
Dear all!
We have the following requirement: whenever a user creates an organization in WCUI, we need to create some default data for the BP in the background, such as relationships (employee responsible, etc) and sales area data.
I have created an implementation for BADI BUPA_GENERAL_UPDATE and use it to add the desired data. For relationships, this is working just great, but I´m having trouble with the adding of sales area data, since the system is not properly saving the data. I use the following code:
* Assign data for sales area
MOVE: 'O 50000632' TO ls_sales_area-sales_organization,
'01' TO ls_sales_area-distribution_channel,
'01' TO ls_sales_area-division.
ls_data-customer_group1 = '330'.
ls_data-customer_group2 = '003'.
ls_data-customer_group3 = '002'.
ls_data-customer_group4 = '006'.
ls_data-customer_group5 = '021'.
ls_data-pay_guar_proc = '0001'.
CALL FUNCTION 'CRM_BUPA_FRG0010_ADD'
EXPORTING
iv_partner_guid = ls_changed_instances
is_sales_area = ls_sales_area
is_data = ls_data
iv_x_save = ' '
IMPORTING
et_return = lt_return
ev_error = lv_error.
CALL FUNCTION 'CRM_BUPA_FRG0010_SAVE_COMMIT'.
Problem is, that with the call of
CALL FUNCTION 'CRM_BUPA_FRG0010_SAVE_COMMIT'.
I get a short dump of type "SYSTEM_ON_COMMIT_INTERRUPTED", but without the call, the sales area data is not saved. I tried the same code in a Z-report (not in a BADI) and it worked just fine.
Any ideas on how to commit the data so the sales areas will be saved? Helpful answers will be rewarded!!
Thank you all & Kind regards
ChristophHi Pratyasha!
Thanks for your reply. I figured, that by explicitly calling the commit FM, system commit procedures are interrupted.
The thing is, that just by calling the FM for adding the sales areas does not result in those sales areas acutally created. What I mean is, that after the BAdI is executed, no sales areas are maintained for the newly created customer. All the more funny, since this exact same procedure is working for creating relationships. See following code:
READ TABLE it_changed_instances INTO ls_changed_instances INDEX 1.
* Get BP-Number for sy-user
CALL FUNCTION 'CRM_ISA_IUSER_GET_BP_TO_ALIAS'
EXPORTING
username = sy-uname
IMPORTING
business_partner = lv_user_partner.
* Map GUID to partner number
CALL FUNCTION 'BUPA_NUMBERS_GET'
EXPORTING
iv_partner_guid = ls_changed_instances
IMPORTING
ev_partner = lv_partner
TABLES
et_return = lt_return.
CLEAR lt_return.
* Create employee responsible
CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'
EXPORTING
iv_partner_1_guid = ls_changed_instances
iv_partner_2 = lv_user_partner
iv_relationship = 'BUR011'
iv_date_from = sy-datlo
iv_date_to = '99991231'
iv_testrun = ' '
iv_x_save = ' '
iv_xdfrel = 'X'
TABLES
et_return = lt_return.
which is in the same BAdI and acutally results in this relationship beeing created for my newly created customer. Works fine, just not for sales areas.
I´ll be grateful for any comments on that issue!
Kind regards
Christoph -
Data Source Creation in R/3
Hi all.
I need to extract the data from multiple tables from R/3. For that I am creating a datasource using RSO2. In this scenario do I need choose extraction from view ( IN rso2)& create a view combining these tables & use this in data source creation? Pls let me know the procedure. Could you pls also let me know when to use the option EXTRACTION BY FM (IN rso2)
Thanks in advance.
Kind Regrads,
sami.Hi,
Creation of DataSource
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Regards,
Sachinkumar -
Using SQL view object to create ADF table
Hi,
I have created a column called "Month" (which extracts month from the date column) and another column to count the no. of requests.
i want to create an ADF table with 2 columns, a column showing the month and another is showing the no. of requests for that month.
However, now I only managed to achieve the ADF table to show the overall total requests, which means if i add up all the requests for all the months and i get 500
My ADF table shows this:
Jan: 500
Feb: 500
Mar: 500
How should I create the view or what should I do to make it such that the no. of request is based on the month?
Please advice.
Thanks (:Hi,
For the given situation you can create a Query Based View Object with the following query
SELECT
COUNT(TEMP1.DT) REQUEST,
TO_CHAR(TEMP1.DT, 'Mon') MONTH
FROM
TEMP1
GROUP BY
TO_CHAR(TEMP1.DT, 'Mon')
where DT is the date column and temp1 is the name of the database table.
Following are the steps that i followed to get this query :
i have taken the following sample table :
create table temp1
(srno number primary key,
dt date)
*Note you may use any existing column instead of srno or use dt only (i took an extra column as u know we need a primary key /row id)
the following is the sample data
insert into temp1 values (1,sysdate);
insert into temp1 values (2,sysdate);
insert into temp1 values (3,add_months(sysdate,1));
insert into temp1 values (4,add_months(sysdate,1));
insert into temp1 values (5,add_months(sysdate,3));
insert into temp1 values (6,add_months(sysdate,5));
the table appears as follows
SRNO DT
1 22-JUN-12
2 22-JUN-12
3 22-JUL-12
4 22-JUL-12
5 22-SEP-12
6 22-NOV-12
To start with ADF View Object Creation (Using Jdeveloper 11.1.2):
Create the view object using Create View Object wizard
In Step 1. Name window
set the value for Name : Viewab (you can use any of ur choice)
In the data source section : select query
In Step 2. Query window
a. Click Query builder (it will pop up sql statment window)
b. In the SQL Statement window
in quick-pick objects section -> select temp1 table -> shuttle the columns from available list to selected list
in select clause section -> select srno column from select list-> choose count() function from function drop down list -> insert function -> set alias to REQUEST-> click validate
now select dt column from select list -> choose to_char() function -> click insert function -> alter the function to to_Char(temp1.DT,'Mon') -> set alias to Month -> click validate
in the group by clause section -> Click the green symbol to add -> from the expression palette insert dt column -> insert the to_char function -> alter the function to to_char(temp1.DT,'Mon') -> click validate
in the Entire SQL Query section -> click test query -> in the test query window -> click query result-> you will see the result -> click close -> click ok
Click next
Step 3: Bind Variables
Click Next
Step 4: Attribute Mappings
click Finish
So the view object is ready :)
Maybe you are looking for
-
How to Print Post Script Files
Hi All, I am trying to make a utility software in foxpro that could print post script file on:- 1) Post script printer 2) Non Post Script printer Operating System Windows 95 & above Help is requested from all the community members Reagards Harsh
-
Hey! I'm having problems with my DL380 G4 server. After updating the bios and the firmware, and installing a second CPU the computer screen shows nothing but black when i start the server. If i remove the second CPU i get a picture. Why is this? Any
-
Hii all........ can anyone tellme that how i can create a jar file for a java project...and if created whatis the benefit for us............. thanx in advance..............
-
Call was terminated because the corresponding service is not available
Hi experts, I've installed SAP NetWeaver 7.01 SR1 ABAP Trial Version. I'm following instructions given and the next step is to log into the system via web gui with this url: http://localhost:8000/sap/bc/gui/sap/its/webgui?sap-client=000. However I'm
-
Keynote3 Crashes when opening .ppt file
I have just moved to mactel and have found the above-mentioned problem when attempting to open/import any ppt file. The error report I get is as follows...Thanks a million for any insight into this... Date/Time: 2006-02-28 16:57:23.000 -0600 OS Versi