GithubHelp home page GithubHelp logo

metalsimyaci / sapco2 Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 10.0 1.04 MB

SAP Connector for .Net5

License: MIT License

C# 93.63% HTML 5.68% CSS 0.59% JavaScript 0.10%
sap-rfc abap sap sapnwrfc sap-nwrfc-sdk nwrfc sapco2 sapco net5

sapco2's Introduction

Ben Hasan. Namı değer metalsimyaci.

Kend halinde ejderhası peşinde bir yazılımcıyım.

Kahveyi, müzik dinlemeyi, kitap, manga ve webtoon okumayı, oyun oynamayı ve anime izlemeyi severim.

Nicktende anlaşıldığı üzere FMA ve onun Eşit Takas prensibine inanlardanım.

Yeni şeyleri sever, merak eder, araştırır, kazınırım. Ayıptır söylemesi biraz detaycı ve takıntılıyımdır.

  • 💪 Elimden gelenler

  • 📚 Öğrenmeye çalıştıklarım

  • Bana sorduğunuzda cevap alabileceğiniz konu başlıkları ¿

    • Development (.Net, .NetCore, vue, tsql)
    • Dungeon & Dragon, Elfler, cüceler
    • Anime, Manga, Webtoon, Mahwa
  • 🕵️‍ Üzerinde çalışmaya çalıştıklarım

    • ubuntu
    • docker
    • kubetenetes
    • ingress
    • nginx

Bana ulaşabileceğiniz yöntemler 📩

snake svg

sapco2's People

Contributors

metalsimyaci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sapco2's Issues

Error reading table

Hi, we've got this problem reading BSEG, any advices what could mean this error?

SapCo2.Wrapper.Exception.RfcException: SAP RFC Error: RFC_ABAP_RUNTIME_FAILURE with message: Data was lost while copying a value.

IRfcTransaction create transaction

im trying to create or insert data to bapi sap using IRFCTRANSACTION im encountered below error.

attempted to read or write protected memory. this is often an indication that other memory is corrupt
IRfcTransaction

Thank you.

Generic Input/Output

Is it possible to work with generic input/output instead of defining in/outputs for every function call?

Issue with .SetBasePath for Statup.cs

First of all thank you so much for hard work and creating Framework to Integrate with SAP in more fastest way but I am facing some issue while creatin C# Excel Addins for SAP
image
image

also facing some issue with ServiceCollectionExtensions
image
image
I am not expert on C# but tried to create excel addins and thought to use your framework to use Excel for Mass update in SAP

Custom Rfc ler için data type mapping

SAP Data Type .NET Data Type
ACCP - Int32- String, if disabledatavalidation option is set in the SELECT or EXEC statement.
CHAR String
CLNT String
CUKY String
CURR Decimal, if precision less than or equal to 28String, if precision greater than 28
DATS - DateTime- String, if disabledatavalidation option is set in the SELECT or EXEC statement.
DEC Decimal
FLTP Double
INT1 Byte
INT2 Int16
INT4 Int32
LANG String
NUMC - Int32, if field length less than or equal to 9- Int64, if field length greater than 9 and less than or equal to 19- String, if greater than 19- String, if disabledatavalidation option is set in the SELECT or EXEC statement.
PREC Int16
QUAN Decimal
RAW Byte []
RSTR Byte []
SSTR String
STRG String
TIMS - TimeSpan- String, if disabledatavalidation option is set in the SELECT or EXEC statement.
UNIT String
LCHR String
LRAW Byte []

Kaynak

Support for forward proxy?

Hi, Do we have support for forward proxy in the SapCo2 library? I checked in NetWeaver documentation that it supports forward proxy but not able to find anything in this library can someone help in this area?

Async & Dynamic Structure talebi

Selam,

Elinize sağlık başarılı bir çalışma olmuş.

Fırsatınız olur mu bilmem ama 2 talebim olacak.

  1. Rfc çağırırken dönüş tipi bilinmediğinde bir sınıfa map etmeden dinamik olarak dönecek tip i bir object veya dynamic türünde çağırabilmeli yani rfc den dönecek struct yapısını dinamik olarak set edebilmeliyiz.

var result = rfcFunction.GetRfc<object>(connection, "RFC_NAME");

gibi

  1. Asenkron bir projenin içindeki hiyerarşinin bozulmaması adına Async desteği eklerseniz tadından yenmez.
using var connection = serviceProvider.GetService<IRfcConnection>();
await connection.ConnectAsync();
using IReadRfc rfcFunction = serviceProvider.GetService<IReadRfc>();
var result = await rfcFunction.GetRfcAsync<RfcResponse>(connection, "RFC_NAME");

gibi

Passing a range table ( SAP structure) as input to a function module(RFC)

Hi,
First I want to thank you personally for sharing this awesome library.
I came across this issue yesterday.
Suppose you have a function module (Z_Function) in SAP that takes parameter "I_RANGE" which is based on this structure Z_Erdat.
The structure has these fields:
SIGN -> char -> length 1
Option -> char -> length 2
Low -> ERDAT -> DATS (date with 8 character length)
HIGHT -> ERDAT-> DATS (date with 8 character length)
I want to create this range table based on Z_Erdat and send it to Z_Function as parameter I_RANGE.
Following your code I created this:

` public class I_RANGE
{
public Z_Erdat erdat { get; set; }

}

public class Z_Erdat
{
    [RfcEntityProperty("SIGN", SapDataType = RfcDataTypes.CHAR, Length = 1)]
    public string Sign { get; set; }

    [RfcEntityProperty("OPTION", SapDataType = RfcDataTypes.CHAR, Length = 2)]
    public string Option { get; set; }

    [RfcEntityProperty("LOW", SapDataType = RfcDataTypes.DATE_8)]
    public DateTime Low { get; set; }

    [RfcEntityProperty("HIGH", SapDataType = RfcDataTypes.DATE_8)]
    public DateTime High { get; set; }
}

public class Z_FunctionInputParameter : IRfcInput
{
    [RfcEntityProperty("I_RANGE")]
    public I_RANGE range { get; set; }

}`

Based on these when I try to run ExecuteRFCAsync like below:

var result = await client.ExecuteRfcAsync<Z_FunctionInputParameter , Z_FunctionOutputParameter>("Z_Function", inputParameter);

I get the following error:
RfcException: SAP RFC Error: RFC_CONVERSION_FAILURE with message: I_Range of type RFCTYPE_TABLE cannot be converted to type RFC_STRUCTURE_HANDLE

In a nutshell, I want to pass the I_Range parameter which is based on a range structure Z_Erdat to function module Z_Function.
I appreciate your help.

RFC server

Does the library supports RFC servers?
thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.