SAP / PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
http://sap.github.io/PyRFC
Apache License 2.0
500 stars 132 forks source link

After upgrading to Pyrfc 2.7.2: get_function_description gives me a NameException: enum_names is not defined #311

Closed bluckau closed 1 year ago

bluckau commented 1 year ago

Issue When I use get_function_description() it throws an exception (NameError: 'enum_names' is not defined)

To Reproduce from pyrfc import Connection connection = Connection(ashost = (redacted)', sysnr=(redacted)', client=(redacted), user=(redacted)', passwd=(redacted)) stuff = connection.get_function_description('BAPISDORDER_GETDETAILEDLIST') print(stuff.parameters)

Environment

Additional context Our code worked in pyrfc <= 2.7.0. The code above is a distilled version of what is in the code base but still reproduces the problem.

I have also tried other function names such as BS01_SALESORDER_GETDETAIL

bsrdjan commented 1 year ago

it is a bug, just reproduced in 2.7.2. Will be fixed on priority

senthu73 commented 1 year ago

Sound great, Srdjan.