<?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: logic needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022163#M961125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try writing the Code yourself and use the F1 key or SAP Help.   You might amaze yourself at what you can learn.  If you still have problems, then post a thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 14:11:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T14:11:16Z</dc:date>
    <item>
      <title>logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022159#M961121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me the logic as my requirement is very urgent/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a z table which have reason code as a field. DB table is&lt;/P&gt;&lt;P&gt;TFDM_WRITEOFF02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a new reason code entry, a check needs to be invoked to see if the reason code has a GL account associated with it in the table TFDM_WRITEOFF02 on the R/3 side. If it doesnu2019t, an error message saying u2018Reason code does not have a GL account associated with itu2019 needs to be thrown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me the logic how to write this condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points wil be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022159#M961121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022160#M961122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select single glaccount 
        from table TFDM_WRITEOFF02
        into vl_glaccount
        where reason_code eq reason code.
if sy-subrc NE 0.
message e001(Message class).
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022160#M961122</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-23T08:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022161#M961123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try some thng like "check" table..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022161#M961123</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-06-23T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022162#M961124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Please find belwo logic for ur requirement.&lt;/P&gt;&lt;P&gt;revrt back if any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select REASON_CODE from ZTABLE  into table itab &amp;lt; where =... &amp;gt; .&lt;/P&gt;&lt;P&gt;select REASON_CODE GL_ACCOUNT from table TFDM_WRITEOFF02 into table itab2&lt;/P&gt;&lt;P&gt;&amp;lt; where =... &amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; now Itab contains reason codes.&lt;/P&gt;&lt;P&gt;--&amp;gt; now Itab2 contains  gl_accounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;At new REASON_CODE.  ( i.e whenever new reason code entry )&lt;/P&gt;&lt;P&gt;read table itab2 into wa2 with key &lt;/P&gt;&lt;P&gt;		REASON_CODE = itab-REASON_CODE.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;if wa2-gl_account is initial.   ( i.e no Gl a/c associated with reason code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message E(001) . (u2018Reason code does not have a GL account 			associated with itu2019 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;end at.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022162#M961124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: logic needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022163#M961125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try writing the Code yourself and use the F1 key or SAP Help.   You might amaze yourself at what you can learn.  If you still have problems, then post a thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 14:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed/m-p/4022163#M961125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T14:11:16Z</dc:date>
    </item>
  </channel>
</rss>

