cancel
Showing results for 
Search instead for 
Did you mean: 

modify the data base table which is comming dynamiclly

Former Member
0 Kudos

my requirement is that i had an input box where i give the table name after that i show the table shows its content with all the fields with data and now i have to modify the selected row , the problem is that the data is comming dynamically . suggest me with the code the requirement is same like the example DemoDynamic in web dynpro comp/int but here an extra modification is added . as i know how to modify one table but problem in dynamic data , suggest me how to do it

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Since you sent me this same question directly via email I will copy my answer into the forum thread:

It appears as though you want to create an application that lets you update any database table. This would be a clear violation of the SAP license and support agreement. Directly updating data at the database level for SAP supplied tables can and will lead to data inconsistencies. This is grounds for SAP to terminate a customeru2019s support contract and make you legally liable for the results. I strongly recommend that you do not go down this route.

If you limit your application to only customer created tables, such an application is still unadvisable but you are allowed to do so. For updating the data you would simply use SQL statements such as UPDATE or INSERT/DELETE. The process really isnu2019t that technically difficult to update the data. SQL supports dynamic tokens for supplying the table name and where conditions at runtime. However I go back to my original recommendation that such a mass update application (which probably contains no locking, table class limiting, referential logic, etc) is an extremely bad idea and will almost certainly lead to data corruption.

Former Member
0 Kudos

Hi Sarfraz,

You kow how to edit the table then your problem is solved and also you know that from where you are getting data.So when you select the row and modify the entries of that data take into one internal table and then modify the data base table with entries in internal table using BAPI or Transactions.

follow dodynamic example.