Use insert comand
hi i created a ztable and now by using gui_upload i want to enter a flat file to the that database table
now i need to keep 3 radio buttons on the selection screen they are insert modify and delete by using these radio buttons flat file must be upload according to that condition by using GUI_UPLOAD fm
can anyone help how can we solve it
hi mahesh
thanks for reply
i already did in the same format what u told
but i am getting dump if possible check the code once and tell me whats the error is
PARAMETERS: FILE LIKE IBIPPARMS-PATH.
DATA: BEGIN OF IT_tmg OCCURS 0,
NAME TYPE ZTMG-NAME,
DOB(10), " TYPE ZTMG-DOB,
GENDER TYPE ZTMG-GENDER,
END OF IT_tmg.
DATA PFILE TYPE STRING.
DATA : WA like ZTMG occurs 0 with header line.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'x'
IMPORTING
FILE_NAME = FILE.
PFILE = FILE.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = PFILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = IT_tmg
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
ENDIF.
LOOP AT IT.
WRITE:/ IT-NAME.
ENDLOOP.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : INSERT RADIOBUTTON GROUP G1,
MODIFY RADIOBUTTON GROUP G1,
DELETE RADIOBUTTON GROUP G1.
SELECTION-SCREEN : END OF BLOCK B1 .
*MOVE IT TO WA.
WA-NAME = IT_tmg-NAME.
WA-DOB = IT_tmg-DOB.
WA-GENDER = IT_tmg-GENDER.
IF INSERT = 'X'.
*LOOP AT IT.
INSERT ztmg from table wa.
**ENDLOOP.
*MODIFY .
else.
if modify = 'x'.
update ztmg from table wa.
else.
delete ztmg from table wa.
ENDIF.
ENDIF.
Similar Messages
-
Using INSERT INTO for FDM Memory Issue
All -
We configured FDM to run an integration script into our EBS instance upon the import step. It worked fine for a time, then we began running out of memory on the FDM server. Upon Oracle's suggestion, we stopped running through a record set to append and update the values to strWorkTableName and instead began using INSERT INTO. I admit, I have never needed to use the INSERT INTO way of doing things so I may be missing something bery basic.
Our integration script:
Function SQLIntegration2(strLoc, lngCatKey, dblPerKey, strWorkTableName)
'Oracle Hyperion FDM IMPORT Integration Script:
'Created By: karks
'Date Created: 2011-10-26 13:05:18
'Purpose:
Dim strSQL 'SQL string
Dim lngPartitionKey
Dim strConn 'Connection string to the source data
Set cnSS = CreateObject("ADODB.Connection")
lngPartitionKey = RES.PlngLocKey
strConn= "File Name=C:\Users\karksadm\Desktop\NewConnection.udl;"
cnSS.open strConn
strSQL = "Insert Into " & strWorkTableName & " (PartitionKey, CatKey, PeriodKey, DataView, Amount , Account, Entity, ICP, UD1, UD2, UD3, UD4) "
strSQL = strSQL & "SELECT " & lngPartitionKey & ", " & lngCatKey & ", TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & "), 'YTD', EBS.YTD_BALANCE, EBS.ACCOUNT, EBS.SEGMENT1, EBS.SEGMENT5, EBS.SEGMENT4, EBS.SEGMENT5, '[None]', EBS.CURRENCY_CODE FROM "
strSQL = strSQL & "(Select D.NAME, A.CODE_COMBINATION_ID, D.NAME LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR (C.START_DATE, 'MON-YY') AS PERIOD, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3) As ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, "
strSQL = strSQL & "(SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) As YTD_BALANCE "
strSQL = strSQL & "FROM GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D "
strSQL = strSQL & "WHERE 1 = 1 And A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR "
strSQL = strSQL & "And A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID And B.SUMMARY_FLAG = 'N' AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME "
strSQL = strSQL & "And (B.SEGMENT1 = 001 And A.CURRENCY_CODE = 'USD' And D.LEDGER_ID = 2022) "
strSQL = strSQL & "And C.END_DATE = TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & ") "
strSQL = strSQL & "And B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID And A.ACTUAL_FLAG = 'A' "
strSQL = strSQL & "And ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_NET_CR))) <> 0 "
strSQL = strSQL & "GROUP BY A.CODE_COMBINATION_ID, D.NAME, A.CURRENCY_CODE, TO_CHAR (C.START_DATE,'MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 "
strSQL = strSQL & "ORDER BY B.SEGMENT4) EBS"
DW.DataManipulation.fExecuteDML(strSQL)
'Give success message
RES.PlngActionType = 2
RES.PstrActionValue = "SQL Import successful!"
'Assign Return value
SQLIntegration2 = True
cnSS.close
Set cnSS = Nothing
End FunctionI can run the SQL minus the Insert line in my SQL Developer and it works fine. When I run the script in its entirety in FDM, we receive the following:
** Begin FDM Runtime Error Log Entry [2012-01-23 11:37:30] **
ERROR:
Code............................................. -2147217865
Description...................................... ORA-00942: table or view does not exist
Insert Into tWibison72564424799 (PartitionKey, CatKey, PeriodKey, DataView, Amount , Account, Entity, ICP, UD1, UD2, UD3, UD4) SELECT 772, 28, TO_DATE (TO_DATE (N'30/12/1899',N'dd/mm/yyyy')+40724), N'YTD', EBS.YTD_BALANCE, EBS.ACCOUNT, EBS.SEGMENT1, EBS.SEGMENT5, EBS.SEGMENT4, EBS.SEGMENT5, N'[None]', EBS.CURRENCY_CODE FROM (Select D.NAME, A.CODE_COMBINATION_ID, D.NAME LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR (C.START_DATE, N'MON-YY') AS PERIOD, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3) As ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, (SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) As YTD_BALANCE FROM GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D WHERE 1 = 1 And A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR And A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID And B.SUMMARY_FLAG = N'N' AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME And (B.SEGMENT1 = 001 And A.CURRENCY_CODE = N'USD' And D.LEDGER_ID = 2022) And C.END_DATE = TO_DATE (TO_DATE (N'30/12/1899',N'dd/mm/yyyy')+40724) And B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID And A.ACTUAL_FLAG = N'A' And ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_NET_CR))) <> 0 GROUP BY A.CODE_COMBINATION_ID, D.NAME, A.CURRENCY_CODE, TO_CHAR (C.START_DATE,N'MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 ORDER BY B.SEGMENT4) EBS
Procedure........................................ clsDataManipulation.fExecuteDML
Component........................................ upsWDataWindowDM
Version.......................................... 1112
Thread........................................... 4424
IDENTIFICATION:
User............................................. ibisons
Computer Name.................................... HOU-HYSDEV02
App Name......................................... SWNFDMRC
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... FDMDEV
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... EBSINTEGRATION
Location ID...................................... 772
Location Seg..................................... 25
Category......................................... EBS2
Category ID...................................... 28
Period........................................... Jun - 2011
Period ID........................................ 6/30/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2012-01-23 11:37:31] **
ERROR:
Code............................................. -2147217865
Description...................................... Data access error.
At line: 33
Procedure........................................ clsImpProcessMgr.fExecuteImpScript
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 4424
IDENTIFICATION:
User............................................. ibisons
Computer Name.................................... HOU-HYSDEV02
App Name......................................... SWNFDMRC
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... FDMDEV
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... EBSINTEGRATION
Location ID...................................... 772
Location Seg..................................... 25
Category......................................... EBS2
Category ID...................................... 28
Period........................................... Jun - 2011
Period ID........................................ 6/30/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
** Begin FDM Runtime Error Log Entry [2012-01-23 11:37:31] **
ERROR:
Code............................................. -2147217865
Description...................................... Data access error.
At line: 33
Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 4424
IDENTIFICATION:
User............................................. ibisons
Computer Name.................................... HOU-HYSDEV02
App Name......................................... SWNFDMRC
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB.ORACLE
Data Server......................................
Database Name.................................... FDMDEV
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... EBSINTEGRATION
Location ID...................................... 772
Location Seg..................................... 25
Category......................................... EBS2
Category ID...................................... 28
Period........................................... Jun - 2011
Period ID........................................ 6/30/2011
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
I really think the issue is that I am not telling the script where to find the Oracle tables at. I left the code in where we were using the UDL to call in the opening of the record set, but since we are doing away with the record set how do I let FDM know where to find the Oracle tables?
Thanks in advance - I've been wrestling with this for several days.
Thanks you,
SarahHere's a script with INSERT INTO that works fine if FDM back-end is SQL DB and it's pulling from FDMHarris data warehouse which is on SQL Server.
Problem is when FDM back-end is Oracle DB and it's pulling from FDMHarris data warehouse which is on SQL Server.
I'm assuming the INSERT INTO statement needs to be written differently, syntax wise?
Here's the error message displayed.
** Begin FDM Runtime Error Log Entry [2012-06-03 21:18:15] **
ERROR:
Code............................................. -2147217900
Description...................................... ORA-00933: SQL command not properly ended
INSERT INTO tWadmin476032843931 (PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) SELECT 752, 12, N'30-Apr-2012', N'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount FROM FDMHarris.dbo.tdataseg4;
Procedure........................................ clsDataManipulation.fExecuteDML
Component........................................ upsWDataWindowDM
Version.......................................... 1112
Thread........................................... 3284
Function INSERTINTO(strLoc, lngCatKey, dblPerKey, strWorkTableName)
'Oracle Hyperion FDM IMPORT Integration Script:
'Created By: admin
'Date Created: 2012-06-03 11:31:39
'Purpose:
Dim objSS 'ADODB.Connection
Dim strSQL 'SQL String
Dim rs 'Recordset
Dim rsAppend 'tTB table append rs Object
Dim strPeriod
Dim strYear
'Period
'strPeriod=MonthName(Month(RES.PdtePerKey))
a=CStr(FormatDateTime(RES.PdtePerKey,1))
'Tuesday,January 30, 2012
b=Right(a,(Len(a)-Len(DW.Utilities.fParseString(a,1,1,",")))) '7
c=DW.Utilities.fParseString(b,2,2,",")
strPeriod=Left(c,3)
'Year
'strYear=Year(RES.PdtePerKey)
strYear=Right(b,4)
DW.DBTools.mLogError 1, CStr(strPeriod), CStr(strYear), Nothing
'Initialize objects
Set cnSS = CreateObject("ADODB.Connection")
'Connect To SQL Server database
cnss.open "Provider=SQLOLEDB.1;Password=datafusion;Persist Security Info=True;User ID=sa;Initial Catalog=FDMHarris;Data Source=dfv11122"
'DW.DBTools.mLogError 1, CStr(strSQL), CStr(strSQL), Nothing
'Initialize common SQL statement
strSQL = "INSERT INTO " & _
strWorkTableName & " " & _
"(PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) " & _
"SELECT " & RES.PlngLocKey & ", " & RES.PlngCatKey & ", " & _
"'" & Day(RES.PdtePerKey) & "-" & MonthName(Month(RES.PdtePerKey), True) & "-" & Year(RES.PdtePerKey) & "', " & _
"'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount " & _
"FROM FDMHarris.dbo.tdataseg4;" '& _
' "WHERE Month = '" & strPeriod & "' And CalYear = '" & strYear & "'"
DW.DBTools.mLogError 1, CStr(strSQL), CStr(strWorkTableName), Nothing
DW.DataManipulation.fExecuteDML(strSQL)
'cnss.Execute strSQL
'Records loaded
RES.PlngActionType = 6
RES.PstrActionValue = "SQL Import successful!"
'Assign Return value
INSERTINTO = True
cnss.Close
Set cnss = Nothing
End Function
Edited by: user12152138 on Jun 3, 2012 6:43 PM -
How to use INSERT query ?
Frenz,
I have created one internal table and i am doing loop on it like...
Loop at it_data into wa_data.
Endloop.
I want to insert some data into table zdata.
How to use INSERT records on this data base table?
Give me one example.
Regards,
RHHi,
explain better what you want....
Do you want to change data in an existing raw?
Loop at tb_data into wa_data.
wa_data-field1 = 'jsahdu'.
modify tb_data from wa_data.
endloop.
If you want to add raws you use APPEND statement.
In the end you'll modify your table zdata from the internal table tb_data:
MODIFY zdata FROM TABLE tb_data.
Using modify you change raws basing on primary keys. If a raw doesn't exist it will be inserted.
Regards -
How to insert multiple rows in a single shot using insert command?
Hi,
If we insert one row, we can use "insert into" command. I want to insert multiple rows into the table in a single shot. Is there any SQL command for insert multiple rows into the table?
Plese give the solution.
Thanks,
chelladuraiIf you would like to do it with SQL, this would be one of the ways to achive it:
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Sep 25 10:12:59 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Data Mining and Real Application Testing options
SQL>
SQL> desc leap
Name Null? Type
FIRST_PRICE NUMBER(16,6)
NEXT_PRICE NUMBER(16,6)
SQL>
SQL> select * from leap;
no rows selected
SQL>
SQL>
SQL> !vi multirow_insert.sql
SQL> !cat multirow_insert.sql
insert into leap(first_price, next_price) values (1,2);
insert into leap(first_price, next_price) values (3,4);
insert into leap(first_price, next_price) values (5,6);
SQL>
SQL> @multirow_insert.sql
1 row created.
1 row created.
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL>
SQL> select * from leap;
FIRST_PRICE NEXT_PRICE
1 2
3 4
5 6
SQL> -
Using insert command in NVL function
How can we use insert command in a NVL function
exapmle : INSERT INTO employee
VALUES ( (NVL ( (SELECT emp_id
FROM employee
WHERE emp_name LIKE 'Test'),
(insert into employee values((select max(emp_id)+1 from employee),'Test')))));
I mean i will check for the record to exist in the table and if not exist i will add it to the table.998504 wrote:
How can we use insert command in a NVL function
exapmle : INSERT INTO employee
VALUES ( (NVL ( (SELECT emp_id
FROM employee
WHERE emp_name LIKE 'Test'),
(insert into employee values((select max(emp_id)+1 from employee),'Test')))));
I mean i will check for the record to exist in the table and if not exist i will add it to the table.The first thing caught my eye is this
max(emp_id) +1A real bad piece of code. Never do that. Ever thought about multi user environment? Use a SEQUENCE.
If you want EMP_NAME to be unique (Which looks strange to me), then just add a UNIQUE constraint. You dont try to do what oracle already does really well. -
Why won't using 'Insert' work the same way on the Photos page?
Because my images I edited in Photoshop don't appear in my iphoto Library or in the 'media' section (I have no idea why!!), I have to go to the toolbar at top, and use "Insert....Choose....pictures....etc" and insert the pics that way. But it won't insert into the photo grid and you can't add frames, and you can't click on it to enlarge. I guess I don't understand why you can 'drag' the pix in from the media section and it works fine, but when you manually insert the pics, it's just a plain pic, nothing else.
Is there anything I can do?
Thanks
KimRather than use Insert, try dragging your edited images from their location on your HD into the photo grid.
[ Visit here for iWeb Tips, Tricks and Hacks ] -
To handle cursor position in table control while using insert initial line
hi,
I have a requirement to handle cursor position in my table control in which i am using insert initial line by incrementing the index. Now i am handling the cursor position by using set cursor but after 14 records it is going to the first field of the screen. My table control length is 14 records.
How to handle this, please reply me if anyone know.
thanks & regards,
sekhar.hi,
I need to page down the page and then want to set cursor position but for this system command i am getting space for every command. Page down and cursor down or enter every thing it is taking as space. So for this how can i handle it.
thanks & regards,
sekhar. -
How to use INSERT INTO ALL statement in jdbc prepared statement with beans
Kindly give me some example that how we can use "INSERT INTO ALL STATEMENT" in jdbc prepared statement inside a jsf bean?
Actually i want to take employee id's of present employees using single jsf page and using one textbox for each employee id.
How can i use INSERT INTO ALL statement to achieve this?
Following is my code snippet.
AttendanceBean.java:
public class AttendanceBean {
private int atteid;
private String attdname;
private int attday;
private int attmonth;
private int attyear;
public static Connection getAttConnection() throws Exception {
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@localhost:1521:globldb3";
String username = "scott";
String password = "tiger";
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, username, password);
return conn;
public String addAttendance(){
Connection conn = null;
PreparedStatement pstmt = null;
boolean committed = false;
try {
conn = getAttConnection();
conn.setAutoCommit(false);
String query = "INSERT ALL INTO attendance VALUES (?,?,?,?,?)";
pstmt = conn.prepareStatement(query);
pstmt.setInt(1,this.atteid);
pstmt.setString(2,this.attdname);
pstmt.setInt(3,this.attday);
pstmt.setInt(4,this.attmonth);
pstmt.setInt(5,this.attyear);
pstmt.executeUpdate();
conn.commit();
conn.setAutoCommit(true);
committed = true;
return "home.xhtml";
} catch (Exception e) {
e.printStackTrace();
return "CRM.xhtml";
} finally {
try{
if (!committed) conn.rollback();
if (pstmt != null) pstmt.close();
if (conn != null) conn.close();
}catch(Exception e){
e.printStackTrace();
}Check this program for some info on Push buttons:
1-DEMO_DYNPRO_PUSH_BUTTON
2-DEMO_DYNPRO_MODULE
3-DEMO_DYNPRO_ON_CONDITION
Suppose Your screen is 101
Then in that screen create one push button and assign it a function code.
Now in the PAI of the 101 screen
Create Module for user command
Inside that module checc the sy-ucomm if sy-ucomm eq <Function code of your push button>
Insert the values in database.
*& Module USER_COMMAND_0101 INPUT
process after input for screen 0101 *
MODULE USER_COMMAND_0101 INPUT.
CASE OK_CODE.
WHEN 'SAVE'.
*Insert the values here
WHEN 'DISP'.
ENDCASE.
CLEAR OK_CODE.
ENDMODULE. " USER_COMMAND_0101 INPUT
Regards
Neha
Edited by: Neha Shukla on Dec 3, 2008 1:02 AM
Edited by: Neha Shukla on Dec 3, 2008 1:02 AM
Edited by: Neha Shukla on Dec 3, 2008 1:06 AM -
How to use Insert for mulit-values
Can anyone help, I try to insert mulit-values using insert command. but keep getting error. here is the code.
INSERT INTO PRODUCTS
VALUES (
'C','CABLE',39.95,
'D','DSL',29.95,
'U','DIALUP_56K',19.95);
Thank you!The SQL you posted isn't valid, assuming that there are only three columns in your table. The type of insert statement you posted can only insert 1 row at a time.
You could look into loading data into collections and using the bulk insert syntax to insert multiple values in a single statement. Please post to the PL/SQL forum if you need more assistance on this.
Justin -
Why do we use insert characteristic as infoprovider
Hi all,
under which circumstances we use insert characteristic as infoprovider.Does it relate to master data + transactionl data reporting in some way.Please help with an example
Regards,
SSHi Sushant ,
We mainly use infoobject as infoprovider for following reasons :
1) When you want to do reporting on master data .
2) When you want your infobject to act as a datatartget . So in this you will need to build transformation and everything .
Hope the above reply was helpful.
Thanks & Regards,
Ashutosh Singh -
DW CS5 -wrong path shown in code after using'Insert/Image'.
Normal site management as follows:
Site Name is set up, eg. - abcd.
Local Folder is set as root - c:/abcd
Logo image is in c:/abcd/images
Using ‘Insert/ Image’ Dreamweaver enters the correct image in the correct div, but the source code reads:
<div id="logo"><img src="../../../../abcd/images/logo.jpg" width="248" height="78" alt="abcd" /></div>
instead of: <div id="logo"><img src="/images/logo.jpg" alt="abcd" /></div>
So the path for the image seems to be defaulting incorrectly and I can see the url in the ‘select image source’ window is automatically showing a longer path: ../../../../abcd/images/
Ideas tried so far:
Replaced the url manually to the local path (works fine), but it defaults again next time to the longer path.
Tried recreating the site cache and FAQ corrupt cache fix.
Removed the site and set it all up again.
Manually change the path in the code and DW no longer finds the image.
I’m a newbie who has only created a handful of sites so any ideas are very much appreciated – thanks, Shelly JHi Murray,
Thanks very much for the reply - as a first time forum user it is great to see there are friendly people out there.
Site name abcd and Local Site Folder showed C:\abcd\ as per normal (not using root relative) and in advanced settings links are relative to document, not site root, but you gave me a great lead and the problem seems to be resolved now, thanks. With my workflow I manually transfer the completed files to another drive (rather than the DW remote function) where a developer then adds value and ftp's them up and it seems that there was some glitch between the server and my PC. I had already tried resetting my PC earlier, but he has reset his end now and my DW is no longer confused. So thanks again. (perhaps simply hardware but I suspect the 'include' that was added to my last site's code - who knows ha ha..) Cheers, Shelly. -
Hi Guy's,
Please friends help me where i did mistake.
table1 contain 20 fields. using Function module want to updagte the table contain 12 fields.
In FM-importing parameters are 12 fields.
data : wa_output type table1.
move : field1 to wa_output-zfield1,
field2 to wa_output-zfield2. .......upto field12.
here using insert statement.
insert into table1 values wa_output.
But here wa_out contain values are not inserted into table1.
Why what is the reason.
please friends clarify my doubt.
Thanks,
Sai.Hi,
First of all, your work area must have the fields in the same order as your table. Otherwise, you might be inserting character value against a number field. So, even if you have values for only 12 fields, try to put space for the remaining fields. Note: Work Area fields must be in the same order as table fields.
Thanks
Ramesh -
How do I insert cells using INSERT INTO & SET? (Excel oledb)
Updating a cell works:
oledbConnect = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\__\\test.xls;Extended Properties='Excel 12.0 Xml;HDR=NO;'");
oledbConnect.Open();
oledbCmd.Connection = oledbConnect;
string stSheetName = "Sheet2";
string sql;
sql = "UPDATE [" + stSheetName + "$A1:B1] SET F1=1";
oledbCmd.CommandText = sql;
oledbCmd.ExecuteNonQuery();
Inserting a cell does not:
sql = "INSERT INTO [" + stSheetName + "$A2:B2] SET F1=2'";
oledbCmd.CommandText = sql;
oledbCmd.ExecuteNonQuery();
I understand that inserting will add a new row ... but this doesn't work either.
sql = "INSERT INTO [" + stSheetName + "$] SET F1=3";
oledbCmd.CommandText = sql;
oledbCmd.ExecuteNonQuery();
bhs67Hi hbs67,
No, we can't use Insert into with Set, it's the basic syntax in SQL statement. Give the worksheet a header row, then use Insert into or Update syntax with the field name.
Check more information in this kb article:
https://support.microsoft.com/en-us/kb/316934?wa=wsignin1.0
If you have Office application installed on your machine, you could also automate the Excel files with Excel PIA:
How to automate Microsoft Excel from Microsoft Visual C#.NET
It's easy to insert or update cell values with the cell address.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Embed an Exported Muse Page Using "Insert HTML"?
Hello All,
I'd like to export a Muse page to HTML, then embed that entire page into another Muse page using Insert HTML. I've done some experimenting and haven't yet gotten it to work.
I'm familiar with embedding html in Muse, including the linking of external css stylesheets and js libraries, and I'm also reasonably skilled in post-editing my Muse pages in Dreamweaver. But this has me stumped.
Anyone have any experience to share? Thanks!
bartHi Bart,
I am not sure why you want to first export the page and then embed it as HTML in another Muse page. However, you can copy all the content from a page and use the "paste in place" option from Edit menu and all the content will be placed as it is on the source page.
Regards,
Aish -
how to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method. thanks
INSERT targetdb.dbo.tbl (col1, col2, col3, ...)
SELECT col1, col2, col3, ...
FROM sourcedb.dbo.tbl
Or what is your question really about? Since you talke about foreign keys etc, I suspect that you want to transfer the entire table definition, but you cannot do that with an INSERT statement.
Erland Sommarskog, SQL Server MVP, [email protected]
Maybe you are looking for
-
Marketing attributes with free selection entry in Script IC Web 5.0
Hi Experts, We are working with script in IC Web Client (CRM 5.0). Answers are updating marketing attributes. Next time agent is calling he has the information of the last call. There are some information that requiere free selection of text entry. W
-
Can't zoom with trackpad in safari how can i solve that?
Help please!!! can't zoom with trackpad in safari how can i solve that?
-
SNP Optimizer With Runtime Errors
I am Trying to run SNP Optimizer. The actions performed on SNP Interacive planing book is Selected the Product Locations in Selection window and When trying to load data or click optimizer it is giving a runtime error. The Error Says: A table is ref
-
This person cannot be reached on Imessage at this time! please Help!
I am wanting to text a friend on IMessage and everytime i try sending a message it says: This person cannot be reached on Imessage at this time, please try again later. What does this mean i have been trying for the past 8 hours and it kept saying th
-
Warning regarding disk not being ejected properly
I continually and sporadically get a screen warning that "the disk was not ejected properly" when no disk has been removed from the system. What problem would this indicate? How can it be resolved? Thanks for any help you can give me.