简体   繁体   中英

Best way to populate a SAP table via c#

I'm trying to create ac# that application does a simple insert into a newly created sap table.

After a little bit of research I found out that I have two options:

  • Using a CDS-View with @OData.publish: true and CRUD operations
  • or using a bapi with the SAP .NET Connector 3.0 .

Personally I think that the CDS view is much cleaner but I'm not getting the "create" operation to work. I found out that the cud operations are disabled on ABAP 7.50.

What do you think?

Thanks, Thomas

There are more options. Use transaction SICF to create a REST endpoint. POST it data in JSON format. Use the ID XML transformation to map the data to an internal table with the same format as the database table in question. Use MODIFY or INSERT followed by COMMIT WORK to save the data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM