‎2020 May 30 9:38 AM
I am a ABAP and BAPI beginner. The requrement is to look for BAPI can create own table and insert record forwading to own ABAP programs. It like a SQL BAPI ! If we can not reach to such BAPI , any idea using other objects can be called via RFC will be appriciated.
Kind regards, Kiyoshi
‎2020 May 30 11:15 AM
Hi egawa72,
I do not think there is one. Below you can find links to 3 similar questions.
For reading data via RFC there is a standard module RFC_READ_TABLE but for changing the data you would need to create your own RFC-enabled module and call it via RFC or publish it as a Web Service (depending on your needs).
https://answers.sap.com/questions/1534211/rfc-insert.html
https://answers.sap.com/questions/3748407/rfc-enabled-function-module-to-insert--update-and-.html
https://answers.sap.com/questions/3742024/rfc-enabled-function-module-for-insert-update-and-.html
Regards,
Bartosz
‎2020 May 30 12:13 PM
Hello egawa72
I agree with Bartosz.
BAPI is a function, like any other, that allows developers to use SAP standard functionalities in a standardized way. Making sure, that an invalid/incomplete objects are not created in the system.
If you want to have a custom table and a BAPI-like function to update it from other reports (internal or external), then you will need create this function on your own. This will allow you to put any special/critical logic into your function, like additional checks or error handling, which will ensure that the table is updated with proper data.
Kind regards,
Mateusz