<?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: sy-fdpos in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912634#M938030</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;sy-fdpos details : FDPOS -INT4- 10 -Character strings -Offset incharacter strings. &lt;/P&gt;&lt;P&gt;This will take first two character s of string a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: f1(5) TYPE c VALUE &amp;lt;f1&amp;gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      f2(5) TYPE c VALUE &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF f1 &amp;lt;operator&amp;gt; f2.&lt;/P&gt;&lt;P&gt;   WRITE: /  'Vergleich wahr, SY-FDPOS=', sy-fdpos.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   WRITE: /  'Vergleich falsch, SY-FDPOS=', sy-fdpos.&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;Reward If Helpfull,&lt;/P&gt;&lt;P&gt; Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2008 08:22:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-02T08:22:58Z</dc:date>
    <item>
      <title>sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912632#M938028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the use of sy-fdpos?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good points will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912632#M938028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912633#M938029</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;check the below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its offset position of the character  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we wnat to change the increment character  for example 25 times we use the &lt;/P&gt;&lt;P&gt;data:letter type string value 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-abcde CA letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-fdpos = sy-fdpos + 25 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;letter = sy-abcde+sy-fdpos(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;write:/ letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912633#M938029</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-02T08:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912634#M938030</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;sy-fdpos details : FDPOS -INT4- 10 -Character strings -Offset incharacter strings. &lt;/P&gt;&lt;P&gt;This will take first two character s of string a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: f1(5) TYPE c VALUE &amp;lt;f1&amp;gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      f2(5) TYPE c VALUE &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF f1 &amp;lt;operator&amp;gt; f2.&lt;/P&gt;&lt;P&gt;   WRITE: /  'Vergleich wahr, SY-FDPOS=', sy-fdpos.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;   WRITE: /  'Vergleich falsch, SY-FDPOS=', sy-fdpos.&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;Reward If Helpfull,&lt;/P&gt;&lt;P&gt; Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912634#M938030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912635#M938031</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;SY-FDPOS will give u the offset position where searching pattern is found in a string.&lt;/P&gt;&lt;P&gt;see this example.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA STRING(30) VALUE 'This is a little sentence.'.

WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
ULINE /1(26).

SEARCH STRING FOR 'itt '.
WRITE: / 'itt   ', SY-SUBRC UNDER 'SY-SUBRC',
                   SY-FDPOS UNDER 'SY-FDPOS' .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912635#M938031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912636#M938032</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;Its useful when you use SEARCH keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH dobj FOR pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement searches the data object dobj according to the search pattern specified in pattern. The additions allow to search subareas, shortened patterns and marking of places of finding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search ends at the first hit and sy-fdpos is set to the offset of the found pattern or to the word in the search area. If the pattern is not found, then sy-fdpos is set to value 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912636#M938032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912637#M938033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi barath what is the output for that program??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good points will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912637#M938033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912638#M938034</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;it searches for the string 'itt' in the sentence and gives its offset position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P&lt;/P&gt;&lt;P&gt;seached  sy-subrc sy-fdopos&lt;/P&gt;&lt;P&gt; itt             0            11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912638#M938034</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-02T08:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912639#M938035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so the output is 11 rite????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912639#M938035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912640#M938036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ouput of that program would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searched      Sy-subrc      Sy-fdpos&lt;/P&gt;&lt;P&gt;itt                     0                  11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sy-subrc is 0&lt;/STRONG&gt; b'coz the string(itt) searched is present in the string(This is a little sentence.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sy-Fdpos is 11&lt;/STRONG&gt;.  It gives ypu the position from where the string "itt" starts in "This is a little sentence".&lt;/P&gt;&lt;P&gt;Counting of position starts from 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hemant Khemani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 08:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912640#M938036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T08:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: sy-fdpos</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912641#M938037</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;output would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itt          0       11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if this helps,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kiran&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 09:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-fdpos/m-p/3912641#M938037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T09:26:15Z</dc:date>
    </item>
  </channel>
</rss>

