This is a test message to test the length of the message box.
Login

Write a comment

Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.

Call BAPI

datskam@gmail.com - 08/01/2025 - 15:06

How to call a BAPI, for example I need to create a sales order using BAPI. How can we develop RAP application for this case. I tried to create sale order using BAPI but in my case I need to return Sales order number and some addition data. How can we send additional information in post call in response


Xexer - 08/01/2025 - 15:43

Hi datskam,

the BAPI is called the same way, like the save of the table. You should provide the informations to the save sequence and call the BAPI. The SO number can't return via this way, you have to save it (like in the example) and you can load it with the query call to display it.

Greetings Björn


datskam@gmail.com - 08/01/2025 - 15:50

But In SEGW we can add addition information in response after post call, so in RAP there is no such option available ? If we need to send the addition information then we have to do query again right?


Xexer - 08/01/2025 - 15:58

So you are talking about a function/action in OData and not a regular entity. You can freely design what you want to return from a function/action. Check this article for dynamic input, the result for the action can also be defined freely.