SAP / PyRFC

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

Decimal conversion error #183

Closed filak-sap closed 4 years ago

filak-sap commented 4 years ago

PyRFC-2.0.5 / Linux / Python 3.6

I use PyRFC to start STC task list exuction via the module STC_TM_SESSION_BEGIN. I am getting the folllowing error:

  File "src/pyrfc/_pyrfc.pyx", line 2200, in pyrfc.pyrfc.wrapVariable
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]

I changed pyrfc source codes to get the converted value: and it is 20200609101738.9716980T however I ABAP debugger I can see the value is 20200609101738.9716980. Apparently PyRFC reads 1 more character than necessary.

bsrdjan commented 4 years ago

Hi Filak,

is it SAP internal system, where I could test asap?

BR, srdjan

bsrdjan commented 4 years ago

The only decimal parameter is EXPORTING STC_EXEC_ID, type DEC 21.7

Could not reproduce in internal test system, using 20200609101738.9716980.

Which exactly Linux platform? Please find the Ubuntu wheel attached (unzip before use :))

pynwrfc-2.0.5-cp36-cp36m-linux_x86_64.whl.zip

filak-sap commented 4 years ago

My apologies. It's just simply not possible to run pyrfc with the nwrfc lib from SAP kernel directories in a live system. I configured LD_LIBRARY_PATH to unpacked version of NWRFCSDK and the problem disappeared.

filak-sap commented 4 years ago

Thank you for your help!