<?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: hello problem wid sql stmt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042157#M720002</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;Just check ur where condition. &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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2007 06:40:46 GMT</pubDate>
    <dc:creator>former_member386202</dc:creator>
    <dc:date>2007-10-26T06:40:46Z</dc:date>
    <item>
      <title>hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042156#M720001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have declared my type as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ST_REGUH,&lt;/P&gt;&lt;P&gt;        LAUFD TYPE REGUH-LAUFD,&lt;/P&gt;&lt;P&gt;        LAUFI TYPE REGUH-LAUFI,&lt;/P&gt;&lt;P&gt;        XVORL TYPE REGUH-XVORL,&lt;/P&gt;&lt;P&gt;        LIFNR TYPE REGUH-LIFNR,&lt;/P&gt;&lt;P&gt;        WAERS TYPE REGUH-WAERS,&lt;/P&gt;&lt;P&gt;        NAME1 TYPE REGUH-NAME1,&lt;/P&gt;&lt;P&gt;        RWBTR TYPE REGUH-RWBTR,&lt;/P&gt;&lt;P&gt;      END OF ST_REGUH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT laufd&lt;/P&gt;&lt;P&gt;         laufi&lt;/P&gt;&lt;P&gt;         XVORL&lt;/P&gt;&lt;P&gt;         LIFNR&lt;/P&gt;&lt;P&gt;         waers&lt;/P&gt;&lt;P&gt;         name1&lt;/P&gt;&lt;P&gt;         rwbtr INTO TABLE it_reguh FROM reguh WHERE laufd = reguh-laufd AND&lt;/P&gt;&lt;P&gt;                                                    laufi = reguh-laufi .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e042(zmmcase).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is going to short dump giving error analysis as folows. can anyone help me???&lt;/P&gt;&lt;P&gt;reward pts available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042156#M720001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042157#M720002</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;Just check ur where condition. &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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042157#M720002</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-10-26T06:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042158#M720003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u cant use like this.......&lt;/P&gt;&lt;P&gt;u r selecting from reguh and checking ur condition again from the same table......&lt;/P&gt;&lt;P&gt;this is not possible.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to read values of laufd  and laufi from user and pass them to SELECT query or LAUFD and LAUFI values should be in some internal table and u can pass those values to SELECT query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example. : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data : w_laufd TYPE reguh-laufd,&lt;/P&gt;&lt;P&gt;          w_laufi TYPE reguh-laufi.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_laufd FOR w_reguh,&lt;/P&gt;&lt;P&gt;                               s_laufi FOR w_laufi.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SELECT laufd&lt;/P&gt;&lt;P&gt;laufi&lt;/P&gt;&lt;P&gt;XVORL&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;waers&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;rwbtr INTO TABLE it_reguh FROM reguh &amp;lt;b&amp;gt;WHERE laufd IN s_laufd AND&lt;/P&gt;&lt;P&gt;laufi IN s_laufi .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE e042(zmmcase).&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 me if useful........&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042158#M720003</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-10-26T06:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042159#M720004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is error analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042159#M720004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042160#M720005</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;I think there is a problem with your where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ST_REGUH,&lt;/P&gt;&lt;P&gt;LAUFD TYPE REGUH-LAUFD,&lt;/P&gt;&lt;P&gt;LAUFI TYPE REGUH-LAUFI,&lt;/P&gt;&lt;P&gt;XVORL TYPE REGUH-XVORL,&lt;/P&gt;&lt;P&gt;LIFNR TYPE REGUH-LIFNR,&lt;/P&gt;&lt;P&gt;WAERS TYPE REGUH-WAERS,&lt;/P&gt;&lt;P&gt;NAME1 TYPE REGUH-NAME1,&lt;/P&gt;&lt;P&gt;RWBTR TYPE REGUH-RWBTR,&lt;/P&gt;&lt;P&gt;END OF ST_REGUH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_reguh type standard table of st_reguh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : w_LAUFD TYPE REGUH-LAUFD,&lt;/P&gt;&lt;P&gt;       w_LAUFI TYPE REGUH-LAUFI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_LAUFD for w_LAUFD,&lt;/P&gt;&lt;P&gt;                s_LAUFI for w_LAUFI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT laufd&lt;/P&gt;&lt;P&gt;laufi&lt;/P&gt;&lt;P&gt;XVORL&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;waers&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;rwbtr&lt;/P&gt;&lt;P&gt;INTO TABLE it_reguh&lt;/P&gt;&lt;P&gt;FROM reguh&lt;/P&gt;&lt;P&gt;WHERE laufd in s_laufd AND&lt;/P&gt;&lt;P&gt;laufi in s_laufi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE e042(zmmcase).&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;&lt;/P&gt;&lt;P&gt;reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vinod Samuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042160#M720005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042161#M720006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;your where condition is not correct .&lt;/P&gt;&lt;P&gt;you cannot compare the same table date with itself.&lt;/P&gt;&lt;P&gt;either u can use some other variable or a constant in your where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sohi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042161#M720006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042162#M720007</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;while declaring table for ur structure use type keyword instead of like as for types we must use type keyword only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in ur select satement try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT laufd&lt;/P&gt;&lt;P&gt;laufi&lt;/P&gt;&lt;P&gt;XVORL&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;waers&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;rwbtr INTO TABLE it_reguh FROM reguh WHERE laufd = p_laufd AND&lt;/P&gt;&lt;P&gt;laufi = p_laufi. /// becozz this are input fields and those are compared to database table fields in where condition n if it is satisfied den only u ll get all records dat are suited to dat condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042162#M720007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042163#M720008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi madan&lt;/P&gt;&lt;P&gt;tables : reguh.&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ST_REGUH,&lt;/P&gt;&lt;P&gt;LAUFD like REGUH-LAUFD,&lt;/P&gt;&lt;P&gt;LAUFI like REGUH-LAUFI,&lt;/P&gt;&lt;P&gt;XVORL like REGUH-XVORL,&lt;/P&gt;&lt;P&gt;LIFNR like REGUH-LIFNR,&lt;/P&gt;&lt;P&gt;WAERS like REGUH-WAERS,&lt;/P&gt;&lt;P&gt;NAME1 like REGUH-NAME1,&lt;/P&gt;&lt;P&gt;RWBTR like REGUH-RWBTR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF ST_REGUH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:s_LAUFD for REGUH-LAUFD.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN end OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_reguh type STANDARD TABLE OF  ST_REGUH.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;SELECT laufd&lt;/P&gt;&lt;P&gt;laufi&lt;/P&gt;&lt;P&gt;XVORL&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;waers&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;rwbtr INTO TABLE it_reguh FROM reguh WHERE laufd = s_laufd AND&lt;/P&gt;&lt;P&gt;laufi = reguh-laufi .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE e042(zmmcase).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's will help  u&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042163#M720008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042164#M720009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your WHERE statement bis wrong..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042164#M720009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042165#M720010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have make mistake as follow&lt;/P&gt;&lt;P&gt;the first: I havenot found the definition of internal table.&lt;/P&gt;&lt;P&gt;        data:it_reguh like table of st_reguh.&lt;/P&gt;&lt;P&gt;the second :&lt;/P&gt;&lt;P&gt;       you should pay more attention to where cause.&lt;/P&gt;&lt;P&gt;may thest can help you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042165#M720010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042166#M720011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See in Select Statement , in where condition you are compairing Same Table filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when ever you write any Where condition it shoud be like::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a b c d from abc into table  it_abc where a = 'A' and b = it_xys-b and&lt;/P&gt;&lt;P&gt;                                                                     c in s_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where a,b,c,d is field s of table ABC&lt;/P&gt;&lt;P&gt;it_abc is internal table and&lt;/P&gt;&lt;P&gt;it_xtz is also internal table which is holding data now,&lt;/P&gt;&lt;P&gt;s_c is selection screen varible where you can give selection for data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hetal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 06:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042166#M720011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T06:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: hello problem wid sql stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042167#M720012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi madan&lt;/P&gt;&lt;P&gt;this is code is perfect working check it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : reguh.&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ST_REGUH,&lt;/P&gt;&lt;P&gt;LAUFD like REGUH-LAUFD,&lt;/P&gt;&lt;P&gt;LAUFI like REGUH-LAUFI,&lt;/P&gt;&lt;P&gt;XVORL like REGUH-XVORL,&lt;/P&gt;&lt;P&gt;LIFNR like REGUH-LIFNR,&lt;/P&gt;&lt;P&gt;WAERS like REGUH-WAERS,&lt;/P&gt;&lt;P&gt;NAME1 like REGUH-NAME1,&lt;/P&gt;&lt;P&gt;RWBTR like REGUH-RWBTR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF ST_REGUH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:s_LAUFD for REGUH-LAUFD.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN end OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_reguh type STANDARD TABLE OF  ST_REGUH,&lt;/P&gt;&lt;P&gt;       wa_reguh type st_reguh.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;SELECT laufd&lt;/P&gt;&lt;P&gt;laufi&lt;/P&gt;&lt;P&gt;  XVORL&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;waers&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;rwbtr FROM reguh INTO TABLE it_reguh  WHERE laufd in s_laufd .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_reguh into wa_reguh.&lt;/P&gt;&lt;P&gt; write : /  wa_reguh-laufd,wa_reguh-laufi.&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;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 07:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hello-problem-wid-sql-stmt/m-p/3042167#M720012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-26T07:01:53Z</dc:date>
    </item>
  </channel>
</rss>

