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

BAPI for crate and insert to temporary tables like SQL

Former Member
0 Likes
742

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

2 REPLIES 2
Read only

ziolkowskib
Active Contributor
671

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

Read only

0 Likes
671

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