<?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: where condition problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126846#M446668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Always use the Character '~' instead of '-' in joins:&lt;/P&gt;&lt;P&gt;select a-mblnr&lt;/P&gt;&lt;P&gt;a~mjahr &lt;/P&gt;&lt;P&gt;a~budat &lt;/P&gt;&lt;P&gt;b~zeile&lt;/P&gt;&lt;P&gt;b~bwart&lt;/P&gt;&lt;P&gt;b~matnr &lt;/P&gt;&lt;P&gt;b~werks &lt;/P&gt;&lt;P&gt;b~lgort&lt;/P&gt;&lt;P&gt;b~charg &lt;/P&gt;&lt;P&gt;b~sobkz&lt;/P&gt;&lt;P&gt;b~erfmg &lt;/P&gt;&lt;P&gt;b~erfme&lt;/P&gt;&lt;P&gt;b~kzbew &lt;/P&gt;&lt;P&gt;b~kzvbr &lt;/P&gt;&lt;P&gt;b~kzzug &lt;/P&gt;&lt;P&gt;b~shkzg &lt;/P&gt;&lt;P&gt;into table t_mat_data &lt;/P&gt;&lt;P&gt;from mkpf as a join mseg as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;where mseg~matnr in s_matnr ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 07:18:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-10T07:18:16Z</dc:date>
    <item>
      <title>where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126841#M446663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody &lt;/P&gt;&lt;P&gt;i got struck in  problem related to "where condition"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) i have to select mblnr , mjahr and budat from MKPF into itab (internal table) for user input in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                        +++(Inner join)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zeile,bwart,matnr,werks,lgort,charg,sobkz,erfmg,erfme,kzbew,kzvbr,kzzug,shkzg from MSEG into itab(internal table) for user input in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) now i got confused in "For user input in the selection screen " because at selection screen i have only following fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr , werks , lgort,charg,lifnr,kunnr,bwart,sobkz,usnam,vgart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i am using a query like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a-mblnr&lt;/P&gt;&lt;P&gt;       a-mjahr &lt;/P&gt;&lt;P&gt;       a-budat &lt;/P&gt;&lt;P&gt;       b-zeile&lt;/P&gt;&lt;P&gt;       b-bwart&lt;/P&gt;&lt;P&gt;       b-matnr &lt;/P&gt;&lt;P&gt;       b-werks &lt;/P&gt;&lt;P&gt;       b-lgort&lt;/P&gt;&lt;P&gt;       b-charg &lt;/P&gt;&lt;P&gt;       b-sobkz&lt;/P&gt;&lt;P&gt;       b-erfmg &lt;/P&gt;&lt;P&gt;       b-erfme&lt;/P&gt;&lt;P&gt;       b-kzbew &lt;/P&gt;&lt;P&gt;       b-kzvbr &lt;/P&gt;&lt;P&gt;       b-kzzug &lt;/P&gt;&lt;P&gt;       b-shkzg into table t_mat_data from mkpf&lt;/P&gt;&lt;P&gt;                          as a join mseg as b on a-mblnr = b-mblnr&lt;/P&gt;&lt;P&gt;                                             and a-mjahr = b-mjahr&lt;/P&gt;&lt;P&gt;                          where .....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so wat should i written in Where condition plz reply&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be awarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126841#M446663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126842#M446664</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;&lt;/P&gt;&lt;P&gt;where a~field name IN ur input&lt;/P&gt;&lt;P&gt;and    b~fields name IN ur input&lt;/P&gt;&lt;P&gt;and    A~FIELDNAME = UE INOUT .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126842#M446664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126843#M446665</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;select a-mblnr&lt;/P&gt;&lt;P&gt;a-mjahr &lt;/P&gt;&lt;P&gt;a-budat &lt;/P&gt;&lt;P&gt;b-zeile&lt;/P&gt;&lt;P&gt;b-bwart&lt;/P&gt;&lt;P&gt;b-matnr &lt;/P&gt;&lt;P&gt;b-werks &lt;/P&gt;&lt;P&gt;b-lgort&lt;/P&gt;&lt;P&gt;b-charg &lt;/P&gt;&lt;P&gt;b-sobkz&lt;/P&gt;&lt;P&gt;b-erfmg &lt;/P&gt;&lt;P&gt;b-erfme&lt;/P&gt;&lt;P&gt;b-kzbew &lt;/P&gt;&lt;P&gt;b-kzvbr &lt;/P&gt;&lt;P&gt;b-kzzug &lt;/P&gt;&lt;P&gt;b-shkzg into table t_mat_data from mkpf&lt;/P&gt;&lt;P&gt;as a join mseg as b on a-mblnr = b-mblnr&lt;/P&gt;&lt;P&gt;and a-mjahr = b-mjahr&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;where mseg~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;      mseg~werks in s_werks and&lt;/P&gt;&lt;P&gt;      mseg~igort in s_igort and&lt;/P&gt;&lt;P&gt;      mseg~charg in s_charg and&lt;/P&gt;&lt;P&gt;      mseg~kunnr in s_kunnr and &lt;/P&gt;&lt;P&gt;      mseg~bwart in s_bwart and &lt;/P&gt;&lt;P&gt;      mseg~sobkz in s_sobkz  and&lt;/P&gt;&lt;P&gt;      mseg~usnam in s_usnam.&amp;lt;b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126843#M446665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126844#M446666</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;u need to use the TILT operator here !!!  "~"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a~mblnr&lt;/P&gt;&lt;P&gt;a~mjahr&lt;/P&gt;&lt;P&gt;a~budat&lt;/P&gt;&lt;P&gt;b~zeile&lt;/P&gt;&lt;P&gt;b~bwart&lt;/P&gt;&lt;P&gt;b~matnr&lt;/P&gt;&lt;P&gt;b~werks&lt;/P&gt;&lt;P&gt;b~lgort&lt;/P&gt;&lt;P&gt;b~charg&lt;/P&gt;&lt;P&gt;b~sobkz&lt;/P&gt;&lt;P&gt;b~erfmg&lt;/P&gt;&lt;P&gt;b~erfme&lt;/P&gt;&lt;P&gt;b~kzbew&lt;/P&gt;&lt;P&gt;b~kzvbr&lt;/P&gt;&lt;P&gt;b~kzzug&lt;/P&gt;&lt;P&gt;b~shkzg into table t_mat_data from mkpf&lt;/P&gt;&lt;P&gt;as a join mseg as b on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;where mseg&lt;SUB&gt;matnr in s_matnr and &amp;lt;i&amp;gt;**If it is a parameter then u need to use mseg&lt;/SUB&gt;matnr eq p_matnr.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;     werks eq p_werks and&lt;/P&gt;&lt;P&gt;     lgort eq p_lgort and&lt;/P&gt;&lt;P&gt;     charg eq p_charg and &lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;not the ' -'  u need to use "~".&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126844#M446666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126845#M446667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find the select query absolutely correct.&lt;/P&gt;&lt;P&gt;In the where clause just write what all fields you have on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where matnr = s_matnr&lt;/P&gt;&lt;P&gt;and werks = s_werks&lt;/P&gt;&lt;P&gt;and lgort = s_lgort&lt;/P&gt;&lt;P&gt;and .............so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internally the join will take care of fields as to which table it belongs to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126845#M446667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126846#M446668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Always use the Character '~' instead of '-' in joins:&lt;/P&gt;&lt;P&gt;select a-mblnr&lt;/P&gt;&lt;P&gt;a~mjahr &lt;/P&gt;&lt;P&gt;a~budat &lt;/P&gt;&lt;P&gt;b~zeile&lt;/P&gt;&lt;P&gt;b~bwart&lt;/P&gt;&lt;P&gt;b~matnr &lt;/P&gt;&lt;P&gt;b~werks &lt;/P&gt;&lt;P&gt;b~lgort&lt;/P&gt;&lt;P&gt;b~charg &lt;/P&gt;&lt;P&gt;b~sobkz&lt;/P&gt;&lt;P&gt;b~erfmg &lt;/P&gt;&lt;P&gt;b~erfme&lt;/P&gt;&lt;P&gt;b~kzbew &lt;/P&gt;&lt;P&gt;b~kzvbr &lt;/P&gt;&lt;P&gt;b~kzzug &lt;/P&gt;&lt;P&gt;b~shkzg &lt;/P&gt;&lt;P&gt;into table t_mat_data &lt;/P&gt;&lt;P&gt;from mkpf as a join mseg as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;where mseg~matnr in s_matnr ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126846#M446668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126847#M446669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thanks to all of u for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query is working very fine but data is not found in Internal table . i am getting an error as " data not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 08:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126847#M446669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T08:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126848#M446670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are using all the screen fields as SELECT-OPTIONS. If yes without entering anything on the screen, execute the report. It should give some records in the table provided you have entries in table MKPF and then in MSEG. Confirm this using transaction SE16 first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 08:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126848#M446670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T08:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: where condition problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126849#M446671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u r rite it works well . so wat should i do now when i will execute by filling up the enteries at selection screen . so that table will be full&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 10:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-condition-problem/m-p/2126849#M446671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T10:35:56Z</dc:date>
    </item>
  </channel>
</rss>

