Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call Python Library from AMDP

rjbhayani
Explorer
0 Kudos
597

is it Possible to Call Python Library from HANA ( I mean using AMDP call Python library - which is already imported to HANA DB Server ) for an example : I have File Upload utility developed in SAP FPM and now I will pass binary data to HANA DB ( using AMDP as importing parameter and then that will become input for existing python Library called pytesseract and which will return us image to text ( Text values ) as returning parameter back To AMDB and that will be return back To ABAP Application Server where we can use those data to either validate or perform Automation ?

2 REPLIES 2

Sandra_Rossi
Active Contributor
395

I guess the first question to ask is whether it's possible to call Python from a HANA SQLScript Database Procedure. If yes, then you can do it in AMDP as well.

rjbhayani
Explorer
0 Kudos
395

True, But based on my limited knowledge it is possible to install Python at OS level and then using OS Command we can even refer standard Python application framework also we need to install PIP again at OS Level to fetch other standard/Custom Library published by Python Community (Like pytesseract · PyPI ) and then we might be able to use it in ABAP code ( maybe ) since I have not done it end to end yet so wanted some information.