How to create a left join view in se11??
I would like to create a view which contains KNA1,KONA,KNVV,KNVH(four tables) , I want to use this view to create a search help for Tcode 'VBO3'.
but when I join table KNVH, there is no data in view, because there is no customer hierarchy, so I want to create a left join view. could you please tell me how to create a left join view? Thank you very much.
Hello,
yes, in general, maint. view and help view could be created as outer join view.
but it should obey relationship.
my fourt tables:
KONA -
> I want to get agreement number and type from this table
KNA1 -
>I want to get customer name, city, country from this table
KNVH -
>I want to get customer hierarchy from this table.
KNVV -
>I want to get customer group 1 from this table.
but in help view, I can only get relationship between KONA and KNA1.
I could not find the relationship for KNVH and KNVV.
if it's required to add a search help exit, then how to write the code in the function?
Could somebody please give me any solutions? thank you.
Similar Messages
-
How to create variant for table/view ?
Hi,
When I go through SM30, I find a radio button called variant. I don't know the effect.
Can anyone tell me how to create variant for table / view ?
I want to know when we need to create variant for table/view.
Best regards,
Chris Guhi ,
Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
Procedure
To create a new variant:
1. On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
2. On the variant maintenance initial screen, enter the name of the variant to be created.
Note the naming convention for variants (see below).
3. Choose Create.
If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
4. If there is more than one selection screen, select the screens for which you want to create the variant
5. Choose Continue.
The (first) selection screen for the report appears.
If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
6. Enter the desired selection values, including multiple selection and dynamic selection.
7. Choose Continue. -
How to create EVENTS for a View Cluster.
Hi Tech Gurus,
I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
Thanks in advance for your esteemed replies.
Regards,
Raghavendra Goutham P.Hello Pasapula
When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
report zus_0120_u1.
* Common Data und access routines for user exits in VC maintenance
include LSVCMCOD.
include zus_0120_f1. "FORM routines for VC events
Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
Regards
Uwe -
How to create list of a View's column names and source
Using SQL 2005, 2008, and 2012
How to create list of a View's column names and source. For the following example would like to @Print something like the following. Does anyone already have some code to do this? I realize there are probably some gotchas, but the views that I am looking
at to use this follows the code snippet pattern below.
DBACCT.[Account Number]
dbo.ConvertDate(DBACDT). [Boarding Date]
DBXES.DBXES
CREATE VIEW [dbo].[v_ods_DBAL]
AS
SELECT DBACCT AS [Account Number], dbo.ConvertDate(DBACDT) AS [Boarding Date], DBXES
FROM dbo.ods_DBALThe column information can be obtained from INFORMATION_SCHEMA.COLUMNS view using logic like below
SELECT c.COLUMN_NAME,c.DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS c
WHERE EXISTS (SELECT 1
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = c.TABLE_NAME
AND TABLE_TYPE='VIEW')
http://technet.microsoft.com/en-us/library/ms188348.aspx
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to create rtf template to view report in Word and Excel, with numeric f
Hi,
Please help me!
How to create rtf template to view report in Word and Excel, with numeric formatted fields (like this 999 999 999,99 with spaces between numbers) and then end user be able to process those fields with Excel tools (sum, etc).
Thank you.From what I have seen Excel can not handle 999 999 999.00. You can use 999999999.00 and then format it as you want in the xls bt you can not have values like 999 999 999.00 coming from publisher output and have functions on the values in Excel
Tim -
How to do a left join to create a timesheet status report in Power View
I am trying to create a very simple report in power view for Project Online. It's a timesheet status report that should show a list of resources, and the current status of their timesheet (in progress, not started, etc).
In Excel, I created an odata connection with Resources and Timesheets, and set up the connection between them. So, I can now easily display a list of timesheets, and filter them by end date. Good. But this only displays rows where there is an existing timesheet.
So resources who have not started a timesheet are not displayed. So, I need a "left join" in power view to display all resources, whether or not they have a timesheet for the period. (and, for the ones that do, I need to display fields from the timesheet,
such as the status description.)
Any suggestions?
Mike G.Hi Mike,
I'm not sure of what I'm suggesting since I got no instance to test it, but I'm wondering if the OLAP Cube "MSP_Project_Timesheet" wouldn't contain all resources of the enterprise pool with assignments (and not only resources that already submitted
a timesheet) since it is a combination of the assignment timephased, resource timephased and EPM timesheet cubes.
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS -
How to putXML on a joined View?
Hi
I would like to insert an XML document into two tables (some
elements into table 1 and some into table 2). I have created a
joined view of the two tables and have tried to insert into the
view with:
java OracleXML putXML -user %USER_PASSWORD% -filename myfile.xml
myView
But I get the error "cannot modify a column which maps to a non
key-preserved table". PLEASE GIVE A SPECIFIC EXAMPLE OF AN
UPDATABLE 'VIEW' WHERE AN INSERT CAN MODIFY MORE THAN ONE
UNDERLYING TABLE. Is it possible?
Any example will do. But here is what I tried to do. I tried
to map the first few ROW child elements of an XML document (shown
at the bottom) into columns of the EMP table and the remaining
child
elements into another table called RELATIVE (this is a table
containing next-of-kin contact information for each employee). I
created a RELATIVE table with:
CREATE TABLE RELATIVE (
IDREL NUMBER(15) PRIMARY KEY,
EMPNUM NUMBER(4) CONSTRAINT FK_REL REFERENCES SCOTT.EMP(EMPNO),
RNAME VARCHAR2(20) NOT NULL,
TEL NUMBER(14),
STREET VARCHAR2(30),
CITY VARCHAR2(20),
STATE VARCHAR2(10),
ZIP VARCHAR2(12),
COUNTRY VARCHAR2(20)
I added a EMPNO_DUP column to the EMP table that is a copy of
the
EMPNO primary key (I did this so as to use EMPNO_DUP for the two
table join, rather than the EMPNO primary key. My first attempts
to make the joined view with EMPNO also gave the same error). I
wrote a PL/SQL trigger than would make sure that EMPNO_DUP and
EMPNO remain in synch if EMPNO is updated or if there is an
INSERT on EMP. Then I created a joined view of EMP and RELATIVE
with:
CREATE OR REPLACE VIEW EMPREL
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO, EMPNO_DUP
IDREL, EMPNUM, RNAME, TEL, STREET, CITY, STATE, ZIP, COUNTRY)
AS SELECT
E.EMPNO, E.ENAME, E.JOB, E.MGR, E.HIREDATE, E.SAL, E.COMM,
E.DEPTNO,E.EMPNO_DUP,
R.IDREL, R.EMPNUM, R.RNAME, R.TEL, R.STREET, R.CITY, R.STATE,
R.ZIP, R.COUNTRY
FROM EMP E, RELATIVE R WHERE E.EMPNO_dup=R.EMPNUM;
I tried to insert the XML document shown at the bottom with:
java OracleXML putXML -user %USER_PASSWORD% -filename myfile.xml
myView
I also tried the direct SQL command:
INSERT INTO EMPREL
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO,EMPNO_DUP,
IDREL, EMPNUM, RNAME, TEL, STREET, CITY, STATE, ZIP, COUNTRY)
VALUES
(7944, 'WIZARD', 'CLERK', 7782, '25-JUL-82', 1325, 0, 10, 7944,
1, 7944, 'SUE', 4087200111, '200 MAIN ST.', 'PALO ALTO', 'CA',
'94043', 'USA')
Both attempts resulted in this error message:
"cannot modify a column which maps to a non key-preserved table"
I would really appreciate an example of how to create an
updatable view where two or more underlying tables can be
modified. Thanks.
Regards
Mehran Moshfeghi
Here is the sample XML file. I want the first set of elements to
map to EMP table columns and the second set of elements (after
the blank line) to map to the RELATIVE table columns.
<?xml version="1.0"?>
<ROWSET>
<ROW>
<EMPNO>7942</EMPNO>
<ENAME>GUNNEL</ENAME>
<JOB>CLERK</JOB>
<MGR>7782</MGR>
<HIREDATE>1982-02-25 00:00:00.0</HIREDATE>
<SAL>1350</SAL>
<DEPTNO>10</DEPTNO>
<EMPNO_DUP>7942</EMPNO_DUP>
<IDREL>2</IDREL>
<RNAME>SMITH</RNAME>
<TEL>6504262551</TEL>
<STREET>2171 LANDINGS DRIVE</STREET>
<CITY>MOUNTAIN VIEW</CITY>
<STATE>CA</STATE>
<ZIP>94043-0837</ZIP>
<COUNTRY>USA</COUNTRY>
</ROW>
</ROWSET>
nullHi Mehran,
This is a classic view update problem where the database cannot
figure out automatically which table(s) to update given a join
view. Any update/insert/delete cannot act on more than one
table.So if you are updating a column in a join-view, then that
column must map to a particular column of a single table
unambigously. You should look at the documentation on updatable
join views.
One of the easiest solutions to your problem is to create
INSTEAD-OF trigger on those views. INSTEAD-OF triggers are
triggers that can be created over non-updatable views to make
them updatable. Here in the trigger body you specify the
appropriate insert statements into the base tables. So your view
can be as complicated as possible and yet updatable using these
triggers.
Thx
oracle XML team
Mehran (guest) wrote:
: Hi
: I would like to insert an XML document into two tables (some
: elements into table 1 and some into table 2). I have created a
: joined view of the two tables and have tried to insert into
the
: view with:
: java OracleXML putXML -user %USER_PASSWORD% -filename
myfile.xml
: myView
: But I get the error "cannot modify a column which maps to a
non
: key-preserved table". PLEASE GIVE A SPECIFIC EXAMPLE OF AN
: UPDATABLE 'VIEW' WHERE AN INSERT CAN MODIFY MORE THAN ONE
: UNDERLYING TABLE. Is it possible?
: Any example will do. But here is what I tried to do. I tried
: to map the first few ROW child elements of an XML document
(shown
: at the bottom) into columns of the EMP table and the remaining
: child
: elements into another table called RELATIVE (this is a table
: containing next-of-kin contact information for each employee).
I
: created a RELATIVE table with:
: CREATE TABLE RELATIVE (
: IDREL NUMBER(15) PRIMARY KEY,
: EMPNUM NUMBER(4) CONSTRAINT FK_REL REFERENCES SCOTT.EMP
(EMPNO),
: RNAME VARCHAR2(20) NOT NULL,
: TEL NUMBER(14),
: STREET VARCHAR2(30),
: CITY VARCHAR2(20),
: STATE VARCHAR2(10),
: ZIP VARCHAR2(12),
: COUNTRY VARCHAR2(20)
: I added a EMPNO_DUP column to the EMP table that is a copy of
: the
: EMPNO primary key (I did this so as to use EMPNO_DUP for the
two
: table join, rather than the EMPNO primary key. My first
attempts
: to make the joined view with EMPNO also gave the same error).
I
: wrote a PL/SQL trigger than would make sure that EMPNO_DUP and
: EMPNO remain in synch if EMPNO is updated or if there is an
: INSERT on EMP. Then I created a joined view of EMP and
RELATIVE
: with:
: CREATE OR REPLACE VIEW EMPREL
: (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO, EMPNO_DUP
: IDREL, EMPNUM, RNAME, TEL, STREET, CITY, STATE, ZIP, COUNTRY)
: AS SELECT
: E.EMPNO, E.ENAME, E.JOB, E.MGR, E.HIREDATE, E.SAL, E.COMM,
: E.DEPTNO,E.EMPNO_DUP,
: R.IDREL, R.EMPNUM, R.RNAME, R.TEL, R.STREET, R.CITY, R.STATE,
: R.ZIP, R.COUNTRY
: FROM EMP E, RELATIVE R WHERE E.EMPNO_dup=R.EMPNUM;
: I tried to insert the XML document shown at the bottom with:
: java OracleXML putXML -user %USER_PASSWORD% -filename
myfile.xml
: myView
: I also tried the direct SQL command:
: INSERT INTO EMPREL
: (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO,EMPNO_DUP,
: IDREL, EMPNUM, RNAME, TEL, STREET, CITY, STATE, ZIP, COUNTRY)
: VALUES
: (7944, 'WIZARD', 'CLERK', 7782, '25-JUL-82', 1325, 0, 10, 7944,
: 1, 7944, 'SUE', 4087200111, '200 MAIN ST.', 'PALO
ALTO', 'CA',
: '94043', 'USA')
: Both attempts resulted in this error message:
: "cannot modify a column which maps to a non key-preserved
table"
: I would really appreciate an example of how to create an
: updatable view where two or more underlying tables can be
: modified. Thanks.
: Regards
: Mehran Moshfeghi
: Here is the sample XML file. I want the first set of elements
to
: map to EMP table columns and the second set of elements (after
: the blank line) to map to the RELATIVE table columns.
: <?xml version="1.0"?>
: <ROWSET>
: <ROW>
: <EMPNO>7942</EMPNO>
: <ENAME>GUNNEL</ENAME>
: <JOB>CLERK</JOB>
: <MGR>7782</MGR>
: <HIREDATE>1982-02-25 00:00:00.0</HIREDATE>
: <SAL>1350</SAL>
: <DEPTNO>10</DEPTNO>
: <EMPNO_DUP>7942</EMPNO_DUP>
: <IDREL>2</IDREL>
: <RNAME>SMITH</RNAME>
: <TEL>6504262551</TEL>
: <STREET>2171 LANDINGS DRIVE</STREET>
: <CITY>MOUNTAIN VIEW</CITY>
: <STATE>CA</STATE>
: <ZIP>94043-0837</ZIP>
: <COUNTRY>USA</COUNTRY>
: </ROW>
: </ROWSET>
Oracle Technology Network
http://technet.oracle.com
null -
How to create repository using a view in OBIEE
Hi,
Can any one explain the procedure how to create a repository using a view. For example
test_v
select a.col1,a.col2,b.col1,b.col4,c.col5,c.col6 from table a,table b, table c where a.col1= b.col1 and b.col1 = c.col1
1. Assuming that i have imported only one view.
Thanks and Regards,
Hanuman.Hi,
You can create the vie in the physical layer of your repository, select "Select" from the dropdwan box when you create a new table. Next add the columns. They must have the same names as in your view.
If you don't have any other tables in your repository, created an alias of your view and make a "dummy" join with the original view. Next create your BM and PL.
regards
John
http://obiee101.blogspot.com/ -
How to create links in table view
Hi
I am working in IC WebClient.
Can any body guide me how to create link on particular column of the table view and How can we navigate to another page by clicking on this link ?
I am filling the internal table (for table view) by z tables. I do not have context node for that.
Points will be rewarded.use Iterators. In the itarator you can create any BSP Object you wish to.
in the method RENDER_CELL_START of the interface IF_HTMLB_TABLEVIEW_ITERATOR
METHOD if_htmlb_tableview_iterator~render_cell_start.
DATA: lo_text TYPE REF TO cl_htmlb_textview,
lo_link TYPE REF TO cl_htmlb_link,
lv_link_click TYPE string,
lv_link TYPE string,
lv_dim TYPE string,
lv_pernr TYPE string.
FIELD-SYMBOLS: <dat> TYPE ANY.
lv_link = 'info.htm?pernr='.
lv_dim = 'left=300,top=220,width=620,height=200,menubar=0,scrollbars=yes,resizable=no'.
row_ref = p_row_data_ref.
CASE p_column_key.
WHEN 'PERNR'.
CREATE OBJECT lo_link.
lo_link->id = p_cell_id.
lo_link->text = get_column_value( p_column_key ).
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = lo_link->text
IMPORTING
output = lv_pernr.
CONCATENATE `window.open('` lv_link lv_pernr `' , '` lo_link->text `', '` lv_dim `');` INTO lv_link_click.
lo_link->text = lv_pernr.
lo_link->onclientclick = lv_link_click.
p_replacement_bee = lo_link.
WHEN OTHERS.
CREATE OBJECT lo_text.
lo_text->id = p_cell_id.
lo_text->wrapping = 'FALSE'.
lo_text->text = get_column_value( p_column_key ).
lo_text->design = 'STANDARD'.
p_replacement_bee = lo_text.
ENDCASE.
ENDMETHOD.
How to use Iterators.
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
Hope this helps.
Cheers
Amandeep
<i><b>Reward points for each helpful answer.</b></i> -
How can I add left join in the coding
I intend to dynamic add left jion in my java class.
so I write the coding like below:
incident_id = svc_yokyu_id(+)
(Both of them have been selected in the select sentence.)
However, when I run the app, it will throw a sql error.(ora-01416)
then I copy the error sql sentence and try to test it
QRSLT WHERE (incident_id = svc_yokyu_id(+))--this is a error sql sentence.
Finding that if I delete the left join,(+), the sql will run right,
or I modify the sql like
QRSLT WHERE incident_id in (Select svc_yokyu_id from xxfm_srl_sr_jc_relation xssjr where incident_id = xssjr.svc_yokyu_id(+)) , it run right as well.
according to bussiness requestion, I can't write the coding like above,
so, i don't know how to implement it.
and i hope to your advice. thxDoes a hand come out of the screen, grabbing you by the wrist, every time you try?
Just guessing…
Peter -
How to create a browser to view JPEG files?
Hi people,
just wondering if anyone knows how to create a simple browser to view JPEG or some other image files?...Is there e.g. or tutorial provided by Sun on this...
AGSure, the Java Tutorial duscusses working with ImageIcons in an applet (or application) here:
http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html
The IconDemoApplet example is just such an image browser. Cheers,
Chris -
How To do a LEFT JOIN in Oracle 8i
Hello
To explain my problem in a simple way: I have two tables, PROVA1 and PROVA2. Both have a primary key with two fields (CHIAVE1 amd CHIAVE2, numbers).
I have to search for all records in A but not in B. In Oracle 8 LEFT JOIN is not available and I do not Know how doing it.
I have read something about + operator, but I am not sure. What about:
Select * from PROVA1 P1, PROVA2 P2 where
(P1.CHIAVE1(+) = P2.CHIAVE1) and
(P1.CHIAVE2(+) = P2.CHIAVE2) and
(P2.CHIAVE1 IS NULL) and
(P2.CHIAVE2 IS NULL)
Thank you
Garetano RecchiGaetano, you're really close.
The (+) sign goes near to the table where the records can be missed. In your example near P2 columns.
Select *
from PROVA1 P1, PROVA2 P2
where P1.CHIAVE1 = P2.CHIAVE1(+)
and P1.CHIAVE2 = P2.CHIAVE2(+)
and P2.CHIAVE1 IS NULL
and P2.CHIAVE2 IS NULLYou can anyway use the minus operator
Select *
from PROVA1
where (chiave1,chiave2) in (select chiave1, chiave2 from prova1 minus select chiave1, chiave2 from prova2);If you want to download a free book (in italiano) for oracle beginners go to
My Oracle-related blog
Max -
Q#1:
I want to learn, how, with Photoshop and Illustrator to create a left to
right two-word-curved-headline gradient within the letters without having
to do each letter individually ???
Q#2:https://www.google.com/search?sourceid=chrome-psyapi2&rlz=1C1CHFX_enUS546US546&ion=1&espv= &ie=UTF-8&q=Onlint%20Photoshop…
-
I have created a xslt list view webpart but I does not have UI as SharePoint 2013 list view UI.
how I can have it.
Ahsan RanjhaHi Ahsan,
According to your description, my understanding is that the UI is different between XSLT web part and List View web part.
Per my knowledge, the List View web part is a kind of the XSLT list view web part which uses XSLT to display data on the page.
http://sharepoint-videos.com/list-view-and-data-view-web-parts/
How did you add the XSLT web part and the List View web part?
Could you please provide a screenshot of the two web parts?
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How to create types of materialized views
Hi
Can you please tell me how to create vaious types of materialized view.Also please tell me differences among them.Oracle docs at tahiti.oracle.com contain exactly the info you need as said previous poster. You can look into SQL reference about MV create statement that contains a brief overview of all types as well as data warehousing guide which contains at least 4 chapters that are about MVs - Basic MV, Advanced MV, Basic query rewrite and Advanced query rewrite.
Gints Plivna
http://www.gplivna.eu
Maybe you are looking for
-
I already have an Apple ID that works, but for some reason my iPod Touch logged me out of the mail app. I want to log back in, but when I try to log in, it says "this account has already been added". The app will only let me sign up for a new ID, but
-
How do I get my sound to work again?
My sound cut out on me. Everything was working really slowly and I had to restart a couple times and now everything is working at normal speed, yet my sound still doesn't work. Nothing will play out of the speakers or headphones, and when I press any
-
Flashing red Light on Photosmart D5160
I have a 3-4 year old Photosmart which know suddenly comes with flashing red light when i try to print. In the display it says ERR and there are two commas or something on the bottom right. It does not match any of the problems which i can find on hp
-
Oracle or Java Job please guide.
Hi friends, I have knowledge of both Oracle8 and Java. I live in India. I want a good job. I have started a group on Oracle and Java discussion. one can join that by : [EMAIL][email protected][EMAIL] . I would like to know which is better for career
-
Is there any unlimited plan available for BlackBerry Z10 from any mobile carriers in India
I looking for unlimited internet for my BlackBerry Z10, kindly anyone suggest me good plan for my Z10.