<?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: Need Condition statement syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127842#M1188894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry  they   are   FD21 and EDS4 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 21:40:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T21:40:54Z</dc:date>
    <item>
      <title>Need Condition statement syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127839#M1188891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement ,A condition needs to be written. &lt;/P&gt;&lt;P&gt;If  2nd element of PRDHA is 'D' then&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In  field  values may be PRDHA  = F&lt;STRONG&gt;D&lt;/STRONG&gt;21,RS31,E&lt;STRONG&gt;D&lt;/STRONG&gt;S4,RSDE   etc...., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now My if condition should satisfy only if the second field has D  .So in the above case  for 1st &amp;amp; third fields My condition should satisfy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank U very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127839#M1188891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T21:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need Condition statement syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127840#M1188892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In field values may be PRDHA = F&lt;STRONG&gt;D&lt;/STRONG&gt;21,RS31,E&lt;STRONG&gt;D&lt;/STRONG&gt;S4,RSDE etc...., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now My if condition should satisfy only if the second field has D .So in the above case for 1st &amp;amp; third fields My condition should satisfy.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how is the 2nd element D in case of F&lt;STRONG&gt;D&lt;/STRONG&gt;21 and E&lt;STRONG&gt;D&lt;/STRONG&gt;S4 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127840#M1188892</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2009-02-09T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Condition statement syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127841#M1188893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an alternative SPLIT the string at D and get the position.&lt;/P&gt;&lt;P&gt;If its greater than 2 then get the charater before it and check its an special character than use it.&lt;/P&gt;&lt;P&gt;If its equal to 2 then use it directly.&lt;/P&gt;&lt;P&gt;If its less than 2 then check for the second occurance of D and Repeat Step 1 and 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127841#M1188893</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2009-02-09T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need Condition statement syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127842#M1188894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry  they   are   FD21 and EDS4 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127842#M1188894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T21:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need Condition statement syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127843#M1188895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
If PRDHA+1(1) = 'D'.
 .. your condition...
Endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127843#M1188895</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2009-02-09T21:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need Condition statement syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127844#M1188896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab OCCURS 0,
   string TYPE string,
  END OF itab.

itab-string = 'FD21'.
APPEND itab.
itab-string = 'RS31'.
APPEND itab.
itab-string = 'EDS4'.
APPEND itab.
itab-string = 'RSDE'.
APPEND itab.


LOOP AT itab.
  IF itab-string+1(1) = 'D'.
    WRITE: itab-string.
  ELSE.
    DELETE itab INDEX sy-tabix.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-condition-statement-syntax/m-p/5127844#M1188896</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-09T21:52:44Z</dc:date>
    </item>
  </channel>
</rss>

