Rollback Without access to the Data Base
How to carry through rollback without having access to the Data Base?
tank you.
Bom, seguinte....
Eu gostaria que ao executar um rollback no JUNavigationBar não fosse acessado o Banco de Dados, e que fosse apenas atualizada a linha corrente com os valores antes da alteração, mas não estou conseguindo fazer isto, ele sempre esta acessando o banco e como eu tenho bastante registros ele esta ficando lento.
Eu implementei a questão da ordenação de tabelas em memória, achei que poderia ter algo parecido para o rollback.
Obs: Eu só deixo o usuário inserir ou alterar uma linha por vez. Por exemplo, ele não pode alterar várias linhas e depois salvar.....ele é obrigado a editar ou inserir uma linha por vez.
Desde já, Obrigado.
Message was edited by:
Edinei Manica
Similar Messages
-
how do i get all my data and info from my old iphone onto my new one without access to the original itunes that i set my first iphone up on? my partners itunes keeps telling me that its going to replace all my apps and data with his stuff
ok so i have my own i tunes library - how do i get all my old apps onto my new library?
-
Access non-Oracle data base from Oracle Data base?
Hi,
I have a system using Oracle data base but i have to query some data in
Access data base called TA_2008.mdb for specific table called FPTrans
My oracle database SID=Ahmed10g my schema is attend/attend.
I have tried to use the Heterogenous Services Generic Connectivity Agents .
I think i have to build the ODBC driver for Access database not for oracle and specify the Access DB name
But i built the driver for oracle.
Please clear the steps for me and correct me if i am wrong .......................
1. Create ODBC driver [microsoft ODBC for Oracle] as File Data Source Name =attendoraclefds
user : attend
password : attend
Server :ahmed10g
2. create intilization Parameter file in the path D:\oracle10gDB\product\10.2.0\db_1\hs\admin
called : initATTENDORACLEFDS.ora
CONTAINS PARAMETERS:
HS_FDS_CONNECT_INFO=FILEDSN=attendoraclefds
HS_FDS_TRACE_LEVEL=ON
3. Edit TNSname.ora file :
attendoraclefds =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = awahaishi_lptp.sepocye.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = attendoraclefds)
(HS = OK)
4. Edit Listener.ora file :
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle10gDB\product\10.2.0\db_1)
(SID_DESC =
(PROGRAM = hsodbc)
(SID_NAME = attendoraclefds)
(ORACLE_HOME = D:\oracle10gDB\product\10.2.0\db_1)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = awahaishi_lptp.sepocye.com)(PORT = 1521))
5. Restart the listener
6. create the data base link:
CREATE DATABASE LINK accessDB
CONNECT TO attend IDENTIFIED BY attend
USING 'attendoraclefds';
select * from EMP_JOBS@accessDB;
Error occures say :
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-28541: Error in HS init file on line 9.
ORA-02063: preceding 2 lines from AAL
Edited by: StillYoung on Mar 18, 2009 1:10 AMPlease see if the following link is helpful:
a question about transparent gateway,sb help me plz!! -
The data base DLL 'crdb_dao.dll' could not be loaded.
This has been posted in other threads but I've not seen a final resolution.
I used VS2008 to create an application that includes Crystal Reports and One Click in VS2008 to create a runtime system to distribute my application. The system installs and runs properly on a 32 bit system but fails to run on a 64 bit system. I get a message on the 64 bit system that says
The data base DLL 'crdb_dao.dll' could not be loaded.
I cannot find the crdb-dao.dll module on the 64 bit system but can find it on the 32 bit system. Can anyone tell me how to overcome this problem?
Thanks!
JohnHi John,
Moved to .NET Developer Forum. As noted in those other threads, there is no 64 bit version of the DAO driver. Your only option is to use ODBC or OLE DB.
No plans to create one because I don't Microsoft does NOT support their Access driver in 64 bit modes. See this Microsoft article on the history and supportability of DAO:
http://msdn.microsoft.com/en-us/library/ms810810.aspx
In this article it states:
There is no 64-bit version of the Jet Database Engine, the Jet OLEDB Driver, the Jet ODBC Drivers, or Jet DAO available. This is also documented in KB article 957570. On 64-bit versions of Windows, 32-bit Jet runs under the Windows WOW64 subsystem. For more information on WOW64, see http://msdn.microsoft.com/en-us/library/aa384249(VS.85).aspx. Native 64-bit applications cannot communicate with the 32-bit Jet drivers running in WOW64.
Thank you
Don
Edited by: Don Williams on Apr 27, 2010 6:56 AM -
How can we make a call to the Data base in the SAP Scripts?
Hi All,
How we make a call to the data base in scripts?
I think we can use the PERFORM statement to achieve the above functionality.
Pls correct me if i am wrong?
Regards
Abhilash.Hello.
If you want to access database in the script itself (not in print program) yes, you can use PERFORM statement.
In your script, use:
/: PERFORM F_FORM IN PROGRAM ZRFIRFS05
/: USING &VAR1&
/: CHANGING &VAR2&
/: ENDPERFORM
Then, create a program ZPROG (ZRFIRFS05 in my case) with a structure like this one:
REPORT ZRFIRFS05 .
FORM f_form TABLES in_par STRUCTURE itcsy out_par STRUCTURE itcsy.
DATA: l_data1(10).
READ TABLE in_par WITH KEY name = 'VAR1'.
CHECK sy-subrc = 0.
l_data1 = in_par-value.
* SELECT .... "YOUR SELECT TO DATABASE
READ TABLE out_par WITH KEY name = 'VAR2'.
CHECK sy-subrc = 0.
out_par-value = l_data3.
MODIFY out_par INDEX sy-tabix.
ENDFORM.
Regards.
Valter Oliveira. -
My deceased brother's IPad was given to me but it is locked and passcode protected. I do not want access to the data on it, but would like to be able to use it. Can it be unlocked and reset to factory settings? Thanks!
You can try this: If you can't update or restore your iOS device
If he had not turned on Find My iPad then it will work, if he had you will run into Activation Lock. If you do run into it you can take a copy of the will (or probate finding if he died without one) and/or a Letter Testamentary and ask if they can look up where he purchased it. If they can, and you have the other documents, they can reset it for you. -
How to delete copyed wrongly in the data base
Hi Gurus,
I copy the cube 0IC_C03 to Z0IC_C03.
After that i went to RSZC--> copy from 0IC_C03 to Z0IC_C03 all the queries, but when i am copying i dint remove the _1 beside each query. when i repeat system telling queries already in the data base. can you tell how to delete and copy freshly.
Points Assure.
Thanks
AmarendraHi,
you can use rszdelete where you can choose the queries and query objects which you want to delete.
After this you can start the copy again.
regards
Cornelia -
Everytime I try to update to iOS5 on my iPhone 4 I get an error containing 0xE while it is backing up data from the iPhone before installing the new operating system. I have done everything suggested in Apple support with no success. I still get the error everytime (about 5 minutes into backing up iPhone data). How can I upgrade to iOS5 without losing all the data on my iPhone (the error message says that if I continue I will lose all data on the phone)? If I have already synced the phone before upgrading the OS, would I be able to restore my data after installing the new OS by syncing after the OS upgrade is complete? Any help would be greatly appreciated.
I had the same problem today and was able to resolve it without having to do a restore or reset. The problem had something to do with my mail accounts. The upgrade reset my mail settings, switching both my gmail and my .mac mail to "archive all mail". I went into the General Settings, disabled that setting, and resynced the phone. The "other" storage allottment dropped back down to less than a gig.
Before you restore or reset, I would try that first. -
How to know who has created a particular record in the data base table
Hi All...
Can any one tell me how to track the information about who has entered the records in to the data base table....
Thanks in advance...You could check the Created By and Created On fields if your tables contains these fields.
OR
You could check the table DBTABLOG if table logging is enabled for the table
OR
You could check the Change document tables CDHDR and CDPOS.
-Kiran
Please mark useful answers -
Insertion of image in the data base - Help-me!!!!
hello for all..., Well, somebody has some example of insertion of image in the data base saw upload, using JSP (Scriptlets)?
or some example that I can insert in the bank the name of the image, and the image in a directory!???????
Thank�s!if u r using sql server then u can define a column as TEXT and insert the file as binayr data, along with that u can store the file name.
While retirving u can creat a fileiputstream and read the binary data and displya the image in the browser.
Another way is to use upload servlet and store the image files in the server hard drive and store the image name and path in datbase . -
Custom field values are not storing in the data base
Hi Friends,
We have created one Custom field called ZZ_APPROVER in Rfx Header , we have included this field in the below stuctures
1.INCL_EEW_PD_HEADER_CSF_BID
2.INCL_EEW_PD_HEADER_CSF
The data type of this field ( ZZ_APPROVER ) is CHAR and the length is 1 . we have given 2 fixed values in Value Range
1 -
X+2 Approver
2 --- Provisional Approver
so when we select either 1 or 2 ( in Drop Down ), its displaying properly on RFx Screen, but when we try save this document the values are not strong in the data base.
Can any one give me idea why its not stroring in the data base
Thanks in Advance
Kumar SriniHi Ganapathy,
A Record is created in table BBP_PDHSC , for other z fields, the values are stroing , but for this field ( ZZ_APPROVER ) [ drop down list ], the value is not stroring
Thnx
Kumar Srini -
Function module updating the data base table
Hi,
This post is regarding the function module not updating the data base table.
I am calling the FM SD_SHIPMENT_HEADER_CHANGE inside the ZFM. It's returning success an changing the table c_xvttk_new with the new TDLNR value. But it's not updating the Shipment table VTTK-TDLBR or VT02N Forwarding agent.
When I directly updating Forwarding agent in VT02N it's updating fine.
Please let me know what the extra step need to be included to update or COMMIT the FM for updating
Forwarding Agent(VTTK-TDLNR).
Best Regards,
Maheshhi friend,
This link wont five u the complete help but if u ananyse it then it might provide u some idea......
BAPI change shipment doc
regards
kanishak -
Featching Data From The Data Base Using DI API in Matrix
Hi
All of u i am shahid i faced a problem when i retrive
the selected data from the data base using matrix plz.
Healp me!.
Thanks
Mohd Shahid.
SAP Techinical Consultent
Option Strict Off
Option Explicit On
Friend Class UseMatrix
'// This parameter will use us to manipulate the
'// SAP Business One Application
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private oForm As SAPbouiCOM.Form
Private oMatrix As SAPbouiCOM.Matrix
Private oColumns As SAPbouiCOM.Columns
Private oColumn As SAPbouiCOM.Column
'// declareing a DB data source for all the Data binded columns
Private oDBDataSource As SAPbouiCOM.DBDataSource
'// declaring a User data source for the "Remarks" Column
Private oUserDataSource As SAPbouiCOM.UserDataSource
' This Function is called automatically when an instance
' of the class is created.
' Indise this function
Public Sub New()
MyBase.New()
'// set SBO_Application with an initialized application object
SetApplication()
'// Create the UI
CreateFormWithMatrix()
'// Add Data Sources to the Form
AddDataSourceToForm()
'// Bind the Form's items with the desired data source
BindDataToForm()
'// Load date to matrix
GetDataFromDataSource()
'// Make the form visible
oForm.Visible = True
End Sub
Private Sub SetApplication()
'// Use an SboGuiApi object to establish connection
'// with the SAP Business One application and return an
'// initialized appliction object
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
'// by following the steps specified above, the following
'// statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
'// connect to a running SBO Application
Try ' If there's no active application the connection will fail
SboGuiApi.Connect(sConnectionString)
Catch ' Connection failed
System.Windows.Forms.MessageBox.Show("No SAP Business One Application was found")
End
End Try
'// get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
'SBO_Application.MessageBox("Hello World")
End Sub
Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent
Select Case EventType
Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
SBO_Application.MessageBox("A Shut Down Event has been caught" & _
Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")
'// terminating the Add On
System.Windows.Forms.Application.Exit()
End Select
End Sub
Private Sub CreateFormWithMatrix()
'// Don't Forget:
'// it is much more efficient to load a form from xml.
'// use code only to create your form.
'// once you have created it save it as XML.
'// see "WorkingWithXML" sample project
'// we will use the following object to add items to our form
Dim oItem As SAPbouiCOM.Item
'// we will use the following objects to set
'// the specific values of every item
'// we add.
'// this is the best way to do so
Dim oButton As SAPbouiCOM.Button
Dim oStaticText As SAPbouiCOM.StaticText
Dim oEditText As SAPbouiCOM.EditText
'// The following object is needed to create our form
Dim creationPackage
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = "UidFrmMatrix14"
creationPackage.FormType = "TypeFrmMatrix14"
'// Add our form to the SBO application
oForm = SBO_Application.Forms.AddEx(creationPackage)
'// Set the form properties
oForm.Title = "Quality Check"
oForm.Left = 336
oForm.ClientWidth = 620
oForm.Top = 44
oForm.ClientHeight = 200
'// Adding Items to the form
'// and setting their properties
'// Adding an Ok button
'// We get automatic event handling for
'// the Ok and Cancel Buttons by setting
'// their UIDs to 1 and 2 respectively
oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 5
oItem.Width = 65
oItem.Top = 170
oItem.Height = 19
oButton = oItem.Specific
oButton.Caption = "Ok"
'// Adding a Cancel button
oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 75
oItem.Width = 65
oItem.Top = 170
oItem.Height = 19
oButton = oItem.Specific
oButton.Caption = "Cancel"
'// Adding a Text Edit item
'oItem = oForm.Items.Add("txtPhone", SAPbouiCOM.BoFormItemTypes.it_EDIT)
' oItem.Left = 265
'oItem.Width = 163
'oItem.Top = 172
'oItem.Height = 14
'// Adding an Add Phone prefix column button
' oItem = oForm.Items.Add("BtnPhone", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
' oItem.Left = 160
' oItem.Width = 100
' oItem.Top = 170
' oItem.Height = 19
' oButton = oItem.Specific
' oButton.Caption = "Add Phone prefix"
'// Add the matrix to the form
AddMatrixToForm()
End Sub
Private Sub AddMatrixToForm()
'// we will use the following object to add items to our form
Dim oItem As SAPbouiCOM.Item
'// we will use the following object to set a linked button
Dim oLink As SAPbouiCOM.LinkedButton
'// Adding a Matrix item
oItem = oForm.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
oItem.Left = 5
oItem.Width = 500
oItem.Top = 5
oItem.Height = 150
oMatrix = oItem.Specific
oColumns = oMatrix.Columns
'// Adding Culomn items to the matrix
oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "#"
oColumn.Width = 30
oColumn.Editable = False
'// Add a column for Item Code
oColumn = oColumns.Add("DSItemCode", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Item Code"
oColumn.Width = 40
oColumn.Editable = True
'// Link the column to the ITEM master data system form
oLink = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
oColumn = oColumns.Add("DSItemName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Item Name"
oColumn.Width = 80
oColumn.Editable = True
'// Add a column for BP Card Phone
oColumn = oColumns.Add("DSWhs", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Ware House"
oColumn.Width = 40
oColumn.Editable = True
'// Add a column for BP Card Phone
oColumn = oColumns.Add("DSQuantity", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Quantity"
oColumn.Width = 40
oColumn.Editable = True
'// Add a column for Combo Box
oColumn = oColumns.Add("DSQuality", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oColumn.TitleObject.Caption = "Quality"
' oColumn.ValidValues.Add("OK", "")
'oColumn.ValidValues.Add("NOT OK", "")
oColumn.Width = 40
oColumn.Editable = True
oColumn = oColumns.Add("DSReport", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Remarks"
' oColumn.ValidValues.Add("OK", "")
'oColumn.ValidValues.Add("NOT OK", "")
oColumn.Width = 40
oColumn.Editable = True
'// Add a column for BP Card Phone
' oColumn = oColumns.Add("DSPhoneInt", SAPbouiCOM.BoFormItemTypes.it_EDIT)
' oColumn.TitleObject.Caption = "Int. Phone"
'oColumn.Width = 40
'oColumn.Editable = True
End Sub
Public Sub AddDataSourceToForm()
'// every item must be binded to a Data Source
'// prior of binding the data we must add Data sources to the form
'// Add user data sources to the "International Phone" column in the matrix
' oUserDataSource = oForm.DataSources.UserDataSources.Add("IntPhone", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
'// Add DB data sources for the DB bound columns in the matrix
oDBDataSource = oForm.DataSources.DBDataSources.Add("OITW")
End Sub
Public Sub BindDataToForm()
'// getting the matrix column by the UID
oColumn = oColumns.Item("DSItemCode")
'oColumn.DataBind.SetBound(True, "", "DSCardCode")
oColumn.DataBind.SetBound(True, "OITW", "ItemCode")
'oColumn = oColumns.Item("DSItemName")
'oColumn.DataBind.SetBound(True, "OITW", "ItemName")
oColumn = oColumns.Item("DSWhs")
oColumn.DataBind.SetBound(True, "OITW", "WhsCode")
oColumn = oColumns.Item("DSQuantity")
oColumn.DataBind.SetBound(True, "OITW", "U_QCStock")
'// to Data Bind an item with a user Data source
'// the table name value should be an empty string
' oColumn = oColumns.Item("DSPhoneInt")
'oColumn.DataBind.SetBound(True, "", "IntPhone")
End Sub
Public Sub GetDataFromDataSource()
'// Ready Matrix to populate data
oMatrix.Clear()
oMatrix.AutoResizeColumns()
'// Querying the DB Data source
oDBDataSource.Query()
'// setting the user data source data
'oUserDataSource.Value = "Phone with prefix"
oMatrix.LoadFromDataSource()
End Sub
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If (pVal.FormUid = "UidFrmMatrix") Then
If ((pVal.itemUID = "BtnPhone") And _
(pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
(pVal.Before_Action = False)) Then
AddPrefix()
End If
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And _
(pVal.Before_Action = False)) Then
SBO_Application.MessageBox("Form Unloaded, Addon will terminate")
System.Windows.Forms.Application.Exit()
End If
End If
End Sub
Public Sub AddPrefix()
Dim i As Integer
Dim PhoneExtCol As SAPbouiCOM.Column
Dim newPhone As String
Dim oItem As SAPbouiCOM.Item
Dim oEditTxt As SAPbouiCOM.EditText
'// Get the prefix edit text item
oItem = oForm.Items.Item("txtPhone")
oEditTxt = oItem.Specific
'// Flush user input into datasources
oMatrix.FlushToDataSource()
'// Get the DBdatasource we base the matrix on
oDBDataSource = oForm.DataSources.DBDataSources.Item("OCRD")
'// Iterate all the records and add a prefix to the phone
For i = 0 To oDBDataSource.Size - 1
newPhone = oDBDataSource.GetValue("phone1", i)
newPhone = newPhone.Trim(" ")
oDBDataSource.SetValue("phone1", i, oEditTxt.String + newPhone)
Next
'// Load data back to
oMatrix.LoadFromDataSource()
End Sub
End ClassHi Shahid,
I am not sure what your question is. The code you pasted looks like the MatrixAndDataSources example that comes with the SDK. What are you trying to do?
Thanks,
Adele -
Can I view contacts backed up to the iCloud from my old iPhone without actually restoring the data on a new device?
If you have a backup, yes, You can restore the new device from the old backup. Without a backup, no.
Without a backup, and without the device, you no longer have any of your data to put on anything anymore.
You can redownload purchased content from the iTunes and App stores - just use the same AppleID as you did with the old device. -
Inconsistency in Data Replication to the Data Base MEREP_207 (SAP Mobile)
Hello
I have the following problem in WAS 7.00 SP16 (Usage type Mobile Infrastructure):
Scanario: Backend driven replication (T51, Server Driven), SyncBO = Reservation
Case A:
When modifying data in the backend with transaction MB22, in some cases (Replicated database is empty for that SyncBO), all the items (010) are generated in the data base MEREP_207 which PARENT_SYNC_KEY = '00000000 all the items with the same TOP = '00000000')
Case B:
When modifying in the backend with the transaction data with MB22, hundreds of records (items) are generated in the data base MEREP_207,
with the same PARENT_SYNC_KEY, but with a different R3KEY (items with the same header). R3KEY here represents the R3KEY of the TOP plus a sequence.
No one of the SAP Notes I searched applies to the current version of WAS.
Thank you very much for the help.
Best regards.Hi,
it seems you key filed has the same value always or you do not have a key field - what I do not get if you talk about Notes - are you using a standard SAP Mobile App or is you mobile AP custom build?
Well, if I get it right you end up with just one dataset instead of 100 and always the last one overwrites the one before (cause SyncKey is the same)?
In that case, please check you data model for KeyFields and check that these are different. What do you do in the getlist and getdetail handlers?
Oliver
Maybe you are looking for
-
I downloaded the Ken Burns The Civil War series to itunes and did a sync to my ipad, but I cannot figure out how to play the series. It doesn't even show up anywhere.
-
I have a question regarding emails being marked as unread when syncing with an exchange account. In the evening I can see I have 10 unread emails on my exchange account. I leave them unread. The following day, at work, I view and read all my mails fr
-
can't figure out how with the sound icon in windows 7. Is there no plain vanilla user guide for the new HP Pavilions? there were none on the HP site for my model. Thanks.
-
Warning: SERIOUS Data Loss Bug in 10.5.2 Time Machine
I've been backing up an aluminum 10.5.1 iMac and two other computers to a network drive on a 10.5.1 MDD G4 for several months. After updating both machines to 10.5.2 this morning, Time Machine deleted ALL of my backups for the iMac. system.log tells
-
Switching apple Id in app store.
Having a bit of an issue regarding updating my applications via App-store. As soon as i click update it tells me to logg in with my mothers email, I cant choose another account and if i click cancel ill just get sent back to the previous page. My mom