<?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: using ABAP data types in SQL procedures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319311#M1918980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not define any ABAP data types inside procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell us what is ur requirement.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-Amol S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 09:07:56 GMT</pubDate>
    <dc:creator>amol_samte</dc:creator>
    <dc:date>2015-09-29T09:07:56Z</dc:date>
    <item>
      <title>using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319309#M1918978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use ABAP Data types in SQL procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example- like in abap we declare structures and within structure when we define the fields we can define them as type table-field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way when I define table type in SQL can i use the ABAP data elements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE TYPE i_notification (&lt;/P&gt;&lt;P&gt; Matnr like MARA-MATNR) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is obviously not working but is there any workaround for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Vivek &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 03:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319309#M1918978</guid>
      <dc:creator>former_member195748</dc:creator>
      <dc:date>2015-09-29T03:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319310#M1918979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the usage of ABAP Data Types (like data elements, structured, table types) is not possible in HANA native artifacts like stored procedures or structured types. In that artifacts primitive types and structured types can be used like described in the documentation (e.g. &lt;A href="https://help.sap.com/saphelp_hanaone/helpdata/en/20/d5c1ed75191014a80d897035629def/content.htm" title="https://help.sap.com/saphelp_hanaone/helpdata/en/20/d5c1ed75191014a80d897035629def/content.htm"&gt;CREATE TYPE - SAP HANA SQL and System Views Reference - SAP Library&lt;/A&gt; or &lt;A href="http://help.sap.com/saphelp_hanaplatform/helpdata/en/2b/d80e51e3f54ff39b6bfe97bbfbc956/content.htm" title="http://help.sap.com/saphelp_hanaplatform/helpdata/en/2b/d80e51e3f54ff39b6bfe97bbfbc956/content.htm"&gt;CDS Structured Type Definition - SAP HANA Developer Guide for SAP HANA Studio - SAP Library&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In relation to stored procedures you can use ABAP types in the interface definition of ABAP Managed Database procedures. This is possible because these objects are ABAP managed. When the stored procedures are created on the HANA database (when executed the first time) the ABAP types are converted to the according HANA types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 05:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319310#M1918979</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2015-09-29T05:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319311#M1918980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not define any ABAP data types inside procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell us what is ur requirement.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-Amol S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319311#M1918980</guid>
      <dc:creator>amol_samte</dc:creator>
      <dc:date>2015-09-29T09:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319312#M1918981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amol, Hello Florian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually I am converting ECC custom resports into HAna reports using views, but the problem that I am facing is the business Logics inside the reports, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To tackle that, I am planning to convert the ABAP Code into SQL code and using the views and sql code I may be able to achieve the business logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my approach correct , or is there any easy way of doing it as suggested by Florian- ABAP managed Procedure, I am not sure.If you have information on this kindly help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319312#M1918981</guid>
      <dc:creator>former_member195748</dc:creator>
      <dc:date>2015-09-29T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319313#M1918982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For converting ECC reports into HANA you are creating SQL script that is right approach.&lt;/P&gt;&lt;P&gt;If you wish to consume these views on ABAP layer you need to create external view either ADBC otherwise SQL script view is sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if you want to push you script into HANA layer then AMDP is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question from my side : After creation of views, where these are consumed? ABAP layer? BO? etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amol S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 09:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319313#M1918982</guid>
      <dc:creator>amol_samte</dc:creator>
      <dc:date>2015-09-29T09:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319314#M1918983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amol,&lt;/P&gt;&lt;P&gt;1) the users will access reports through bobj explorer tool&lt;/P&gt;&lt;P&gt;2) the plan is to scrap the ECC reports hence, code optimisation or consuming views in abap is not an option. &lt;/P&gt;&lt;P&gt;Hence somehow i need to convert these reports to HANA. &lt;/P&gt;&lt;P&gt;Tge biggest challenge is to convert the buisness logic into SQL, moreover how to use function module here in sql. Its not possible to recreate the function module here in HANA STUDIO procedures. &lt;/P&gt;&lt;P&gt;questions:&lt;/P&gt;&lt;P&gt;A)does it means that there is a limitation what views can do&lt;/P&gt;&lt;P&gt;b) is there anyway to consume abap function modules in sql. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 14:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319314#M1918983</guid>
      <dc:creator>former_member195748</dc:creator>
      <dc:date>2015-09-29T14:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319315#M1918984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since past 2 years we are working on same kind of scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You must have to convert report logic into SQL, there is no sach a option available to consume existing FM or any other abap functions in SQL. &lt;/P&gt;&lt;P&gt;2. For FM - you need to decode the logic of FM and built data modle/Procedure in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our complex report cases.&lt;/P&gt;&lt;P&gt;1. We have created AMDP data modle called inside RFC ZFM and applied data processing logic in ABAP layer and given RFC ZFM to BO team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amol S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319315#M1918984</guid>
      <dc:creator>amol_samte</dc:creator>
      <dc:date>2015-09-29T16:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319316#M1918985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amol, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got it, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly,&lt;SPAN style="font-size: 13.3333px;"&gt;( correct me if I am wrong, dont have much idea about AMDP).&lt;/SPAN&gt; as you suggested AMDP, i dont think that will be possible as ECC reports will be scrapped , so no scenario of AMDP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 04:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319316#M1918985</guid>
      <dc:creator>former_member195748</dc:creator>
      <dc:date>2015-09-30T04:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319317#M1918986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please elaborate.&lt;/P&gt;&lt;P&gt; I didnt get you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Amol S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 06:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319317#M1918986</guid>
      <dc:creator>amol_samte</dc:creator>
      <dc:date>2015-09-30T06:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: using ABAP data types in SQL procedures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319318#M1918987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amol,&lt;/P&gt;&lt;P&gt;I realized there is no way I can consume the ABAP code in views, hence I need to recreate the complete logic in SQL.&lt;/P&gt;&lt;P&gt;thanks . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 07:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-abap-data-types-in-sql-procedures/m-p/11319318#M1918987</guid>
      <dc:creator>former_member195748</dc:creator>
      <dc:date>2015-10-05T07:02:41Z</dc:date>
    </item>
  </channel>
</rss>

