Updating the database using z bapi without deleting existing data
hi every body,
i am using a zbapi in that i am updating a table which is having 40 fields but i am modifying the only four fields but it is deleting the remaining field entries
i am now attaching the code what i have used
ZMPETS_SHIPHDR-SHIPDOCNO = wf_shipdocno.
ZMPETS_SHIPHDR-VENACCEPTIND = VENACCEPTIND.
ZMPETS_SHIPHDR-LASTCHANGEDT = SY-DATUM.
ZMPETS_SHIPHDR-LASTCHANGEBY = SY-UNAME.
ZMPETS_SHIPHDR-LOEKZ = ' '.
CALL FUNCTION 'Z_MPETS_SAVE_SHIPHDR'
EXPORTING
zmpets_shiphdr_save = ZMPETS_SHIPHDR.
*COMMITING THE UPDATION.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
RETURN = RETURN.
UPDATING THE SHIPMENT ACTIVITY TABLE.
ZMPETS_SHIPACTIV-PETSDOCNUMBER = wf_shipdocno.
ZMPETS_SHIPACTIV-LOEKZ = ' '.
ZMPETS_SHIPACTIV-ACTIVITY = '20'.
CALL FUNCTION 'Z_MPETS_SAVE_SHIPACTIV'
EXPORTING
zmpets_shipactiv_save = ZMPETS_SHIPACTIV.
in the upper function module the code
is
modify zmpets_shipactiv from zmpets_shipactiv_save.
we have to use this compulsory as it is client's standard
*COMMITING THE UPDATION.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
RETURN = RETURN.
kindly give me reply
i will reward the points for a best reply
Welcome to SDN!
You will need to pass all 40 fields into your BAPI structure (ZMPETS_SHIPACTIV). The problem is that when you use the modify from statement, the BAPI updates the DB as-is from the BAPI structure, and since you are passing it only 4 values, it defaults the others to space.
Do this:
SELECT * FROM ZMPETS_SHIPACTIV WHERE <specify key fields here>
and then
ZMPETS_SHIPACTIV-PETSDOCNUMBER = wf_shipdocno.
ZMPETS_SHIPACTIV-LOEKZ = ' '.
ZMPETS_SHIPACTIV-ACTIVITY = '20'.
CALL FUNCTION 'Z_MPETS_SAVE_SHIPACTIV'
EXPORTING
zmpets_shipactiv_save = ZMPETS_SHIPACTIV.
This should work.
Hope this helps.
Sudha
Similar Messages
-
Update the database using bc4j tag
hi
i am new to struts based bc4j tag.
i have created the one application using the struts based jsp for business component.
this wizard create a web application , with update , delete facility record. and number of pages like :
1) DataEditComponent.jsp
2) DataQueryComponent.jsp
3) DataScrollerComponent.jsp
4) DataTransacationComponet.jsp
5) viewnameBrowse.jsp
6) viewnameEdit.jsp
7) viewnameQuery.jsp
8) description.html
9) content.html
etc...
and number of java files
1) viewnameBrowsAction.java
2) viewnameEditAction.java
3) viewnameForm.java
5) viewnameFormBeaninfo.java
6) viewnameQueryAction.java
and
applicationResource.properties and struts-config.xml.
this application run sucessfully,
but when i clicked on the edit and after change the record and finally update the record internally it update the record in the view object or application module.
but it dont update the data base.
also, the DataTransacationComponent.jsp page display the link like
commit and Rollback
when i click on the commit link it invoked the appropriate java file (Transaction.java) which is provided by the oracle itself.
but it dosent update the record in the database.
last few days i have try to identify , any other requirement which one i was missing
so, please help meI have a form with form elements like text box,list box with multiple values. I want to insert this using xsql and also update the same. Is there any method by which i can do this by just submitting the form to xsql as posted xml document with out using xsl as transform attribute and posting the xml with ROWSET/ROW form directly which includes my form element values as sub nodes. The easy way of doing is create a view (either simple or object) and write an INSTEAD OF trigger on the view. You can keep insert-request in the xsql and put logic in the trigger whether to update or insert the record.
-
How can I update the music on my classic without replacing existing music?
So I've been at this for a while now and I'm very afraid to sync my classic worrying that I will replace some existing music. I haven't synced my ipod with my new computer yet and am worried it will replace music that's been on my ipod since I got it. I know, I know I should have a back up of my music but alas I don't have everything. There are some really great albums that I don't have backup of and I can't seem to retrieve it off my ipod as it is. Any suggestions? I just want to add new music that I have to my ipod without deleting old music.
Please Help!
Thanks a bunch1: Make sure itunes on your new computer is set to prevent ipods from syncing automatically when ipod is connected. Do this by going to edit/preferences/devices.
2: Connect ipod. Under summary set it to manually manage music.
3: Now to add music without erasing what's already on your ipod, highlight whatever songs or albums you want to add from the itunes library and drag them to the ipod showing in the left pane under devices.
Hold the control key down while selecting music to highlight as much music as you want, them drag the the whole kaboodle to the left. Only the highlighted music will then sync all at once and nothing else will be deleted.
I think this should be the default setup when installing itunes. It would save a lot of people the headache of losing all their music when first connecting their ipod to itunes.
Let us know if this is what you were looking for. -
Console Application not updating the database
Dear all,
I am new to c# development. I have a console application front end in program.cs
I have a local database on visual studio.
When I execute the stored procedure locally on the database the data is getting updated in the database.
When I update the same through Console Application - the data is not appearing in the database.
Can somebody throw light on this? Where I am missing
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace AssetApp
class Program
static void Main(string[] args)
bool value = true;
while (value)
value = getdisplay();
//Console.ReadLine();
//value = false;
private static bool getdisplay()
Console.WriteLine("-------------------------------------- ");
Console.WriteLine("---------------------------------------");
Console.Clear();
Console.WriteLine("----------Asset Application------------");
Console.WriteLine(" 1 Company Asset ");
Console.WriteLine(" 2 Standby Laptop Register ");
Console.WriteLine(" 3 Scrap Register ");
Console.WriteLine(" 4 Purchase Register ");
Console.WriteLine(" 5 Service Call Report ");
Console.WriteLine(" 6 IT Helpdesk ");
Console.WriteLine(" 7 Exit ");
Console.WriteLine("---------------------------------------");
string input = Console.ReadLine();
switch (input)
case "1":
CompanyAsset();
break;
case "2":
Console.WriteLine("Standy Laptop Register");
break;
case "3":
Console.WriteLine("Scrap Register");
break;
case "4":
Console.WriteLine("Purchase Register");
break;
case "5":
Console.WriteLine("Service call Report");
break;
case "6":
Console.WriteLine("IT Helpdesk");
break;
case "7":
return false;
default:
break;
return true;
private static void CompanyAsset()
Console.WriteLine("------Company Asset------------------------");
Console.WriteLine("Type the Department Name");
string departmentName = Console.ReadLine();
Console.WriteLine("Type the First Name");
string firstName = Console.ReadLine();
Console.WriteLine("Type the Last Name");
string lastName = Console.ReadLine();
Console.WriteLine("Type the User Name");
string userName = Console.ReadLine();
Console.WriteLine("Type the Model Number");
string modelNumber = Console.ReadLine();
Console.WriteLine("Type the AssetTypeID");
string assetTypeID = Console.ReadLine();
Console.WriteLine("Type the SerialNumber");
string serialNumber = Console.ReadLine();
Console.WriteLine("Type the WarrantyStartDate");
DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
Console.WriteLine("Type the WarrantyEndDate");
DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
Console.WriteLine("Company");
string company = Console.ReadLine();
Console.WriteLine("EngineerID");
string engineerID = Console.ReadLine();
Console.WriteLine("ITHelpdeskID");
string itHelpdeskID = Console.ReadLine();
Console.WriteLine("EmpID");
string empID = Console.ReadLine();
//Handshake
SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
//open the database
myNewConnection.Open();
//create command
SqlCommand myCommand = myNewConnection.CreateCommand();
//using the stored procedue to update the database using parameters add
myCommand.CommandText = "InsertAsset";
myCommand.CommandType = CommandType.StoredProcedure;
myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
myCommand.Parameters.Add(new SqlParameter("@Company", company));
myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
int recordsAffected = myCommand.ExecuteNonQuery();
if (recordsAffected == 1)
Console.WriteLine("Successful your entry");
else
Console.WriteLine("Your entry is not successful");
myNewConnection.Close();
Console.WriteLine("");
Console.WriteLine("Press Enter to continue");
Console.ReadLine();
public static void StandbyLaptopRegister()
Console.WriteLine("-------------------------------");
Console.WriteLine("Select the Date & Time");
string DateTime = Console.ReadLine();
Console.WriteLine("");
ALTER PROCEDURE dbo.InsertAsset
@DepartmentName NVARCHAR(50),
@FirstName NVARCHAR(50),
@LastName NVARCHAR(50),
@UserName NVARCHAR(50),
@ModelNumber NVARCHAR(50),
@AssetTypeID INT,
@SerialNumber NVARCHAR(50),
@WarrantyStartDate SMALLDATETIME,
@WarrantyEndDate SMALLDATETIME,
@Company NVARCHAR(50),
@EngineerID INT,
@ITHelpdeskID INT,
@EmpID INT
@parameter1 int = 5,
@parameter2 datatype OUTPUT
AS
/* SET NOCOUNT ON */
BEGIN
INSERT CompanyAsset(DepartmentName,
FirstName,
LastName,
UserName,
ModelNumber,
AssetTypeID,
SerialNumber,
WarrantyStartDate,
WarrantyEndDate,
Company,
EngineerID,
ITHelpdeskID,
EmpID)
VALUES(@DepartmentName,
@FirstName,
@LastName,
@UserName,
@ModelNumber,
@AssetTypeID,
@SerialNumber,
@WarrantyStartDate,
@WarrantyEndDate,
@Company,
@EngineerID,
@ITHelpdeskID,
@EmpID)
/*RETURN @@IDENTITY*/
END
Cheers
SathyaHello,
Usually when I see
AttachDbFilename=|DataDirectory| ...
The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
copies the database each time you build the project thus overwrites the last time you ran the project.
I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
Of course this may not be the issue but may very well be too.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Getting error while deleting rows from the database using the View Object
Hi All,
I am using jdev 11.1.1.4.0. I am removing the rows from the database using viewobject( quering the viewobject to find the records i want to delete).
I am using vo.removeCurrentRow(0). Before this statement I am able to get the rows I want to delete.
after that i am doing am.transaction.commit(). But I am getting the error..
javax.faces.el.EvaluationException: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1117)
at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:553)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8134)
at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5863)
at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6369)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6551)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3275)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3078)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2088)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2369)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
... 53 more
Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:869)
Please give suggestions...
Thanks
KanikaHi,
First Run Application module and confirm whether model project is OK,Cause for the Error is Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
check:
Issues with table/column name length
identifier is too long
I guess following error occurred because above issue
JBO-26080: DMLException
Cause: An unexpected exception occurred while executing the SQL to fetch data for an entity instance or lock it.
Action: Fix the cause for the SQLException in the details of this exception.
See:
http://download.oracle.com/docs/cd/A97337_01/ias102_otn/buslog.102/bc4j/jboerrormessages.html#26080Hope you will helpful -
Using Tabstrip update the database table
Hi Guy's,
I created two screens(100 & 110).
Click 1 pushbutton HRP1000 related information is displayed.
Click 2 pushbutton it displays HRP1001 relatd information.
worked to read the data from the Database tables and output displayed sucessfuly . However i want to entered data in those fields wants to update to database table.
Please friends help me how to work this senario.
Thanks and Regards,
Sai.Hi Guy's,
To update the database records, wrote the logic in PAI
WHEN 'SAVE'.
INSERT HRP1001.
INSERT INTO HRP1001 VALUES wa_P2.
it displaying an error message " the work area wa_p2 is not long enough.
and also i tried using it_p2
it displaying an error message " you can't use internal table as work area".
Please help me friends it is very urgent.
Thanks and Regards,
Sai. -
Restore database in the past using only archivelog without full backup
Hi,
We have a 11g Oracle database up & running.
We don't have a full backup, but we have all archived log from the last 2 months.
Is it possible to "restore" the database using archived logs in a date in the past?
I mean for example 3 days ago?
Thanks in advance.user8973191 wrote:
Oh, ok Vijayaraghavan K.
Thx for u help.
And about the users ?
i need to create the "same" user in another machine ?
For example:
In this machine i using the "system" user, where i have my tables.
Another machine, when i restore, my tables will go to the "system" user too? or i can choice? or i need to create one?A true backup is a copy of the data files at the file/block level. The restore is therefore a restore of the data files/blocks. Applying the redo (archive logs) is also done at the block level. None of that knows or cares (or needs to know or care) about logical objects (such as users, tablespaces, tables, rows, etc) within the database. so if you do a proper restore, you are restoring files to a consistent state and thus everything that was defined within those files will be there when restored. -
An error occurred while attempting to update the database
Hi
the update from 2.82 to 2.9.0 fails for me with following message
An error occurred while attempting to update the database.
the update log ends like this
[Microsoft][ODBC SQL Server Driver][SQL Server]DELETE failed because the
following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify
that SET options are correct for use with indexed views and/or indexes on
computed columns and/or filtered indexes and/or query notifications and/or XML
data type methods and/or spatial index operations.
1> 2> 3> [16:56:20] RunShellCommand: Command: osql exited with code: 1
[16:56:20] RunShellCommand: Exit code indicates failure.
[16:56:20] UpdateDatabase: Failed to run database update script.
hope that anyone can solv this for meIt seems that my problem is with one of ldapservers.
When the periodic update runs.
then there will be error periodic update failed
log file mdm_error looks like this
[00:01:46] Failed running query:
IF NOT EXISTS(SELECT LDAPContainerName FROM LDAPContainers WHERE LDAPContainerName=? AND LDAPServerSAKey = ?)
BEGIN INSERT INTO LDAPContainers(LDAPContainerName, DisplayName, LDAPContainerType, ParentContainerSAKey,
LDAPServerSAKey, LDAPMemberType, AllowHandsOffEnrollment) VALUES (?,?, 2,
(SELECT LDAPContainerSAKey FROM LDAPContainers WHERE LDAPContainerName =? AND LDAPServerSAKey =?) , ?, 1, 1) END
SQLError:
I think this is the reason that the upgrade fails.
How can i solve this? -
Updating the database by the transaction SU01 defaults data
Hi All,
Is there any Function Module, or method , or any other way to update the database when i change the data of defaults ( tab )
Log on data like time format, date format and decimal notation.
Regards,
Lakshmi.you can use the BAPI
BAPI_USER_CHANGE -
i have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?
It has always been very basic to always maintain a backup copy of your computer for just such an occasion. Use your backup copy to put everything back.
If you have failed to bakup, then you can transfer itunes purchases from an ipod: File>Transfer Purchases -
Regardig error while updating the database table
hi experts,
i m trying to update the database table from the values containig in my internal table ,,,but the system is giving this error plz help me::::
The type of the database table and work area (or internal table)
"ITAB_UPDATE" are not Unicode convertible. Unicode convertible.
my internal table name itab_update and the database table name yitab.i m using this statement::
modify yitab from itab_update.Hi
1. You have to Declare the Itab with the same structure as DB table.
2. Use the statement
Modify <DBtable> from TABLE <itab>.
or
Update <DBtable> from TABLE <itab>.
Hope this will solve.
Reward .....if so.
Regards. -
I have a school ipad with iCloud using a different ID (my school email address) . I am leaving and want to buy my own ipad and transfer all my data and docs to my personal iCloud account but don't know how to do this without deleting all data and photos?
Heya Katie!!
So, the article you have there, HT4895, is pretty good. Just look at the FAQ section of it.
But basically, you will want to create a backup on your computer through iTunes...Just plug your current iPad into it and make sure your iPad and iTunes are logged in with the same Apple ID. At that point, just create a backup.
When you get your new iPad, and before you plug it in or set it up, follow the directions in this link to change your Apple ID. http://support.apple.com/kb/HT5621?viewlocale=en_US
Once you have that done, plug your new iPad into your computer to sync up with iTunes. Follow the directions for Restore from Backup and it should bring all that info back to your new iPad.
And changing your Apple ID email info will allow you to have your own!!! This should solve all your issues and GL!!! -
Updating a database using EJB Inheritance
I am new to EJB's, so please forgive my ignorance. I creating the following classes that inherit from each other along with a method to update my database:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING)
public abstract class ObjectA implements java.io.Serializable {
protected String name;
protected String desc;
protected String type;
@Entity
@DiscriminatorValue("OBJECTB")
public class ObjectB extends ObjectA implements java.io.Serializable {
protected String str_b;
public ObjectB(String name, String desc, String type, String str_b) {
this.name = name;
this.desc = desc;
this.type = type;
this.str_b = str_b;
@Entity
@DiscriminatorValue("OBJECTC")
public class ObjectC extends ObjectB implements java.io.Serializable {
private String str_c;
public ObjectC(String name, String desc, String type, String str_b, String str_c) {
this.name = name;
this.desc = desc;
this.type = type;
this.str_b = str_b;
this.str_c = str_c;
public class MyFacade implements ServletContextListener {
@PersistenceUnit(unitName="Pu")
private EntityManagerFactory emf;
@Resource
private UserTransaction utx;
public MyFacade() { }
public void contextDestroyed(ServletContextEvent sce) {
if (emf.isOpen()) emf.close();
public void contextInitialized(ServletContextEvent sce) {
ServletContext context = sce.getServletContext();
context.setAttribute("MyFacade", this);
public void updateObject(ObjectA obj) {
EntityManager em = emf.createEntityManager();
try{
utx.begin();
em.merge(obj);
utx.commit();
} catch(Exception exe){
try {
utx.rollback();
} catch (Exception e) {}
throw new RuntimeException("Error updating obj", exe);
} finally {
em.close();
}If I do the following:
String name = "test name";
String desc = "updating object c";
String type = "OBJECTC";
String b = "b";
String c = "c";
MyFacade myf = new MyFacade();
ObjectC objC = new ObjectC(name, desc, type, b, c);
myf.updateObject(objC);
.....In my database, only the values associated with ObjectC get updated and nothing from ObjectA or ObjectB get updated in the database. Does the "merge" method not work on inheritance. How do I update my database using inheritance?
Thanks!
Message was edited by:
FourierXFormdid you only have ISQL for testing it?
Can you debug the form and look, if someone happens - exceptions, ... ?
after the update you can use
message (SQL%ROWCOUNT); pause ;
to look, how many records were updated -
Store and Display doc/pdf files in the database using Forms
Hi all,
How can i store and display doc/pdf files in the database using Forms 10g?.
ArifHow to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running, using WebUtil 1.06.
Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
Feel free to copy this note to a text editor, and do a global find/replace on
[OraHome] with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.
1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
2) Copy or move jacob.jar and jacob.dll
[JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
cd [JacobStage]
copy jacob.jar [OraHome]\forms\java\.
copy jacob.dll [OraHome]\forms\webutil\.
The Jacob staging area is no longer needed, and may be deleted.
3) Sign frmwebutil.jar and jacob.jar
Open a DOS command prompt.
Add [OraHome]\jdk\bin to the PATH:
set PATH=[OraHome]\jdk\bin;%PATH%
Sign the files, and check the output for success:
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
[OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.
Start SQL*Plus as SYSTEM, and issue:
CREATE USER webutil IDENTIFIED BY [password]
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/[password]@[connectstring]
@[OraHome]\forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
Reconnect as SYSTEM, and issue:
grant execute on webutil_db to public;
5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Start the OC4J instance
7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
It is important to generate the PLX, to avoid the FRM-40039 discussed in
Note 303682.1
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
8) Create a new FMB.
Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
There is no need to Subclass the WebutilConfig object.
Attach the Webutil.pll Library, and remove the path.
Add an ON-LOGON trigger with the code
NULL;
to avoid having to connect to an RDBMS (optional).
Create a new button on a new canvas, with the code
show_webutil_information (TRUE);
in a WHEN-BUTTON-PRESSED trigger.
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil
10) Run your form.sarah -
Application Compatibility does not update the database.
Hi,
I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
Any Help would be appreciated.
Thanks
Rakesh Patel
rakesh patelHi Rakesh,
I am not sure if you have resloved your issue.
But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
If you would like further assistance, please post back and we will be always here to help you.
Any concern about this mark behavior, you can just unmark it.
Thanks for your understanding.
Regards,
Kelvin hsu
TechNet Community Support
Maybe you are looking for
-
Jabber Cannot Control Desk Phone
I know, I know. A well-worn topic. But it's just not happening for me, and I'm new to Presence 9.1 This is a new installation. Also using CUCM 9.1 and Jabber 9.2.6. I don't even know where the Jabber error logs are. Anyway, when I try to get Jabb
-
No imports while burning a disc image
While I am burning a disc image in iDVD I am trying to import a movie to iMovie through a DV box. While the disc image is burning, iMovie will not pick up the box, or any imports. When its done burning, iMovie goes back to detecting the box. Anyone k
-
When punching in - can you adjust the count in feature to be longer than one measure?
-
Can I trade Macbook Pro's and all it's contents with another one?
Does anyone know how to trade MacBook pros? My wife and I want to swap macbooks it that possible to swap all their contents?
-
How to Use Swing-ADF in a Three-Tier-Archiitecture
I am currently avaluating Swing-ADF (11g) and I wonder how I can leverage it in a three-tier, rich-thin-client-environment. When I bind a control, normally I would do it directly to the database. As I want to have my business logic and database acces