<?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 Re: AMDP OR ADBC? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455527#M14079</link>
    <description>&lt;P&gt;I use AMDP in most cases. However, I've not worked out how to get the implicit results from a call to a stored procedure using these, so for that I use ADBC. (See here for what I mean &lt;A href="https://answers.sap.com/questions/51380/index.html" target="test_blank"&gt;https://answers.sap.com/questions/51380/index.html&lt;/A&gt; ).&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 07:02:22 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2017-03-24T07:02:22Z</dc:date>
    <item>
      <title>AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455523#M14075</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Our project need to call run-time decided hana stored procedure.&lt;/P&gt;&lt;P&gt; I have two choice, using ADBC or AMDP. &lt;/P&gt;&lt;P&gt;Which one is better on performance measure? And which one is better for dynamic programming? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can anyone please share some lights on it? Thanks a lot:).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 11:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455523#M14075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-23T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455524#M14076</link>
      <description>&lt;P&gt;Which one is better on performance measure? &lt;/P&gt;&lt;P&gt;There shouldn't be a a difference. Both execute the SQLScript of the DB procedure. Only when an AMDP method is called the first time, the framework has to do some setup work.&lt;/P&gt;&lt;P&gt;And which one is better for dynamic programming?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ADBC is purely dynamic Native SQL. You pass arbitrary SQL statements as strings to ADBC objects.&lt;/LI&gt;&lt;LI&gt;AMDP wraps DB procedure calls in ABAP Objects classes. The classes and with it their procedure implementations are defined at compile time. For object instantiation and calling AMDP methods you have the same dynamic possiblities as for normal classes.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 23 Mar 2017 12:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455524#M14076</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-03-23T12:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455525#M14077</link>
      <description>&lt;P&gt;Hi Keller,&lt;/P&gt;&lt;P&gt;Thanks for sharing the insight. &lt;/P&gt;&lt;P&gt;Actually the exact thing I am doing here is build an API for our team member to deaI with HANA stored procedure. They can use the API to create/drop/call procedures/table types.&lt;/P&gt;&lt;P&gt;I will go with ADBC at first because I learned from my colleague that we cannot call CDS view with input parameter(table function in hana) inside a AMDP. This kind of limitation doesn't exist in pure HANA stored procedure. Since we are generating procedure anyway, seems pure procedure is more powerful over AMDP.&lt;/P&gt;&lt;P&gt;Regarding performance, I already went through your answer in this blog &lt;A target="_blank" href="https://archive.sap.com/discussions/thread/3957406"&gt;Slow performance in AMDP&lt;/A&gt;. For correctness's sake, I will open the parameter IS_LOB to consumer for them to decide if the parameter need LOB handling. &lt;EM&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Is there any other point I need to take care of or improve on handling procedure with ADBC?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regarding dynamic programming, here's the thing, I am quite suffering to build native sql script to create/call stored procedure.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;-------------------------------------------------------------------------------------------&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;#1 For create_procedure method of my API, I need to open an import parameter it_param for consumer to pass in the in parameters of procedure so that I can generate script like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE PROCEDURE "XXX"."Test"( &amp;lt;br&amp;gt;   in in_1 NVARCHAR ,&amp;lt;br&amp;gt;   in in_2 DECIMAL(38,2) ,&amp;lt;br&amp;gt;   out out_1 NVARCHAR ,&amp;lt;br&amp;gt;   out out_2 DECIMAL(38,2))

