goenning / SharpSapRfc

Making SAP RFC calls even easier with .NET
MIT License
84 stars 27 forks source link

Deletion Flag in the Last Column of the Read Table #9

Closed Slaski closed 10 years ago

Slaski commented 10 years ago

Hi,

I've experienced an error when I tried to get values from the PRPS table when the LOEVM column (Deletion Indicator) is the last field. However it goes fine when the LOEVM isn't the last field. Looking at the error more closely, I noticed that the field offset of the LOEVM column received by the SAP was 125, but the length of the data received was 124 characters long. That happened because the value of the LOEVM column is an empty string when the flag is not set and "x" when it is.

Here a picture of the error I got: sharprfc_prps_deletionflag_exception

Here's a solution I implemented in the RfcStructureMapper.FromRfcReadTableToList method that solved the problem, so I'm leaving here as a suggestion: sharprfc_prps_deletionflag_solution

BTW, I really liked this API. Keep it up!

All the best,

Slaski

goenning commented 10 years ago

Thank you for your feedback and solution. I'll work on this and release a new minor version.

I'm glad you liked it, feel free to share your suggestions!

Cheers, Oenning

goenning commented 10 years ago

There is it, thank you again. NuGet is also up-to-date.

By the way, now you can also map that column CHAR1 as a Boolean. It will convert to true when X, false otherwise.