How to Insert Data in Database using BCS with out External List
Hi,
How to Insert,Update and Delete User Interface data using business connectivity service with out External List.Please suggest me solution.
Regards,
khadar
Once you've configured the external content type, you can interact with it using the BDC Object Models available to you. You can use server side or client side and interact with the database without an external list.
Check these links:
Server side:
http://msdn.microsoft.com/en-us/library/office/ff464357(v=office.14).aspx#sectionSection3
Client Side: http://msdn.microsoft.com/library/jj164116.aspx
Brandon Atkinson
Blog: http://sharepointbrandon.com
Similar Messages
-
Help , How to get data from database using recordset with UI API
I want to get a data from database
when I want to create recordset i notice that UI API didn't has record set
so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
======================================================
Dim oCompanyUI As SAPbouiCOM.Company <<UI API
Dim oRecSet As New SAPbobsCOM.Recordset << DI API
Dim oCompanyDI As New SAPbobsCOM.Company << DI API
'=====================================================
oCompanyDI.Connect
Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
======================================================
but I got an error it said "you are not connected to company"
I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
can someone help me please, I really need it
Thanksyou need a single sign on
Dim oDICompany As SAPbobsCOM.Company
Dim sCookie As String
Dim sConnStr As String
Dim ret As Integer
oDICompany = New SAPbobsCOM.Company
sCookie = oDICompany.GetContextCookie
sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
If oDICompany.Connected Then
oDICompany.Disconnect()
End If
ret = oDICompany.SetSboLoginContext(sConnStr)
If Not ret = 0 Then
SBO_Application.MessageBox("set Login Context failed!")
Exit Sub
End If
ret = oDICompany.Connect()
If Not ret = 0 Then
SBO_Application.MessageBox("Company Connect failed!")
End If -
Its very urgent:how to insert data into database tables
Hi All,
I am very new to oaf.
I have one requirement data insert into database tables.
here createPG having data that data insert into one custom table.
but i dont know how to insert data into database tables.
i wrote the code in am,co as follows.
in am i wrote the code:
public void NewoperationManagerLogic()
ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
OADBTransaction oadbt=getOADBTransaction();
if(!vo1.isPreparedForExecution())
vo1.executeQuery();
Row row=vo1.createRow();
vo1.insertRow(row);
in createPG processrequest co:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.NewoperationManagerLogic();
process form request:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("Submit")!=null)
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.getOADBTransaction().commit();
please help with an example(sample code).
its very urgent.
thanks in advance
Seshu
Edited by: its urgent on Dec 25, 2011 9:31 PMHi ,
1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
Thanks
Pratap -
How to insert data in database table
Hi experts,
How to insert data into database table using internal table from function module.Hi,
As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on 'All or None Concept'.
For the insert Statement Key word you can have a look at the following link:
http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm
Hope this helps.
Thanks,
Samantak. -
How save & retrive data from database using flex, coldfusion, sql server
hi , i am very new in flex, i am trying to insert data in
database using flex2, coldfusion, sql server. any one can help me
please. or give me any example.Hi try to goto the following sites, you will get some
direction to think
http://weblogs.macromedia.com/pent/archives/2006/11/example_of_flex.cfm
http://pdxphp.org/node/258
Good Luck -
How to insert data into two tables linke with foreign key..
I have two tables
1)EMP(emp_ID,username,emp_type_code)
emp_ID is primary key, emp_type_code is a foreign key references emptype table.
2)emptype(emp_type_code,emp_type_descripton)
emp_type_code is primary key
Could anyone help me ..how to insert data into EMP table. How to insert data into two tables linke with foreign key..CREATE TABLE "CATDB"."DWDIMUSER"
"USER_ID" NUMBER(10,0) NOT NULL ENABLE,
"SPECIALTY_ID" NUMBER(10,0),
"FULLNAME" VARCHAR2(20 BYTE),
"FNAME" VARCHAR2(20 BYTE),
"LNAME" VARCHAR2(20 BYTE),
"USER_SUBTYPE" VARCHAR2(20 BYTE),
CONSTRAINT "DIMUSER_PK" PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE,
CONSTRAINT "DIMUSER_DIMSPECIALTY_FK" FOREIGN KEY ("SPECIALTY_ID") REFERENCES "CATDB"."DWDIMSPECIALTY" ("SPECIALTY_ID") DISABLE
CREATE TABLE "CATDB"."DIMSPECIALTY"
"SPECIALTY_ID" NUMBER(10,0) NOT NULL ENABLE,
"SPECIALTY_NAME" VARCHAR2(100 BYTE),
CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("SPECIALTY_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
INSERT INTO DIMUSER (FullName, FNAME, LNAME, USER_TYPE, USER_SUBTYPE)
SELECT DISTINCT
Engineer AS FullName,
regexp_substr(Engineer , '[^,| ]+', 1, 1) as FName,
regexp_substr(Engineer , '[^,| ]+', 1, 2) as LName ,
'Engineer'
FROM EMPLOYEELOOKUP;
INSERT INTO DIMSPECIALTY (SPECIALTY_NAME)
SELECT DISTINCT SPECIALITY
FROM EMPLOYEELOOKUP;
COMMIT;
CREATE TABLE employeelookup ...IS A TABLE THAT HAS ALL THE DATA NEDED TO BE FILLED IN BOTHE TABLES...
CREATE TABLE "CATDB"."EMPLOYEELOOKUP"
"EMPLOYEELOOKUP_ID" NUMBER(10,0) NOT NULL ENABLE,
"ENGINEER" VARCHAR2(25 BYTE),
"SPECIALTY" VARCHAR2(20 BYTE),
CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("EMPLOYEELOOKUP_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
DATA IN EMPLOYEELOOKUP
Engineer, Specialty,
John, Dow, Electronis,
Dow, Jons, Technician
Stan Smithers Sales
Mark, Richards Marketing
Jenny, Lane Marketing
John, Lee Sales
I NEED TO LOAD THE FOREIGN KEY IN DIMUSER FROM THE DIMSPECIALTY TABLE?
BY USING THE LOOKUP TABLE TO MARCH THE NAMES UNDER THE Engineer COLUMN, SPECIALTY COLUMNE DISTICTIVLY BY JOINING THE DIMSPECILTY TO RISTIVE THE PRIMARY KEY AND FILL IT IN THE DIMUSER TABLE AS A FOREIGNE KEY. -
Inserting data into database using service callout
Hi,
Im using 3 service callout for calling 3 database projects in osb. Im getting output from first two service call outs. In last service callout i have to insert data into data base which is output from service callout. im getting fault while inserting data. Can any body help me with any samples for inserting data into data base which is output from another service callout
BEA-382513: OSB Replace action failed updating variable "body": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "element {http://www.w3.org/2003/05/soap-envelope}Body { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://xmlns.oracle.com/pcbpel/adapter/db/POC/NRICHMENT/}OutputParameters { {http://www.w3.org/2001/XMLSchema}anyType }Hi prabu,
I tried with several inputs but im getting same error. How to map to data base input of third service call out with output values of second service call out?
Any sample blogs -
How to insert Date into Database from workbench.
Hi
I have requirement where I need to insert the currentDate and Time to the database. Here I am using as
At SQL Statement Info Editor ,have like these :
Type value
Date parse-dateTime(current-dateTime())
At DB I have Datatype as DateTime( Using MySQL). Here i am getting error like :
Caused by: com.adobe.idp.dsc.jdbc.exception.JDBCIllegalParameterException: Type mismatch is found when preparing SQL statement. Expecting type 'date', but got type 'String'.
Could any one tell me where I can find detailed log say hibernate type... where exatly we are getting error.(Expect jboss's server log).
Please tell how to insert the date into the DB ASAP.
Thanks
PraveenThanks for all replies.
Eventually I got the solution the post
From the Form (Using DatePicker) , we will get the DateTime datatype to the Workbench. All we need to do is assign the same to DateTime variable in the workbench and inserting the data to the DB.
It works.
Thanks
Praveen. -
How to insert date into database table
Hi,
i used date navigator in htmlb. i want toupdate date into the database table ystudetn_inf. and also please tell me how to insert that date into table.give me small example in stepby step.Hi,
I am sure you have used htmlb:dateNavigator as follows
<htmlb:dateNavigator id = "myDateNavigator"
monthsPerRow = "1"
onNavigate = "myOnNavigate"
onDayClick = "myOnDayClick"
onWeekClick = "myOnWeekClick"
onMonthClick = "myOnMonthClick">
</htmlb:dateNavigator>
Trap the onDayClick event in oninputprocessing
date_event ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'inputField'
id = 'mydate' ).
date = datenavigator_event->day.
and use date value to update your table.
If found helpfull rewards points.
Regards,
Albert -
In JSF framework application how to Insert data into DB using entitymanager
Dear friends,
I am developing a web application using JSF framework. In that i using entity class. In ManagedBean class i want to insert the data using entitymanager persist method. But it will not working. And don't show any errors. give me the suitable methode to insert data into the database using EntityManager.Persist() method.Yes, Panky_p,
i have attached the code for which i using in given below. In that am getting the data from database but only the problem is not inserting into the database.Give me the possible solution for that.Thank you
public String ValidUser(String username, String password) {
List<User> us = new ArrayList();
EntityManager em = getEntityManager();
try {
us = em.createNamedQuery("User.findAll").getResultList();
if (us != null) {
Iterator i = us.iterator();
while (i.hasNext()) {
User use = (User) i.next();
if (username.equals(use.getHmsusrloginName()) && password.equals(use.getHmsusrpassWord())) {
utx.begin();
Logindetail lo = new Logindetail();
lo.setHmslogusrId(use.getHmsusrusrId());
lo.setHmslogloginName(use.getHmsusrloginName());
lo.setHmslogtimeIn(getCurrentDate());
em.persist(lo);
utx.commit();
return "success";
return "failure";
} else {
return "failure";
} catch (Exception ex) {
System.out.println("Exception in GetConnection " + ex);
return "failure";
} -
How to Convert Date Object at Universe Level with out Timestamp
Hi,
I have a Object called "PCREGISTERDATE" at universe where the data type is date .but the dates are coming in the following format:9/26/2007 9:48:40 PM but i want to show the date as with out time stamp.
how can i create a object by at universelevel which shoul show only date with out Time Stamp.
please help me on this ASAP.
Thanks & Regards,
KumarPlease try below date fucntion:
select convert(varchar(10),getdate(),101) - this is for sybase
syntex will change based on your source database.
Thanks
Ponnarasu .K -
How to fetch data from Database using SUP MBOs
I'm learning to develop blackberry apps using SUP.I am new to both blackberry api and SUP.
I need to make a login page for a Student and then validate the username and password entered using data from a database.
I need to check the database for the username and password entered. What should be my next step? How do i get this data from the database. Using findAll() method is not working . Do i need to connect to SCC or unwired server first. If yes , then someone please provide a sample code for it.Hi!, I see your code and I see that you have a fee errors, try to use this:
import java.text.*;
import java.sql.*;
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.OutputStream;
* NOTE: You must put the try-catch and your sql code into the get method
/** Servlet program to take fetchdata from database and display that on the broswer*/
public class Fetchdata
extends HttpServlet {
String query = new String();
String uid = "ashvini";
String pwd = "******";
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, Exception {
try {
Connection con = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:Testing";
con = DriverManager.getConnection(url, uid, pwd);
Statement s = con.createStatement();
query = "select * from gowri.msllst1";
ResultSet rs = s.executeQuery(query);
response.setContentType("text/html");
ServletOutputStream out = response.getOutputStream();
out.println("<HTML>" + "<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1 ALIGN=CENTER>" + title + "</H1>\n" +
"<table>" + " <th>ITEM Code</th>");
while (rs.next()) {
out.println("<tr><td>" + rs.getString(1).trim() + "</td></tr>");//I change </tr></td> for </td></tr>
} //end of while
out.println("</table></BODY></HTML>");
catch (Exception e) {
System.out.println(e);
} //end of doGet method
}I hope this help you :) -
How to insert data into database table from a servlet? Help please.
From a servlet I want to insert a message with some servlet parameters into an oracle database table by writing 'insert into tablename'. How shall I write the sql statement?
simple suppose u wanned to insert user name and password into table user_info then this is a simple example .....
Best Regds
bondzoro
[email protected]
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class tester extends HttpServlet {
Connection con = null;
public void init(ServletConfig sc){
super.int(sc);
Class.forName("oracle.jdbc.driver.OracleDriver");
public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOE
try {
con=DriverManager.getConnection("jdbc:oracle:thin:@database_URL:1521:ORA8","username","pa
String user = req.getParameter("username");
String pass = req.getParameter("pass");
PreparedStatement pst = con.prepareStatement("insert into user_info values(?,?)");
pst.setString(1,user);
pst.setString(2,pass);
pst.executeQuery();
pst.close();
con.close();
}catch(Exception _e){
_e.printStackTrace(System.err);
~ -
How to insert data in tables using loops sql
Oracle 10.2g
using Oracle sql*plus
Table student is
create table student(id)
as
select distinct student_id
from students_table;now
desc student; will retrieve
student
======
Name Null? Type
===========================
ID VARCHAR2(10)Now creating a sequence
create sequence st_seq;
alter table student add column no;
select * from student
no id
=========
234
298
This is the main part
There are 100 student id in the table
now i want to populate the table with sequences using seq.next_val
how to use a loop to insert 100 auto generated numbers in the table.
Thank you.
Expected result
Select * from student
no id
=========
1 234
2 298
.........Why i am doing this way instead of
create table student(no,id)
as
select st_se.nextval,student_id
from students;This will cause duplication of upn
using distinct would throw an error.
create table student(st_id,id)
as select distinct st_seq.nextval,academicyear
from student
as select distinct st_seq.nextval,academicyear
ERROR at line 2:
ORA-02287: sequence number not allowed hereThank you.Follow the example:
SQL> create table students_table (student_id number);
Table created.
SQL> insert into students_table values(10);
1 row created.
SQL> insert into students_table values(10);
1 row created.
SQL> insert into students_table values(20);
1 row created.
SQL> insert into students_table values(30);
1 row created.
SQL> insert into students_table values(40);
1 row created.
SQL>
SQL> commit;
Commit complete.
SQL> select *
2 from students_table;
STUDENT_ID
10
10
20
30
40
SQL> create sequence st_seq;
Sequence created.
SQL> create table student(no,id)
2 as
3 with distinct_table as
4 (
5 select distinct student_id
6 from students_table
7 order by student_id
8 )
9 select st_seq.nextval, student_id
10 from distinct_table
11 ;
Table created.
SQL> select *
2 from student;
NO ID
1 10
2 20
3 30
4 40
SQL>
Cheers,
Davide -
How to Insert Data in Ztable Using table Control
Hi All,
Please give some ideas of how to store the data from table control into the ztable database.
There is a table control in which the end user enters the data manually and clicks the save button. Then, the data from the table control will go and store in the ztable.
regards
Vicky KumarHi Vicky,
are you talking about ABAP transaction SE11 or about creating tables in the SAP HANA directly, i.e. in the HANA Modeler perspective?
Cheers,
Jasmin
Maybe you are looking for
-
I want to get IOS 6.1.4 back
Hi everyone! I have been having an Iphone 5 for year. I worked fine and great and so smoothly. I enjoy this device. However I had installed few weeks ago IOS 7 and it worked worse than previous one. 1) an Interface is not smooth and does not look gre
-
Copying Aironet IOS configuration
I set up one AP-1041 that runs standalone IOS. No controller. I have three more that I want to copy the setup configuration over to. I have the right document, but need someone to help tell me which commands will get my set configuration from AP one
-
Podcast plays only via link from Apple
My podcast plays when I type this url, that Apple sent to me in my confirmation that the podcast was accepted: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=213721454 but I am unable to hear it if I just search for it by typing "on
-
We are currently using OCS in a pilot group. We want to deploy but OCS is displaying "In a WebEx meeting" when users are not in a Webex meeting. We have uninstalled the Webex productivity tools and configured them to not use IM per Cisco. We are
-
Running oracle form 6i or reports from 9iAS Portal
Where I can find the most accurat and deatil information how to run form6i or reports from 9iAS Portal. How to integrate Designer developed forms, reports ,sql scripts web forms from designer 6i into 9iAS Portal.Do I have to go to OC4J. or is there o