<?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: Transform from basic to object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374048#M1733377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice Clemens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 14:22:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-18T14:22:13Z</dc:date>
    <item>
      <title>Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374044#M1733373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Is there anyway to turn this kind of basic abap code into abap object one?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;READTABLE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; Internal&lt;/SPAN&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0);"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt; area &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;WITH KEY&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;&lt;BR /&gt; ytest = source_fields_rule-gl_account&lt;BR style="background-position: repeat;" /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;BINARYSEARCH&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;.&lt;BR style="background-position: repeat;" /&gt; &lt;BR style="background-position: repeat;" /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;IF&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt; area-flag = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'N'&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;.&lt;BR style="background-position: repeat;" /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: #575757;"&gt;CLEAR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt; RESULT.&lt;BR style="background-position: repeat;" /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10.0pt;"&gt;ENDIF&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;IF&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt; area-flag = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'Y'&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;&lt;BR style="background-position: repeat;" /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: #575757;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt; area-tpr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ISINITIAL&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;.&lt;BR style="background-position: repeat;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESULT = SOURCE_FIELDS_RULE-value.&lt;BR style="background-position: repeat;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ELSE&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;.&lt;BR style="background-position: repeat;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESULT = area-tpr.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-position: repeat;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="background-position: repeat;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #575757;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Amine&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 09:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374044#M1733373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-18T09:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374045#M1733374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amine,&lt;/P&gt;&lt;P&gt;I don't understand your question. Is there a syntax check error in ABAP OO context? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 11:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374045#M1733374</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2013-04-18T11:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374046#M1733375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No there is no errors, but i would like to change it in an objects style not the basic abap....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it's more clear &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1389/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 12:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374046#M1733375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-18T12:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374047#M1733376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for oo programming please refer to google. You will find tons of learning material. What is you oo expertise/training level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you can use a functional method importing &lt;SPAN style="font-size: 10.0pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;source_fields_rule returning RESULT.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt;But your code is buggy as it is: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;READTABLE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; ...&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #575757;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;BINARYSEARCH and no check for SY-SUBRC will cause unpredictable errors if no matching record is found.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: Arial, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: Arial, sans-serif;"&gt;Clemens&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 13:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374047#M1733376</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2013-04-18T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374048#M1733377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice Clemens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 14:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374048#M1733377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-18T14:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374049#M1733378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no "object style" ABAP. This code block will look exactly the same in ABAO OO (needs some "optimization" though, see Clemens' comment, but this is another story).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 08:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374049#M1733378</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2013-04-19T08:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Transform from basic to object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374050#M1733379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I taked account of Clemens remark.&lt;/P&gt;&lt;P&gt;Do you see any other optimization that i can add to my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 09:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-from-basic-to-object/m-p/9374050#M1733379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-19T09:15:02Z</dc:date>
    </item>
  </channel>
</rss>

