sap-dotnet-connector

RFC_READ_TABLE passing “options” and “Fields” parameters (c#)

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 06:01:55
问题 Need help, I'm trying to get sales data from SAP Using RFC_READ_TABLE, but don't know how to pass OPTIONS and FIELDS parameters to SAP. Here sample code of my app. Connection is working, after execution, I have an exception "DATA_BUFFER_EXCEEDED" public void RFC_READ_TABLE() { try { ECCDestinationConfig cfg = new ECCDestinationConfig(); RfcDestinationManager.RegisterDestinationConfiguration(cfg); RfcDestination dest = RfcDestinationManager.GetDestination("ABI_ERP"); RfcRepository repo = dest

Getting RFC function module parameters in C#

拜拜、爱过 提交于 2020-05-15 09:34:05
问题 I am currently using the SAP .NET Connector 3.0 in C# and I want to get the parameters like Import, Export and Table from a given function module. Is there any way in C# while using the SAP .NET Connector to do this? 回答1: Assuming that you are referring to a function module's interface definition, the functionality to query and interpret this RFC meta data from a SAP system is already contained in the connector library. As an entry point for NCo 3.0, have a look into its official API

Error “Please enter sold to party or ship to party” while calling BAPI_SALESORDER_CREATEFROMDAT1

妖精的绣舞 提交于 2019-12-08 05:43:43
问题 I am trying to integrate SAP with .NET web application using SAP .NET connector. I have successfully connected to the SAP system but when I try to create a sales order in SAP using BAPI_SALESORDER_CREATEFROMDAT1 I get following error: Please enter sold to party or ship to party. The code snippet I use: public class CreateSalesOrder { public string CreateOrder(RfcDestination destination) { try { RfcRepository repo = destination.Repository; IRfcFunction salesDoc = repo.CreateFunction("BAPI