2009 Mar 03 9:45 AM
Hi,
There is a way to build WS that can update a table /view.
Any example will help?
Regards
2009 Mar 03 9:50 AM
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
2009 Mar 03 9:50 AM
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
2009 Mar 03 10:02 AM
Hi Pushpraj,
Thanks but how i now if the update is success .
Regards
2009 Mar 03 10:37 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |