Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

in creation of function module

Former Member
0 Likes
621

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.

5 REPLIES 5
Read only

Former Member
0 Likes
582

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

Read only

Former Member
0 Likes
582

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.

Read only

Former Member
0 Likes
582

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

Read only

former_member404244
Active Contributor
0 Likes
582

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

Read only

Former Member
0 Likes
582

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.