......&lt;/CODE&gt;&lt;/PRE&gt;The problem here is I have to convert &lt;STRONG&gt;ABAP DATA TYPE&lt;/STRONG&gt; to &lt;STRONG&gt;HANA DATA TYPE&lt;/STRONG&gt; by myself. Referring to the blog &lt;A target="_blank" href="https://blogs.sap.com/2013/05/14/how-slt-is-mapping-data-types/"&gt;How SLT is mapping data types&lt;/A&gt;. I have done the job in attachment &lt;A target="_blank" href="https://answers.sap.com/storage/temp/26913-cusersi077759desktopconvert-abap-type-to-hana-type.txt"&gt;convert-abap-type-to-hana-type.txt&lt;/A&gt;. &lt;EM&gt;&lt;STRONG&gt;Could you have a review on that if I made some mistake on the code?&lt;BR /&gt;-------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;#2 For call_procedure(scalar parameter only case) method of my API, like create, I also need in prameters with abap type, but I don't want to bother consumer to pass the out parameters. I will return an internal table out with all of scalar output parameter. Can I achieve that? Seems it's not possible unless I search parameters from "SYS"."PROCEDURE_PARAMETERS" to get all out parameter with HANA DATA TYPE and then convert &lt;STRONG&gt;HANA DATA TYPE to ABAP DATA TYPE by myself. &lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;I am not sure if this is the right way, could you share some thoughts on that?&lt;BR /&gt;--------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;#3 For call_procedure_tabular_out(one tabular out parameter case) method of my API. I need to build the query string by myself such like below:&lt;PRE&gt;&lt;CODE&gt;CALL "XXX"."Test"( P_TIMESTAMP=&amp;gt;'20170314121212', P_AMOUNT=&amp;gt;1000, outputParams=&amp;gt;?);&lt;/CODE&gt;&lt;/PRE&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;You can see here I have two parameters P_TIMESTAMP which is CHAR and P_AMOUNT which is DECIMAL. How Can I fill in the &lt;STRONG&gt;parameter value &lt;/STRONG&gt;'20170314121212'&lt;STRONG&gt; &lt;/STRONG&gt;and 1000? The are all data reference, could I simply write as below:&lt;PRE&gt;&lt;CODE&gt;lv_script = |CALL "XXX"."Test"( P_TIMESTAMP=&amp;gt;{ ir_param1-&amp;gt;* }, P_AMOUNT=&amp;gt;{ ir_param2-&amp;gt;* }, outputParams=&amp;gt;?);|.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also I am not sure if I have to add the quote '' to character type.Could you share your thoughts on above questions? Thanks a lot!&lt;/P&gt;&lt;P&gt;BR,Steve&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 03:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455525#M14077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-24T03:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455526#M14078</link>
      <description>&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;Thanks for reply:). Actually our project will be moved to SCP. So pure procedure would be more helpful in this case.&lt;/P&gt;&lt;P&gt;And I cannot write R lang. script in pure hana stored procedure? Most our use cases are OLAP. Is the procedure best choice for us or may be R lang. can do it more efficient?&lt;/P&gt;&lt;P&gt;BR,Steve&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 04:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455526#M14078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-24T04:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455527#M14079</link>
      <description>&lt;P&gt;I use AMDP in most cases. However, I've not worked out how to get the implicit results from a call to a stored procedure using these, so for that I use ADBC. (See here for what I mean &lt;A href="https://answers.sap.com/questions/51380/index.html" target="test_blank"&gt;https://answers.sap.com/questions/51380/index.html&lt;/A&gt; ).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 07:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455527#M14079</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-03-24T07:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455528#M14080</link>
      <description>&lt;P&gt;"because I learned from my colleague that we cannot call CDS view with input parameter(table function in hana) inside a AMDP"&lt;/P&gt;&lt;P&gt;That would be new to me. Inside an AMDP you are in Native SQLScript as in an ADBC generated procedure. You can call anything you want as long it follows the AMDP rules for the usage of objects of DB schemas.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 07:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455528#M14080</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-03-24T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455529#M14081</link>
      <description>&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;I just got what you mean:). This is a good share on how to get implicit result. Although we don't have this kind of case, but thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455529#M14081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-24T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455530#M14082</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;Using R lang would be better if you're really working on statistical business, but I think normal OLAP is not always the case.&lt;/P&gt;&lt;P&gt;at the same time, theoreticly, R shall also be possible be used in pure DB procedure, because, AMDP in the end is also a procedure.&lt;/P&gt;&lt;P&gt;since you're moved to SCP, then pure DB procedure would be one you have to go.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 11:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455530#M14082</guid>
      <dc:creator>Sean_Zhang</dc:creator>
      <dc:date>2017-03-24T11:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455531#M14083</link>
      <description>&lt;P&gt;Just to mention it, R is not supported by AMDP. &lt;/P&gt;&lt;P&gt;AMDP supports L for SAP internal usage but not R.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 16:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455531#M14083</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-03-24T16:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455532#M14084</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;More to say which one is better on performance measure or  which one is better for dynamic programming, i think, you need to decide based on your experience(working with AMDP or ADBC), because in project you will find scenarios complicated, if you don´t has clear the concepts probably, you will have several issues.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455532#M14084</guid>
      <dc:creator>former_member235395</dc:creator>
      <dc:date>2017-03-24T19:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455533#M14085</link>
      <description>&lt;P&gt;AMDP because of syntax checks and auto-completion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 19:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455533#M14085</guid>
      <dc:creator>WouterLemaire</dc:creator>
      <dc:date>2017-03-25T19:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455534#M14086</link>
      <description>&lt;P&gt;Hi steve, The simple answer for your query is that...Use AMDP rather than ADBC. &lt;/P&gt;&lt;P&gt;Performance would depend on the work you are doing inside the AMDP. &lt;/P&gt;&lt;P&gt;"Actually the exact thing I am doing here is build an API for our team member to deaI with HANA stored procedure. They can use the API to create/drop/call procedures/table types." - Please elaborate the task you are up to&lt;/P&gt;&lt;P&gt;The API would create/drop PROCEDURES ?? I did not get that...:)&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 05:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455534#M14086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-26T05:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: AMDP OR ADBC?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455535#M14087</link>
      <description>&lt;P&gt;The topic description is ambiguous. Some clarification here. We are building finance consolidation product for global company consolidate their finance data from sub companies. &lt;/P&gt;&lt;P&gt;For run-time performance's purpose, we want to push logic to HANA. And we need user input to determine the business logic run at run-time. So we want generate AMDP/Pure Procedure, the generate of amdp/procedure is not necessary for comparing, they are both quick. &lt;/P&gt;&lt;P&gt;The topic is regarding using AMDP/ADBC to &lt;STRONG&gt;call &lt;/STRONG&gt;the procedure, focusing on below two points:&lt;/P&gt;&lt;P&gt;1. Dynamic programming&lt;/P&gt;&lt;P&gt;2. Performance on &lt;STRONG&gt;calling &lt;/STRONG&gt;the procedure&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 11:10:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amdp-or-adbc/m-p/455535#M14087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-27T11:10:06Z</dc:date>
    </item>
  </channel>
</rss>

