<?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: selecting data from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986298#M705171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what table. How many records in each table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2007 14:45:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-01T14:45:05Z</dc:date>
    <item>
      <title>selecting data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986297#M705170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a interesting selection to be made from a Particular table the search is with material and plant.I fit is not found i have to search with the pattern as given below untill the corresponding material is found .any idea how i can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example see below&lt;/P&gt;&lt;P&gt;plant----material&lt;/P&gt;&lt;P&gt;H101 BTMSTY13/200&lt;/P&gt;&lt;P&gt;H101 BTMSTY13/20*&lt;/P&gt;&lt;P&gt;H101 BTMSTY13/2*&lt;/P&gt;&lt;P&gt;H101 BTMSTY13/*&lt;/P&gt;&lt;P&gt;H101 BTMSTY13*&lt;/P&gt;&lt;P&gt;H101 BTMSTY1*&lt;/P&gt;&lt;P&gt;H101 BTMSTY*&lt;/P&gt;&lt;P&gt;H101 BTMST*&lt;/P&gt;&lt;P&gt;H101 BTMS*&lt;/P&gt;&lt;P&gt;H101 BTM*&lt;/P&gt;&lt;P&gt;H101 BT*&lt;/P&gt;&lt;P&gt;H101 B*&lt;/P&gt;&lt;P&gt;H101 *&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY13/200&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY13/20*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY13/2*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY13/*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY13*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY1*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMSTY*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMST*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTMS*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BTM*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BT*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;B*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to search untill it reaches * * how can i search from table using pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Hemraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 14:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986297#M705170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986298#M705171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what table. How many records in each table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 14:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986298#M705171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T14:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986299#M705172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THIS CODE MIGHT HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: WA_MARC TYPE TYPES_MARC,
        WL_WHR  TYPE STRING,
        WL_TIME TYPE SY-TABIX,
        WL_LEN1 TYPE SY-INDEX,
        WL_LEN2 TYPE SY-INDEX.

** Build Dynamic Select Query.

  WL_LEN1 = STRLEN( P_WERKS ).
  WL_LEN2 = STRLEN( P_MATNR ).

  DO.
    WL_WHR = 'WERKS = P_WERKS AND MATNR = P_MATNR'.
    SELECT SINGLE WERKS MATNR FROM MARC INTO WA_MARC
           WHERE (WL_WHR).
    IF SY-SUBRC = 0.
      EXIT.
    ELSE.
      WL_LEN1 = WL_LEN1 - 1.
      IF WL_LEN1 &amp;gt;= 0.
        P_WERKS+WL_LEN1(SY-INDEX) = '*'.
        WL_WHR = 'WERKS = P_WERKS AND MATNR = P_MATNR'.
        SELECT SINGLE WERKS MATNR FROM MARC INTO WA_MARC
               WHERE (WL_WHR).
        IF SY-SUBRC = 0.
          EXIT.
        ELSE.
          WL_LEN2 = WL_LEN2 - 1.
          IF WL_LEN2 &amp;gt;= 0.
            P_MATNR+WL_LEN2(SY-INDEX) = '*'.
            WL_WHR = 'WERKS = P_WERKS AND MATNR = P_MATNR'.
            SELECT SINGLE WERKS MATNR FROM MARC INTO WA_MARC
                   WHERE (WL_WHR).
            IF SY-SUBRC = 0.
              EXIT.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 15:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986299#M705172</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-11-01T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: selecting data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986300#M705173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u Anirban for the help and effort .I will try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 06:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-table/m-p/2986300#M705173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-02T06:16:07Z</dc:date>
    </item>
  </channel>
</rss>

