Regarding update data in database
Hi Abap Gurus,
i have selection screen such that one list box in that 7 tables are there.
one field for upload the excel file from desktop. my requirement is that when the user click on the field and after upload a Excel file then user select that particular table from list box and after executing the upload data has to be updated in database through posting in transaction VA41. since i am working with Open Contracts.
i found a Bapi Function Module in SDN that is BAPI_CONTRACT_CREATEFROMDATA.
how to approach this issue. simply i cannot use GUI_UPLOAD function module. and BAPI_CONTRACT_CREATEFROMDATA.
<< Do not offer points >>
Edited by: Rob Burbank on Jul 31, 2010 8:53 PM
Hi srinu_varahalu ,
To select and fill the values in the listbox for the table names you can use
TYPE-POOLS : VRM
using this VRM and function module 'VRM_SET_VALUES' you can fill the values in the listbox.
Now using the report events select the particular table, then you can go for uploading the data by using BDC, LSMW or any function module.
Thanks,
Thanesh
Similar Messages
-
Efficient way of updating data to database table
what is the efficient way of updating data to database table .
i have huge amount of data in my internal table , how to use update statement in this case .
1. database table having 20 fields ,
2. one is key field and suppose 20 th field i want to change .
3. I have data for only 2 fields , i.e for ( 1 st and last 20 th field ) .
i can't use update statement in loop , as it is not good practice(hits database several times ) .
do it effects all the 20 fields for particular record .Hi,
Use UPDATE statement , check below description from SAP help.
UPDATE dbtab FROM TABLE itab. or UPDATE (dbtabname) FROM TABLE itab.
Effect
Mass update of several lines in a database table.Here, the primary key for identifying the lines tobe updated and the values to be changed are taken from the lines of theinternal table itab.
The system field SY-DBCNT contains the number of updated lines,i.e. the number of lines in the internal table itab which havekey values corresponding to lines in the database table.
Regards
L Appana -
Question regarding Polling data from database using DB Adapters in BPEL
Hi,
I have the following question regarding Polling data from database using DB Adapters in BPEL -
If I am selecting data from multiple tables/view to ultimately generate hierarchical xml document, is there a way that I specify polling all of these tables/views. Is polling limited only to one table/view?
Thanks
RaviHi Ravi,
your question seems to have been answered for the question of polling a set of tables with one as the root, and getting back a hierarchical xml representing multiple related tables.
However you can also poll for changes to both the root table and its related tables. Not sure if this was your question or the one already answered. If the former please check out the sample
bpel/samples/tutorials/122.DBAdapter/advanced/polling/PollingForChildUpdates
Thanks
Steve -
How to create a thread safe and concurrent form that updates data to database.
Hi ,
I am creating an application which will store information from 4 or 5 text boxes in the database.
At the same instance of time atleast 300 users will be trying to update to the database.
That is trying to execute the same code.
I am worried if there will be any issue of object lockign or my page giving some error or performance issue.
How can I solve this issue.
Regards
VinodSQL Server manages simultaneous access to data itself, when it comes to executing a single query. It locks/unlocks tables/records automatically. So, if you are using a single UPDATE, INSERT or DELETE command, usually you won't need anything to take care
of synchronization, but a problem named "Concurrency issue" which I explained a little ahead.
However, if you are updating more than one table, you must use transactions, so that your changes are applied atomically. This can be done both in database level in T-SQL and also in application level in C#, VB, etc.
In T-SQL you want to use BEGIN TRAN, COMMIT TRAN, ROLLBACK TRAN commands and in C# you want to use TransactionScope.
You should pay attention that, transactions indeed have a hit on the performance of your database. But using them is indispensable. To prevent performance degradation, you have to tune your database and queries which itself is another big topic.
One thing that is more important is a problem known as concurrency issue.
If more than one user tries to update a single record, each one might overwrite the update of another user without being even notified of this. Suppose user A and B both try to update a record. They are not aware of each other working with the application.
They open a record in edit mode in the application. Edit it and then click the "Save" button. When the application saves the record with the data provided by each user, one data will be lost definitely. Because it will be overwritten with the data
another user has provided and his Save command, executes later than the first user.
There are multiple ways to avoid concurrency issue. One of them is using Timestamp (old method) and RowVersion (newer method) column in a table. They can help you detect a change in a record since its last time read. But they are unable to detect what column
or columns are changed.
You can get better answers for this if you ask a solution for concurrency issue in a SQL Server forum.
Regards
Mansoor -
How to update data into database from mx datagrid?
Hello,
I am developing a native application. I have connected my application using HttpServices i.e. remote objects to spring mvc 2.5 application. I have done inserting and deleting data from database. Now I want to update the records from datagrid itself. I am new to AIR please suggesst me something useful.
Thanks in advance..Likely you're querying only one selected value from the request using HttpServletRequest#getParameter() instead of an array of selected values using HttpServletRequest#getParameterValues().
-
Regarding updating data into ztable
hi all,
When i am updating data into ztable .
Old record is deleted and new record is created
What will be the problem.
Please suggest.
Regards
RamiHi,
pz use ur syntax this way.
UPDATE zo9_user_status
SET sub_date = sy-datum
sub_time = sy-uzeit
status = g_wa_outtab-status
WHERE representative = g_wa_outtab-representative AND
selection_id = g_wa_outtab-selection_id AND
sub_date = g_wa_outtab-sub_date AND
sub_time = g_wa_outtab-sub_time AND
superior = g_wa_outtab-superior.
IF sy-subrc EQ 0.
COMMIT WORK.
l_error = 'X1'.
ELSE.
l_error = 'X2'.
CLEAR l_error.
ROLLBACK WORK.
ENDIF.
hope this helps.
thanx. -
How to update data in database from different region of the same page
Hi,
I have pepared two regions of tabular form based on the same table,each region is selecting different columns of the same table.
I want to update the values from different regions in the database using single submit button.
Regards
ShashiI presume that the two regions are working fine with their individual buttons and your issue is how to make them both save with one button.
Here is how
a. You will have 2 ApplyMRU and 1 ApplyMRD processes for each of the regions. Right? Lets say you have 2 "Save" (i.e. label=Save) buttons, one has name SUBMIT and the other SAVE ( SUBMIT and SAVE being the requests that will be sent when they are clicked , respectively)
b. Make the Display condition on one of the buttons 'Never'. Now it won't show when you run the page. Lets say you made SAVE's conditional Display 'Never'
c. Go and change the condition on all ApplyMRU and ApplyMRD processes from "When Button Pressed" to "Request is contains in Expression1". In Expression1 enter SUBMIT,SAVERegards -
Updating Data in Database using JSP
Hi all,
Can anyone please give me an idea that i have a JSP page that connects to the MS Access database. Now i have a query that shows all the data sorted by date for each individual user. Now if anyone wants to update from there meaning that there should be an update button.And if anyone press that then all the on the particular row will be shown in text boxes and then the user can modify the data. and press update to send the data to the database and show the correct one on that page again.
I know it is a bit hazy. Noe point is i created the query and the update button. Now how can i create text boxes for a particular row if button pressed and also i want to show the dataon this page again dont want to go to another page and do the same thing again. This will enable user to update each row separately on the same page and after all these he can log out. Please help me.
Another question how can i pass some data from an HTML form to the same JSP but in a different place meaning that if i direct the form to the same JSP like "form action=same.jsp" then it will start doing everything from the beginning of the page. But i want to go to a particular form of the same JSP page. Can anyone please help me.
I will be very grateful
Thanks.Can anyone please look at it. Very Urgent. Thanks
-
Regarding updating data in the enhanced fields
Hi All,
I have enhanced one standard FI data source with a field. Now I have one doubt. We can do a full load and for subsequent loads, what should I do so that delta values are filled for the new appeneded field.
Regards
Jay YHello JayanTh Y,
How r u ?
You have enhanced one FI Data Source with 1 field. Then
1. Replicate that Data Source and do the changes also in the InfoSource and the Data Targets
2. Schedule a Full Upload and load the data. Now, your new enhanced field's data will be updated in BW
3. Schedule again "Initialize without Data Transfer" and from now the delta update will be available and the values for the new enhanced field will be captured along with the delta.
Best Regards....
Sankar Kumar
+91 98403 47141 -
Regarding updating data to ztable
Hi,
pls help me,
My querry is :
I have a ztable, i have to find from which program this ztable was updating?
how can i find this?
Thanks & Regards,
siva.Go to SE11.
Put ur Ztable name.
Then u can see a button name "where used list" just above it.
Press it.
Then only select check box Program. Then ok.
It will show list of program.
The try to find out in which program the table is getting modified ..
reward if helpful. -
JBO-26041: Failed to post data to database during "Update":
Hi,
When Iam trying to update data to database Using View object this error comes .Please help me....
Thanks....No info mean no help....
There must be an underlying error or at least a full stack trace.
What did you try to do?
Which JDev version and which technology you are using?
Timo -
Updating data in the database table
Can any help me in the code for updating data in the database table.
Regards,
RahulHi Rahul,
A slightly longer procedure that i'm adding here...
1.) Create the component (i'm sure you have this covered)
2.) Next on the button click that updates the database - add an action.
3.) double click the action so that you are taken to the methods section of the view.
4.) next you need to add the code that is required the update the database - this will be in the form of the above two posts.
5.) compile and test the application
Let me know in case you need further information on how to do this with a function module or something.
Thanks. -
hi guys,
i just got a problem with updation of Database table EINE. I got some price details
and these details have to be updated to EINE-NETPR.
i am using select statement to select price details and using update command to update EINE-netpr.
update EINE where netpr = itab-netpr. ( simillar to this )
if sy-subrc = 0.
commit work.
endif
But, still when i checked the entries in EINE, netpr ( price ) is not updated.
I checked in debug mode and update command works well but its not updating EINE in real when i am checking the entries in it.
can any one please help me, do u think UPDATE command can be used to update Data base tables or do u think i need to add any other commit work statements after update or can any one tell me exactly how to update the database tables.
please send me a piece of code if possible.
thank you
pavan kumarHi Pavan,
Please try this FM perhaps they may help.
ME_DIRECT_INPUT_INFORECORD
ME_DB_UPDATE_INFORECORDS
ME_UPDATE_INFORECORD
ME_UPDATE_INFORECORD_COND
ME_UPDATE_INFORECORD_PD
Regards,
Ferry Lianto -
Query regarding Update the data using application
I have scenario i need to update single record in the the application and insert into a table
for example
SELECT ContactID,FirstName,MiddleName,LastName,Description FROM Contact
Contact table contains 4 columns as explained. in the application there is one tab called Contact where it displays Above information
and description is non editable.
Now the new requirement has come user can update the description information and save information in a new column say 'Description1'
that means new column needs to be added in the db and also necessary changes needs to be done at the application side
For ex :SELECT ContactID,FirstName,MiddleName,LastName,Description,Description1 FROM Contact
Now when user views the contact table it should display description info by default from 'description' table.
If he edits he should see edited data from 'description1' table.
Can any body guide me please and send me sample update query please, and the logic should if updated data is there display that data from
'description1' table other wise display from 'description' table
Smash126Hi Smash126,
You need to fire the update command once you have filled the description record. It should happen on the primary key column of the record.
For Example:
UPDATE Contact
SET Description = 'New Description',
Description1 = 'New Description'
where contactID = <<ContactID from application>>
This way both will updated to same value, and next time you will get the updated value.
Here is some ADO.Net links:
http://www.codeproject.com/Articles/1155/Simple-ADO-NET-Database-Read-Insert-Update-and-Del
http://www.onlinebuff.com/article_step-by-step-select-insert-update-and-delete-using-aspnet-c-and-adonet_32.html
Regards Harsh -
How to update the data in database in webdynpro
I have to update the data in databse table using adaptive rfc in WebDynPro
Hi,
You can refer to these links:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
Update data into SAP Table
http://help.sap.com/saphelp_nw70/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/d5/1558bfa6aa80499113983e738b1b21/frameset.htm
Regards
Inder
Maybe you are looking for
-
24" cinema display. comes with USB cable?
i ordered the display and the web page says in the "what's in the box" section that it includes an AC power cord. does this mean i will have to purchase the USB/mini DIsplayport cable separately?
-
Supplier invoice in pre approved exp batches
can we enter supplier invoice in pre approved exp batches ?
-
Macbook mid 2007 optical drive replacment
Did anyone tried to replace an optical drive? Is it expensive?
-
Changing the LiveCycle ES4 Launch Pad Output Folder for PDF Conversion
I have an instance of Adobe Live Cycle ES4 on WebSphere installed on a Windows 2008 R2 server. We're leveraging the Launch Pad desktop GUI as a PDF conversion tool for our end users. The document to PDF conversion functionality is working great but t
-
hi , I want to know the difference between versions of 5.0 and ECC 6.0 .any information is rewarded.