<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAP HANA Python Interface Datatype VARBINARY wrong converted in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-hana-python-interface-datatype-varbinary-wrong-converted/m-p/12230427#M1984388</link>
    <description>&lt;P&gt;Dear SAP community,&lt;/P&gt;
  &lt;P&gt;here are the things that went well:&lt;/P&gt;
  &lt;P&gt;1. Connect from Python Pycharm to HANA DB with the Python driver hdbcli&lt;/P&gt;
  &lt;P&gt;2. Make first SQL querys at the table /SCWM/D_DSAPP of the Dock-Appointment Scheduling (See the code at the end) &lt;/P&gt;
  &lt;P&gt;Here is my problem:&lt;/P&gt;
  &lt;P&gt;The DB_KEY and the SLOT_ROOT_KEY, both SQL Data Type Varbinary are shown in the Python Pycharm console like this:&lt;/P&gt;
  &lt;P&gt;Python output:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1840775-ryu3r.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;For comparison in Eclipse it looks like this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1840776-href8.png" /&gt;&lt;/P&gt;
  &lt;P&gt;So my question: &lt;/P&gt;
  &lt;P&gt;Why can't I see the KEY_ID in the correct format? And what do i need to do in order to get the KEY_ID in the right format in Python Pycharm?&lt;/P&gt;
  &lt;P&gt;Here is my Code:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;print('connected')&lt;BR /&gt;cursor = conn.cursor()&lt;BR /&gt;&lt;BR /&gt;sql='SELECT Top 3 *  FROM SAPABAP1."/SCWM/D_DSAPP" '&lt;BR /&gt;cursor.execute(sql)&lt;BR /&gt;rows= cursor.fetchall() &lt;BR /&gt;for row in rows:  &lt;BR /&gt;  for col in row:      &lt;BR /&gt;    print ("%s" % col, end=" ")  &lt;BR /&gt;  print (" ")&lt;BR /&gt;&lt;BR /&gt;cursor.close()&lt;BR /&gt;print(row)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 08 Sep 2020 09:10:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-09-08T09:10:48Z</dc:date>
    <item>
      <title>SAP HANA Python Interface Datatype VARBINARY wrong converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-hana-python-interface-datatype-varbinary-wrong-converted/m-p/12230427#M1984388</link>
      <description>&lt;P&gt;Dear SAP community,&lt;/P&gt;
  &lt;P&gt;here are the things that went well:&lt;/P&gt;
  &lt;P&gt;1. Connect from Python Pycharm to HANA DB with the Python driver hdbcli&lt;/P&gt;
  &lt;P&gt;2. Make first SQL querys at the table /SCWM/D_DSAPP of the Dock-Appointment Scheduling (See the code at the end) &lt;/P&gt;
  &lt;P&gt;Here is my problem:&lt;/P&gt;
  &lt;P&gt;The DB_KEY and the SLOT_ROOT_KEY, both SQL Data Type Varbinary are shown in the Python Pycharm console like this:&lt;/P&gt;
  &lt;P&gt;Python output:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1840775-ryu3r.png" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;For comparison in Eclipse it looks like this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1840776-href8.png" /&gt;&lt;/P&gt;
  &lt;P&gt;So my question: &lt;/P&gt;
  &lt;P&gt;Why can't I see the KEY_ID in the correct format? And what do i need to do in order to get the KEY_ID in the right format in Python Pycharm?&lt;/P&gt;
  &lt;P&gt;Here is my Code:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;print('connected')&lt;BR /&gt;cursor = conn.cursor()&lt;BR /&gt;&lt;BR /&gt;sql='SELECT Top 3 *  FROM SAPABAP1."/SCWM/D_DSAPP" '&lt;BR /&gt;cursor.execute(sql)&lt;BR /&gt;rows= cursor.fetchall() &lt;BR /&gt;for row in rows:  &lt;BR /&gt;  for col in row:      &lt;BR /&gt;    print ("%s" % col, end=" ")  &lt;BR /&gt;  print (" ")&lt;BR /&gt;&lt;BR /&gt;cursor.close()&lt;BR /&gt;print(row)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:10:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-hana-python-interface-datatype-varbinary-wrong-converted/m-p/12230427#M1984388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-09-08T09:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Python Interface Datatype VARBINARY wrong converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-hana-python-interface-datatype-varbinary-wrong-converted/m-p/12230428#M1984389</link>
      <description>&lt;P&gt;Hi and welcome to
the SAP Community!&lt;/P&gt;&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. Since you're
asking a question here for the first time, I recommend that you familiarize
yourself with &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;
(if you haven't already), as it provides tips for preparing questions that draw
responses from our members. For example, you can outline what steps you took to
find answers (and why they weren't helpful) and share screenshots of what
you've seen/done. The more details you provide, the more likely it is that
members will be able to assist you.&lt;/P&gt;&lt;P&gt;Should
you wish, you can revise your question by selecting Actions, then Edit
(although once someone answers your question, you'll lose the ability to edit
the question -- but if that happens, you can leave more details in a comment).&lt;/P&gt;&lt;P&gt;Finally,
if you're hoping to connect with readers, please consider adding a picture to
your profile. Here's how you do it: &lt;A href="https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS"&gt;https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS&lt;/A&gt;.
By personalizing your profile with a photo of you, you encourage readers to
respond.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julia
SAP Community Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-hana-python-interface-datatype-varbinary-wrong-converted/m-p/12230428#M1984389</guid>
      <dc:creator>former_member30</dc:creator>
      <dc:date>2020-09-08T09:10:56Z</dc:date>
    </item>
  </channel>
</rss>

