<?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: Converting AMDP Code to ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200467#M1981791</link>
    <description>&lt;P&gt;What Artem says. Clearly it's not syntactically correct. I wonder why your first attempt at "fixing" this is to try to write it in ABAP?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 14:40:53 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2020-04-09T14:40:53Z</dc:date>
    <item>
      <title>Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200461#M1981785</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I need to rewrite the following code in ABAP. &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;outTab = SELECT 
COALESCE (team_p.role_id, ") as "CPR_ROLE",
record,
SQL_PROCEDURE_SOURCE_RECORD
FROM:inTab AS it
LEFT OUTER JOIN "/BIC/APCPMAA022" AS team_p
ON it.root_key=team_p.root_key and
WHERE team_p.role_id='XX01'&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Alternatively, we could correct the code here, because the last WHERE statement causes an error.&lt;/P&gt;
  &lt;P&gt;I'd be most grateful if you could give me some advice.&lt;/P&gt;
  &lt;P&gt;Thanks in advance!&lt;/P&gt;
  &lt;P&gt;Piotr&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 07:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200461#M1981785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-04-08T07:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200462#M1981786</link>
      <description>&lt;P&gt;What ABAP code did you try? What syntax error did you get?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 08:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200462#M1981786</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-04-08T08:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200463#M1981787</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;piotrillo&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Am afraid we wont be able to support you with the available information. For instance the above query is fetching data from local variable :it_root, unless we know the data logic for this we wont be able to support.&lt;/P&gt;&lt;P&gt;Also do let us know the code you have tried so far, which will be helpful for us to correct.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 12:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200463#M1981787</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-04-08T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200464#M1981788</link>
      <description>&lt;P&gt;The error is just&lt;/P&gt;&lt;P&gt;SQLSCRIPT: sql syntax error: incorrect syntax near "WHERE"&lt;/P&gt;&lt;P&gt;I haven't tried it in ABAP, I'm not so good at abap.&lt;/P&gt;&lt;P&gt;But I think it would be better to rebuild this logic in ABAP.&lt;/P&gt;&lt;P&gt;What do you think? Maybe someone can help me to do it in ABAP.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200464#M1981788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-04-08T15:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200465#M1981789</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Change your query as below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;outTab = SELECT 
COALESCE (team_p.role_id, ") as "CPR_ROLE",
record,
SQL_PROCEDURE_SOURCE_RECORD
FROM :inTab AS it
LEFT OUTER JOIN 
    (select * froom "/BIC/APCPMAA022" WHERE team_p.role_id = 'XX01') AS team_p
    ON (it.root_key = team_p.root_key)

&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200465#M1981789</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2020-04-08T18:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200466#M1981790</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;ON it.root_key=team_p.root_key and  
WHERE team_p.role_id='XX01'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In your case "and" and "where" standing this close are causing the error. You need only one of them&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 12:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200466#M1981790</guid>
      <dc:creator>former_member358098</dc:creator>
      <dc:date>2020-04-09T12:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Converting AMDP Code to ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200467#M1981791</link>
      <description>&lt;P&gt;What Artem says. Clearly it's not syntactically correct. I wonder why your first attempt at "fixing" this is to try to write it in ABAP?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 14:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-amdp-code-to-abap/m-p/12200467#M1981791</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-04-09T14:40:53Z</dc:date>
    </item>
  </channel>
</rss>

