How to write CMP on Database VIEWs
Hi
In my application i have database views.
i want to write a CMP bean for each VIEW.
is it possible To write a CMP Bean on VIEWs.
if possible Pl let me know and send some code too.
thank u
There should be no problem writing CMPs over views as long as the views are updateable. As for an example, you
might want to try the examples on OTN using a view over the correspodning tables.
Thanks -- Jeff
Similar Messages
-
How to retrive data from database views or projection views
how to retrive data from database views or projection views
Hi chintam,
1. Very simple
2. Just like normal select statement.
3. Select * from VIEWNAME.
4. (Instead of the tablename, we just have to give the viewname)
regards,
amit m. -
How to select value from database view with * in wher clause
Hi ,
I ahve a database view with some fields.
Now my requirement is to serach a single row on the basis of process type.
Process type can have values like ZBA,ZBC,ZBD,ZBE or similarly anything starting with ZB.
Now i know that starting two letters will be ZB , but dont knwo the last letter.
So how should i use select query for the same?
Should i use like operator for the same?
regards
PGhi,
u can use character '%'.sample code like this
SELECT reltype
instid_a
catid_a
instid_b
FROM /dbm/ord_docflow
INTO TABLE it_link
FOR ALL ENTRIES IN it_pnwtyh
WHERE instid_a = it_pnwtyh-instid_a AND
instid_b LIKE 'QMSM%' AND
typeid_a = 'BUS2400' AND
typeid_b = 'BUS2400' AND
catid_a = 'BO' AND
catid_b = 'BO' AND
reltype = 'VONA'.
this is similar to using* while we fetch values from table.in the above code only i no QMSM rest values not sure,so used QMSM% -
How to read records from Database view
Hi folks,
well...let me know, y im getting error as : V_T52EL is not defined in the ABAP dictionary as Table , Projection view or Database view.
But actually here this View Type is : Maitenance View.
SELECT KOART
from V_T52EL
where ENDDA GE SY-DATUM AND
SYMKO EQ T030-BWMOD.
plz let me know..guys.
Regards,
KumarHello,
Maitenace View reocird can be viewed only through Tcode SM30
Vasanth -
Hello!
In a special condition on our form is the value of the field not ident to the value in SAP database. Now I want to update the database with the actually field value.
How to do that? thx for any idea!
Best greetings,
Gregor BrandstätterHi!
Thanks for your answer.
The problem is, that the value on the SAP database will be only updated when you select the drop-down list and set the value again.
We want to simulate that with JavaSricpt or Formcalc, but we didn't find a solution for that problem.
Best greetings,
Gregor -
Mapping to database views, S1S4u1 and Sun ONE AppServer7
Does anyone know how to use S1S4u1 to map a CMP to a database view?
I'm currently using Sun ONE AppServer 7 linked to a SQL Server. I have some views on the database that I want to create CMPs to map to. Is this a wrong idea? 'Cause I cannot find a way to generate my CMP against the dbschema I captured using the IDE, nor can I find a way to map it to the view during deploy time using the IDE -- even if I had worked around in creating the CMP. All there is in the IDE is to map to the table. Where can I do it from the IDE? Or is there anywhere that says that I should not use CMP against database views?
Any thoughts would be appreciated.
Thanks,
Huachun
Washington, DCDoes anyone know how to use S1S4u1 to map a CMP to a database view?
I'm currently using Sun ONE AppServer 7 linked to a SQL Server. I have some views on the database that I want to create CMPs to map to. Is this a wrong idea? 'Cause I cannot find a way to generate my CMP against the dbschema I captured using the IDE, nor can I find a way to map it to the view during deploy time using the IDE -- even if I had worked around in creating the CMP. All there is in the IDE is to map to the table. Where can I do it from the IDE? Or is there anywhere that says that I should not use CMP against database views?
Any thoughts would be appreciated.
Thanks,
Huachun
Washington, DC -
hi ,
How can i represent my DataBase View in JPA , and since each "Entity" should have an "@Id" how can i handle this on my views since some of them does not have a convenient ID field/fields , ThanksIn this situation I created @Id for one of the columns or created @IdClass from all view fields.
-
Add table list does not show database view in Configuration Manager
Hi,
I am trying to add a database view in the table tab of the configuration manager. The view does not show up in the list of available tables in WCM 11.1.1.6 version. This is possible in the 11.1.1.4 version. Anyone else facing this issue?
Thanks
SoumyaI think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work. -
CMP Entity Bean from dataBase views
Hi forum,
I Have to migrate an existing application to JEE (with EJB3).
In this application there are a lot of dataBase views.
I'm new in EJB3 and I don't know how to structure cleanly entity beans (Specially when it are created from dataBase views).
My problem is that for each query made from the same dataBase view I almost have to create a new entity bean with a different @Id.
What can I do to to avoid it?
I had thought to genrate a new @Id (attribute not persistent) but I think is not possible. It's right ?
Someone can help me ?
Thanks"CMP provides you with database independence and less coding efforts."
BMP is not database dependent, unless you invoke database specific things in your SQL (something I do not do). CMP on the otherhand is inherently appserver specific (which was it's goal when BEA, IBM, et al. came up with it), and still limits your design possibilities. See this thread for an example:
http://forum.java.sun.com/thread.jsp?forum=13&thread=318785
As for less coding effort, that is a relative statment. Yes a simple CMP bean requires less coding to develop the first time. I personally view a few lines of SQL to load and store the data as being fairly trivial. But that needs to be offset with the problems inherent in using appserver specific CMP implementations.
As an example, try mapping WebSphere CMP to a pre-existing database without using IBM's IDE. It's an incredible pain in the ass since WebSphere does not come with a "meet-in-the-middle" solution. Any J2EE developer that has had the experience of working with different appservers (especially if they have had to port an app, as I have) can attest to the complications that arise with each implementation.
A BMP bean, written with non-DB-specific SQL, is the most portable, most flexible approach to EntityBeans. Yes, it requires the developer to be able to write some SQL, which should not take a significant amout of time. WRT queries, you have to write them, either SQL, EQL, or some appserver specific format.
As an aside, the use of code generators to simplify the creation of EJBs lends itself well to BMP. By using a (or writing your own) code generator, you can mitigate the annoying SQL bugs that creep up early in development. -
How to call the Database views in Reports?
Hai experts,
i created one Database view in data dictionary for that how to call the that in my program?
are we write the select quries on views.
plz help me.
thanks in adv.thanks for ur reply.
how to maintain data in maintance view . is it possible write the select query on that . I know it most be relate with forgien key.
plz help.
thanks in adv. -
How to change the Access for Database views
Hello Experts,
My requirement is to copy the records of a standard database view BDCPV (which is a combination of BDCP & BDCPS) to a custom view and then compare the records with a new table BDCP2.
I copied the BDCPV view to a table and used the custom view in the program. While executing the program, I'm getting an error message like "The database view <View Name> is write protected, so it cannot be changed".
I'm unable to change the Access under Maintenance Status Tab from Read only to "Read and Change". Could anyone help me how to resolve this issue".
Also please share teh sample code if you have any for the above requirement. We are using it in a SP upgrade to one of the systems.
Regards,
Rajesh.Hi,
Change the status in the given way.
Choose Extras ® Maintenance status. A dialog box appears, in which you can select the maintenance status for the view. If more than one table is involved in the view, the maintenance status read only cannot be altered.
Regards,
Srinivas. -
How to call database view in report
Hi i have a small problem in report
the problem is like this i had created a database view in which i got all the values displayed but can any one of you tell me how to declare this database view in report with example
i had created a database view named as znew1
and the fields are
LIFNR LIKE EKKO-LIFNR,
EBELN LIKE EKKO-EBELN,
LIFNR1 LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
EKBE LIKE EKBE-EBELN,
VGABE LIKE EKBE-VGABE,
MATNR LIKE EKPO-MATNR,
WERKS LIKE EKPO-WERKS,
NETWR LIKE EKPO-NETWR,
MENGE LIKE EKPO-MENGE,
MWSKZ LIKE EKPO-MWSKZ,
TXZ01 LIKE EKPO-TXZ01,
KOSTL LIKE EKKN-KOSTL,
PS_PSP_PNR LIKE EKKN-PS_PSP_PNR,
EBELN1 LIKE EKKN-EBELN,Hi Mr. Rich
This is the program code and i want this output int he alv grid format
TABLES:EKKO,EKBE,EKPO.
DATA:BEGIN OF RTAB_ALV OCCURS 30,
LIFNR LIKE EKKO-LIFNR,
EBELN LIKE EKKO-EBELN,
LIFNR1 LIKE LFA1-LIFNR,
NAME1 LIKE LFA1-NAME1,
EKBE LIKE EKBE-EBELN,
VGABE LIKE EKBE-VGABE,
MATNR LIKE EKPO-MATNR,
WERKS LIKE EKPO-WERKS,
NETWR LIKE EKPO-NETWR,
MENGE LIKE EKPO-MENGE,
MWSKZ LIKE EKPO-MWSKZ,
TXZ01 LIKE EKPO-TXZ01,
KOSTL LIKE EKKN-KOSTL,
PS_PSP_PNR LIKE EKKN-PS_PSP_PNR,
EBELN1 LIKE EKKN-EBELN,
END OF RTAB_ALV.
DATA:IZNEW1 TYPE TABLE OF ZNEW1 WITH HEADER LINE.
select * into table IZNEW1 FROM ZNEW1 UP TO 10000 ROWS. -
How to get access key while creating database view in R3
Hi all experts,
I am new to SAP so please forgive my ignorance.
From R3, I am trying to create a new database view named ZVENDOR_ATTR which will be based on LFM1.
When i go to SE11 -> chose view and click create then it shows a pop up window that says "you are not registered as a developer. Please register in the Online Service System (OSS). In the OSS you will receive an access key."
I don't know how can i get the access key and proceed now. Please note that i have installed this BW3.5 and R3 on my laptop. From the default user ddic, i have copied and created a new user 'sapuser1'. I am now using the sapuser1 to logon and attempting to create the above mentioned Database view. It seems like this sapuser1 as it is copied from ddic is not a developer.
So anybody can please help how to create/get this access key to proceed further.
I will give full points. Please help.
Thank you so much in advance
akThanks All,
Does it mean that i can not create any database object without the access key from service.sap.com? As i told that i installed this BW3.5 / R3 on my laptop to train myself but i don't have an account on service.sap.com.
However i can login to R3 system as admin (i have access to the system using ddic or spcpic). Is there a way that a new user with deveoper role can be created by the admin without going to service.sap.com.
Please advise.
Thanks.
ak -
How to get the list of database Views modifying the DB tools list tables.vi
Hi,
I have a problem, I just started using LabVIEW and in particular the LabVIEW connectivity toolkit and I am lookig fgor suggestion regarding how to get the list of database Views modifying the DB tools list tables.vi...
Thanks in advance,
MichelaHi Michela,
since the VI you want to modify is part of a Toolkit, I suggest you to copy the whole block diagram in a new VI and then save it in a new location.
Place the DB List Tables.vi on a block diagram, double click on it and go to the tab "Window -> Show Block Diagram "
Select "Edit -> Select All" to select the whole block diagram and select "Edit -> Copy"
Open a new VI and select "Edit -> Paste"
Save the new VI
In this way you can modify everything you want without overwriting the Toolkits VIs.
Hope this can help.
Regards,
Andrea N.
Systems Engineer ATE & RF - Mediterranean Region
National Instruments Italy -
How to use Database views in XI
Hi Folks,
Any idea about how to use Database views for sending and receiving messages in XI ?
Regards,Farooq,
My doubt is do i have work in the same fashion as if i am working on a Database Table...?
For Ex :
Creating Source and Target Data structure for JDBC adapter in the same format....etc
Regards.
Maybe you are looking for
-
How can I change the default mail account in mail v6.3
I have in my mail preferences four accounts. The first one is a "Google IMAP" and all others are just "IMAP". When I'm composing a new email it defaults to the wrong account. Intuitively I think the the first account listed under mail preference woul
-
Hi Guys, I copied my iPhoto library to a second external disk. Now my version of iPhoto (5.0.4) does not display the original library on the orignal external drive. I have reinstalled the iPhoto and it seems to make 2 attempts to find the library but
-
SQL DTU alerts not working in Azure New Portal
I setup a lot of DTU alerts for our PROD Databases and setup some low threasholds to test the alerts and none of them fired. I even witnessed 3 DBs above my threashold for more a good 30 min but never an email. something broken with the alerts?
-
HT5544 How do I sync iBooks on iOS devices when I create an ebook using iBooks Author?
How do I sync iBooks on iOS devices when I create an ebook using iBooks Author?
-
I have Mac OS X 10.7.4 .Which i photo i can download n how?Mine got corrupted so i deleted it?