<?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: HI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443591#M547136</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;on press of fetch button or execute button check if ur field value is empty then retrieve all records else retrireve the data corresponding to the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move field value into &amp;lt;variable of type field&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch corres data&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch all data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 06:22:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-04T06:22:41Z</dc:date>
    <item>
      <title>HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443589#M547134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo all,&lt;/P&gt;&lt;P&gt;  My req is i have to insert the new field in selection screen , and based on that inputs fetch the data ..suppose if no input mentioned in my new field, it should display the data along with matched records ...if i enter the input in my new field it shoudl display only with related entered input matching data..My problem is it is fetching all the data and displying...how can filter the output data????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 06:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443589#M547134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T06:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443590#M547135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahendar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the primary select statements' where conditions, you will see that they are filtered on the input parameters that come from the selection screen. Now add your new parameter to those where conditiond to filter the data accordingly. If you donot keep the field as mandatory (obligatory) even if the selection screen field is initial, the select will bring records based on the rest of the filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. If it does, do reward accordingly.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 06:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443590#M547135</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2007-07-04T06:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443591#M547136</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;on press of fetch button or execute button check if ur field value is empty then retrieve all records else retrireve the data corresponding to the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move field value into &amp;lt;variable of type field&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch corres data&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch all data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 06:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443591#M547136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T06:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443592#M547137</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;You might have faced a problem in your Select query, Check the WHERE conditions properly....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;  from spfli&lt;/P&gt;&lt;P&gt;  into table t_spfli&lt;/P&gt;&lt;P&gt; where carrid eq 'AA'&lt;/P&gt;&lt;P&gt;   and connid eq P_CONNID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where P_CONNID is the parameter on the selection screen&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;Pavan P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 06:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443592#M547137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T06:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443593#M547138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the primary select stmt...&lt;/P&gt;&lt;P&gt;SELECT * FROM ekpo&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN it_ekko&lt;/P&gt;&lt;P&gt;    WHERE ebeln = it_ekko-ebeln&lt;/P&gt;&lt;P&gt;      AND matnr IN r_matnr&lt;/P&gt;&lt;P&gt;      AND werks IN s_werks&lt;/P&gt;&lt;P&gt;      AND wepos IN r_wepos&lt;/P&gt;&lt;P&gt;      AND repos IN r_repos&lt;/P&gt;&lt;P&gt;      AND retpo IN r_rtpos&lt;/P&gt;&lt;P&gt;      AND loekz IN r_loekz&lt;/P&gt;&lt;P&gt;      AND pstyp IN r_pstyp&lt;/P&gt;&lt;P&gt;      AND knttp IN s_knttp&lt;/P&gt;&lt;P&gt;      AND matkl IN s_matkl&lt;/P&gt;&lt;P&gt;      AND ean11 IN s_ean11&lt;/P&gt;&lt;P&gt;      AND idnlf IN s_idnlf&lt;/P&gt;&lt;P&gt;      AND ltsnr IN s_ltsnr&lt;/P&gt;&lt;P&gt;      AND aktnr IN s_aktnr&lt;/P&gt;&lt;P&gt;      AND saiso IN s_saiso&lt;/P&gt;&lt;P&gt;      AND saisj IN s_saisj.&lt;/P&gt;&lt;P&gt;      PERFORM berechtigungen_pos(sapfm06d).&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        xauth = 'X'.&lt;/P&gt;&lt;P&gt;        CHECK sy-subrc EQ 0.             "nächster EKPO&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      it_ekpo-ebeln = ekpo-ebeln.&lt;/P&gt;&lt;P&gt;      it_ekpo-ebelp = ekpo-ebelp.&lt;/P&gt;&lt;P&gt;      APPEND it_ekpo.&lt;/P&gt;&lt;P&gt;      lekpo = ekpo.&lt;/P&gt;&lt;P&gt;      APPEND lekpo.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT tnumber&lt;/P&gt;&lt;P&gt;               werks&lt;/P&gt;&lt;P&gt;               matkl&lt;/P&gt;&lt;P&gt;          FROM zbuyerrole&lt;/P&gt;&lt;P&gt;          INTO TABLE t_buyer&lt;/P&gt;&lt;P&gt;          WHERE werks = lekpo-werks&lt;/P&gt;&lt;P&gt;          AND  matkl = lekpo-matkl&lt;/P&gt;&lt;P&gt;          AND  knttp = lekpo-knttp&lt;/P&gt;&lt;P&gt;          AND  ( role  = c_pr OR role = c_tb )&lt;/P&gt;&lt;P&gt;          AND  tnumber IN s_t#.&lt;/P&gt;&lt;P&gt;So how can i my selectoption fiels S_t# in primary select stmt....Pls help me urgent???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 08:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443593#M547138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443594#M547139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To add new selection you will have to make input variables on the characteritics upon which you want selections and then will have to include those variables into the rows or drilldown in the reports in which you want then to appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make variables just go to the char and right click on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more help on variables go through it.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/cf/579b3c494d8e15e10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/cf/579b3c494d8e15e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute the code .&lt;/P&gt;&lt;P&gt;you will get sel option for s_lgort only when there is a value in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables mard.&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mard-matnr,&lt;/P&gt;&lt;P&gt;                s_werks for mard-werks,&lt;/P&gt;&lt;P&gt;                s_lgort for mard-lgort modif id abc.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;if not s_werks[] is initial and s_matnr[] is initial.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'ABC'.&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 08:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443594#M547139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T08:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: HI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443595#M547140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Use Primary key in table then you could not able to get dublicate value and then if you enter any dublicated values in table you should display error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 09:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2443595#M547140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T09:37:36Z</dc:date>
    </item>
  </channel>
</rss>

