huysentruitw / SapNwRfc

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

How to fetch data from RFCTable #74

Closed karthik090782 closed 1 year ago

karthik090782 commented 1 year ago

I am calling a function whose metadata has multiple RFCTable and RFCStructures. I am not able to iterate through the RFCTable to get the values within the table. Can you please provide some instructions on how this can be achieved. Attached is the metadata information I am receiving from one of my function call.

SAP_Function_Metadata.xlsx

tom-j-irvine commented 1 year ago

The documentation is pretty clear on this. These two sections cover mapping structures and tables:

https://github.com/huysentruitw/SapNwRfc#define-models-with-a-nested-structure

https://github.com/huysentruitw/SapNwRfc#define-models-with-a-nested-table

Once you've correctly mapped the function to a model, iterating over the rows of the table is as simple as iterating over the array in your model that represents that table.

karthik090782 commented 1 year ago

Thanks Tom, I will give it a try.

karthik090782 commented 1 year ago

Thanks Tom, we are able to fetch data from tables now.