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

Web service that update table

Former Member
0 Likes
776

Hi,

There is a way to build WS that can update a table /view.

Any example will help?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
689

Hi Ricardo

You can create an RFC enabled FM in which you can write code to update the database table using BAPI or UPDATE statements.

Now you can declare this FM as the endpoint of your web service.

Pushpraj

Hi,

There is a way to build WS that can update a table /view.

Any example will help?

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
690

Hi Ricardo

You can create an RFC enabled FM in which you can write code to update the database table using BAPI or UPDATE statements.

Now you can declare this FM as the endpoint of your web service.

Pushpraj

Read only

0 Likes
689

Hi Pushpraj,

Thanks but how i now if the update is success .

Regards

Read only

0 Likes
689

Hi Ricardo

If you are updating through BAPI then you can always get the messages in the return table. If you update through UPDATE or INSERT statements then sy-subrc = 0 means the update was successful.

You also need to COMMIT WORK after the statements and in BAPI use the FM BAPI_TRANSACTION_COMMIT.

Pushpraj