We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting values from table rows is currently quite complicated:
using (var context = new RfcContext(ConnFunc)) { await context.CallFunction("BAPI_COMPANYCODE_GETLIST", Output: func => func.BindAsync(f => from companyTable in f.GetTable("COMPANYCODE_LIST") from row in companyTable.Rows.Map(s => from code in s.GetField<string>("COMP_CODE") from name in s.GetField<string>("COMP_NAME") select (code, name)).Traverse(l => l) select row)) .ToAsync().Match( r => { foreach (var (code, name) in r) { Console.WriteLine($"{code}\t{name}"); } }, l=> Console.WriteLine($"Error: {l.Message}")); }
We should add a "MapStructure" method to simplify this:
using (var context = new RfcContext(ConnFunc)) { await context.CallFunction("BAPI_COMPANYCODE_GETLIST", Output: func => func.BindAsync(f => from companyTable in f.GetTable("COMPANYCODE_LIST") from row in companyTable.MapStructure(s => from code in s.GetField<string>("COMP_CODE") from name in s.GetField<string>("COMP_NAME") select (code, name)) select row)) .ToAsync().Match( r => { foreach (var (code, name) in r) { Console.WriteLine($"{code}\t{name}"); } }, l=> Console.WriteLine($"Error: {l.Message}")); }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Getting values from table rows is currently quite complicated:
We should add a "MapStructure" method to simplify this:
The text was updated successfully, but these errors were encountered: