huysentruitw / SapNwRfc

SAP NetWeaver RFC library for .NET 5, .NET Core and .NET Framework
MIT License
149 stars 43 forks source link

I used this to successfully connect to sap. but... #23

Closed zhouren6 closed 3 years ago

zhouren6 commented 3 years ago

I Used this link function
https://github.com/huysentruitw/SapNwRfc#define-models-with-a-nested-table Get the data returned by SAP but

SAP returns the table as multiple rows, one row is received If sap has multiple rows, return to the last row

----------------------------code show as below----------------

public class Output { [SapName("POITEMS ")] public POITEMSItem[] POITEMS { get; set; } }

var result = Function.Invoke< Output >(Input);


huysentruitw commented 3 years ago

Let me see if I understand your question correctly: so the array POITEMS only contains a single row (the last one), even though there should be multiple rows, correct?

huysentruitw commented 3 years ago

I have now incorporated this change made by @jwienekamp that should fix this issue. Version 1.0.0.78 of SapNwRfc should contain this fix, so please try again.

huysentruitw commented 3 years ago

Please reopen if v1.0.0.78+ hasn't fixed your issue. Regards.