‎2007 Jun 19 12:17 PM
hi,
i created one rfc enabled function module to update the database table agr_define. but, is it possible to create custom function module in updating the any database table by using one function module only by giving the table name and fileds of that table as input.
please help me in this case.
‎2007 Jun 19 12:20 PM
Yes, u can do it.
But u can pass the table(internal) itself and insert it using the function module. u dont need to pass the fields separately.
Thanks,
Max
‎2007 Jun 19 12:21 PM
Yes this can be done. Take your table name as an input field of type tabname. You can probably take the field names and values as a name value pair internal table. And dynamically build your update query. This is possible.
‎2007 Jun 19 12:22 PM
Hi Mukka,
We could update a table from the function module.
But take care that we should be locking and unlocking the object before and after updating respectively.
Regards,
kiran
‎2007 Jun 19 12:23 PM
Hi,
Yes u can do it.
In the source code u update the data base table by using BDC,or direct update to a database table.
Regards,
Nagaraj
‎2007 Jun 19 12:25 PM
Hi,
You can update the table through a FM by giving the table name and its field.
Be sure to use enqueue and dequeue so that when you are updaing the table then no one else must do the same.
Thanks,
Sandeep.