Update Yes/No field in access table through oracle procedure
Hi,
How to update Yes/No field in access table through oracle procedure. all other fields like AutoNumber, Text I can update it. Yes/No field how to update? Please, any one can help me?
Thanks and Regards,
Sudha.
Sudha Teki wrote:
select "fldPost" from tblPHd@ODBCLNKNot quite sure what you mean, but the way you select the column would indicate a case sensitive column name
Look at this example
SQL> create table t
2 ("this" varchar2(10))
3 /
Table created.
SQL> insert into t values ('hello')
2 /
1 row created.
SQL> select *
2 from t
3 /
this
hello
SQL> select this
2 from t
3 /
select this
ERROR at line 1:
ORA-00904: "THIS": invalid identifier
SQL> select "this"
2 from t
3 /
this
helloIs your column name also case sensitive?
Similar Messages
-
To Update Custom field in mch1 table through MIGO Tcode
Dear champs,
I have added one custom field in mch1 table ( date ).
Now , In MIGO Tcode when i am doing posting, MCH1 table is also updated.
I want to know how to update my custom field in mch1 table at the time of posting.
Please tell me where to write logic to update mch1 table.
Regards,
Satyen TrivediHi Satyen,
what data has to be update in MCH1 table new field, for this did you added any screen or you want to implement your own custom logic.
1) if you implemented the screen , then you have to write logic there itself.
2) If you want to update through custom logic , then you takeup with the Enhancements or BADI.
Regards,
Krishna -
Updating EAN11 field in mara table through BAPI_MATERIAL_SAVEDATA
Hi,
I want to update EAN11 field in mara table through BAPI_MATERIAL_SAVEDATA could anybody please guide me how to achieve.
it would be great if is there any sample code for the same.
ThanksPlease give the following fields in the lwa_uom structure as well
lwa_uom -ALT_UNIT
lwa_uom -NUMERATOR
lwa_uom -DENOMINATR
DATA: lwa_uom TYPE BAPI_MARM,
lwa_uomx TYPE BAPI_MARMX.
DATA: lt_uomx TYPE STANDARD TABLE OF BAPI_MARM,
lt_uomx TYPE STANDARD TABLE OF BAPI_MARMX.
lwa_uom-ean_upc = '123456' " enter the value here
lwa_uom-ean_cat = 'abcd'.
append lwa_uom to lt_uom.
lwa_uomx-ean_upc = 'X'.
lwa_uomx-ean_cat = 'X'.
append lwa_uomx to lt_uomx.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
unitsofmeasure = lt_uom
unitsofmeasurex = lt_uomx.
Edited by: Rahul Babukuttan on Dec 21, 2011 4:23 PM -
Updation of Custom Fields in AFRU table Using Customerexit
Hi all,
I added two fields in CO11n Tcode using SCREEN EXIT - CONFPP07 and iam trying to update these two fields in AFRU table
using CONFPP05. But iam unable to update these two field .
see this code in CONFPP05
LOOP AT afrud_tab.
afrud_tab-zzshift = wa_afrud-zzshift1 .
afrud_tab-zzoperator = wa_afrud-zzoperator1 .
MODIFY afrud_tab.
ENDLOOP.
Plz help me regarding this..Thanks for reply
Ya i added two fields in confpp07 .
see the code :
*& Include ZXCOFTOP
tables : afrud.
DATA : WA_AFRUD TYPE AFRUD,
IT_AFRUD TYPE TABLE OF AFRUD.
Include ZXCOFU24
MOVE afrud-zzshift1 TO wa_afrud-zzshift1.
MOVE afrud-zzoperator1 TO wa_afrud-zzoperator1.
Even though it is not updating . except these two fields.
Regards,
Srinivas -
Update of segment field in bseg table
hi
can any explain me about update of segment field in bseg table
segment is mentained in profit center master record ,and i want to generate trial balance segment wise and profit center wise
please suggest me steps to do in a new gl senario
thanks
cbHi,
You need to activate the assign scenarion FIN_SEGM to your ledgers in the below path:-
SPRO> Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers > Ledger > Assign Scenarios and Customer Fields to Ledgers
Then you need to make document splitting characteristics based on Segment field in the below path:-
SPRO> Financial Accounting (New) > General Ledger Accounting (New) > Business Transactions > Document Splitting > Define Document Splitting Characteristics for General Ledger Accounting
Make the below entry:-
Field = SEGMENT
Zero Balance = Selected
Partner Field = PSEGMENT
Mandatory Field = Selected
Then you will be able to generate the balance sheet segment wise in report S_PL0_86000028 "Financial Statement: Actual/Actual Comparison". (Similar steps you can use for profir center wise balance sheet in addition.)
Regards,
Gaurav -
Update the Street field in ADRC table.
Hello !! Please I need some help.
I have to update the Street field in ADRC table.
I have this list.
Where I can put a Flag and an Update to do it.
Im really newbie. Im doing it in IDES, to test it first.
Help !
REPORT Z_LIST_ADRC LINE-SIZE 190
LINE-COUNT 65
NO STANDARD PAGE HEADING.
TABLES: ADRC.
DATA: BEGIN OF ITAB OCCURS 0,
ADDRNUMBER LIKE ADRC-ADDRNUMBER,
date_to like ADRC-date_to,
NAME1 LIKE ADRC-NAME1,
CITY1 LIKE ADRC-CITY1,
CITY2 LIKE ADRC-CITY2,
STREET LIKE ADRC-STREET,
MC_NAME1 LIKE ADRC-MC_NAME1,
MC_CITY1 LIKE ADRC-MC_CITY1,
MC_STREET LIKE ADRC-MC_STREET,
END OF ITAB.
SELECT ADDRNUMBER DATE_TO NAME1 CITY1 CITY2 STREET MC_NAME1 MC_CITY1 MC_STREET
FROM ADRC INTO TABLE ITAB.
LOOP AT ITAB.
WRITE : /001 ITAB-ADDRNUMBER,
007 ITAB-DATE_TO,
016 ITAB-NAME1,
040 ITAB-CITY1,
070 ITAB-CITY2,
090 ITAB-STREET,
120 ITAB-MC_NAME1,
150 ITAB-MC_CITY1,
170 ITAB-MC_STREET.
ENDLOOP.
TOP-OF-PAGE.
ULINE.
WRITE: /001 'n-addr',
007 'date',
016 'name',
040 'city1',
070 'city2',
090 'street',
120 'name-s',
150 'city1-s',
170 'city2-s'.
ULINE.HI,
data : itab like standard table of adrc.
select * from adrc into table itab.
loop at itab.
itab-street2 = 'New value'.
modify itab index sy-tabix.
endloop.
if not itab[] is initial.
modify adrc from table itab.
endif. -
How to find users machine / IP who is accessing forms through Oracle AS
Dear Gurus
We need to know the users machine / IP who are accessing forms through Oracle 9i Application Server, how can we find that?
thanks in advance
regards
MehmoodMehmood,
Set serverURL=/forms90/f90servlet/session in the Forms Web configuration default section or add it to the URL to start tracing host name and ip-addresses from clients. The output appears in the servlet log file application.log. sessionperf , perf and debug are the other options instead of session.
regards,
Bernhard Jongejan
http://bernhardjongejan.spaces.live.com -
How to connect access database through oracle sql prompt
i want to connect access database via oracle , i am trying to import all the data in Access table into oracle table how it is possible .
A.RThe simplest way, if You have already created tables in Oracle DB, is to open the Access MDB, link Oracle tables via ODBC and build a query to append rows reading from Access tables to Oracle tables.
Hope this helps
Max -
Hi, I want to copy access tables to oracle database.
Till now I have opened the connections to both of them.
Can anyone explain me what are the next steps?
Here is the code that I wrote till now:
String connString = "User Id=******* ;Password=******* ;Data Source=******* ";
String connString2= " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\temp.mdb" ;
OracleConnection oraConnection = new OracleConnection(connString);
DbConnection accessConnection = new OleDbConnection(connString2);
// openning the oracle connection
try
oraConnection.Open();
Console.WriteLine("\nHello, Oracle Here!\n");
Console.WriteLine("Connection String: ");
Console.WriteLine(oraConnection.ConnectionString.ToString() + "\n");
Console.WriteLine("Current Connection State: ");
Console.WriteLine(oraConnection.State.ToString() + "\n");
Console.WriteLine("Oracle Database Server Version: ");
Console.WriteLine(oraConnection.ServerVersion.ToString());
catch (Exception ex)
Console.WriteLine("Error occured: " + ex.Message);
finally
if (oraConnection.State == System.Data.ConnectionState.Open)
oraConnection.Close();
//openning the access connection
try
accessConnection.Open();
Console.WriteLine("\nHello, Access Here!\n");
Console.WriteLine("Connection String: ");
Console.WriteLine(accessConnection.ConnectionString.ToString() + "\n");
Console.WriteLine("Current Connection State: ");
Console.WriteLine(accessConnection.State.ToString() + "\n");
Console.WriteLine("Microsoft Access Version: ");
Console.WriteLine(accessConnection.ServerVersion.ToString());
catch (DbException e)
Console.WriteLine( "Unable to open database:" + e.Message);
throw;
}Hi Peter,
Thanks for the feedback.
I have replicated the issue also.
Basically Dutch is not a supported language in SQL Developer.
SQL Developer fell back on English as the default , but obviously this component, the Apply Button, has an issue.
Your workaround is correct as it specifically tells SQL Developer to run English rather than waiting for it to fall back to the default language.
Thanks,
Dermot.
SQL Developer Team. -
Data in access tables to oracle tables
Hi
I want to load data from MS Access tables to oracle tables .
Can any on help me to in this
regards
rajeshIf you only want to export a few tables from Access to Oracle once, I would suggest to use the export functionality of MS Access. To do this you need to install an Oracle Client and further use ODBC to export the data/tables to your Oracle database.
To avoid failures concerning the datatype transformation, I suggest to use the Oracle ODBC driver. -
Updating a blob field in access db
hi all
i need to update a blob field (containing images) in an access db
i tried with this code but didn't work:
PreparedStatement ps=c.prepareStatement("UPDATE "+tab_name+" SET "+col+" = ? WHERE "+key+"="+key_val);
ps.setBytes(1, rs.getBytes("F_VAL"));anyone could help me?
thanx
sandrook, i changed my code in this way:
ResultSet rs2=to.executeQuery("SELECT * FROM TABLE WHERE KEY= 'mykey'");
if(rs2.next())
Blob blob=rs2.getBlob("F_VAL");
InputStream in=blob.getBinaryStream();
rs2.updateBinaryStream(col, in, in.available());
rs2.updateRow();
}and nothing happens, my file in this row isn't updated!!!
if i write
ResultSet rs2=to.executeQuery("SELECT * FROM TABLE WHERE KEY= 'mykey' for update");i get an SQLEXception that tell me that access can't implement this feature
anyone could help me?
it's not possible to update a Blob in access?
thanks -
How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA
Hi,
I want to update a custom field (Appended field) of MARC table using BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
Thanks
Rahul.Hi,
Use the Documentation given for struture in BAPI docuemntation...
For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example, WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
Regards,
Bhargava -
Problem with update of BLOB field in a table with compound primary key
Hi,
I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
Unable to process row of table ZPRAVA.
OK
Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
Thanks in advance.
ZdenekIs there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
Scott -
Updation of 'Z' field in database table VBAP & AUFK
Hi,
In my report I wanted to update/modify value in a "Z" field in VBAP and a "Z" field in AUFK table.
Could anyone please suggest me how to update/modify this field value using a BAPI or FM?
Or any other method atleast..
Thanks in Advance,
Rohan.Hi,
When you want to change the Zfield in VBAP we can go for the BAPI function module-
BAPI_SALESORDER_CHANGE for the given Zfield get the header data and append it to BAPI header structure.
I think we may use the same FM for updating the AUFK also.
Reward points if useful.
Regards
Chandralekha -
To my understanding, everytime any object is accessed via a dblink, a transaction is created on the database; even if one merely selects from a table. For example, whenever we were writing PL/SQL, after we were finished accessing data through a dblink we performed a commit to close any open transaction that opened via selects. Using ADF BC, if we create an entity that accesses a table via dblink, what guarantee that transaction sessions are closed after simple selects (no DML)? How would these transactions be closed if data from a db link is simply displayed in an ADF table or referenced via LOV? Is there perhaps some setting that can be set to open connections without transactions?
Reference: http://www.jlcomp.demon.co.uk/faq/dblink_commit.html
Best Regards,
Valonvalon,
This is indeed a tricky one. You are correct that a transaction is started whenever you do any selects that touch a remote object. The problem that I see is that even if you were somehow able to execute a commit after every SELECT statement, the transaction always executes in the context of an application module - if you committed the transaction, you'd also commit any outstanding transaction going on in the AM at the time. In general, this would be a bad thing, although you may be able to ensure that it is OK for your specific use case. I did a quick scan of the APIs to see if I could locate any method that you could possibly override, but didn't locate anything that looked promising.
John
Maybe you are looking for
-
I had over 20.000 bookmarks and I really want them back. Please tell me theres some kind of backup system. Been using Firefox as long as I can remember and I love it!
-
Change of ABAP report properties by RFC
Hi there, does anyone know a function module SE37 (remote capable!!!) which can change the properties of an existing ABAP report (authorization group, title, etc.) Thanks on advance, Andi
-
Error 8191 while creating replication on TimesTen 7.0.1
Hi! I am trying to create a simple replication scheme, details of replication scheme are as follows: create replication testuser1.repscheme1 ELEMENT e TABLE testuser1.reptest MASTER RepTestSpider on "138.227.229.158" SUBSCRIBER RepTestDev on "138.227
-
Hi, I wonder if anybody know how to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++? This is a part of my project: I need to dynamically generate a sine wave voltage signal by some calculation using the data from
-
I just updated my itunes to 11.3.1 and when i went to play music i pressed the play button and it didnt work, same with the fast forward button and replay button. someone please help!