<?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: at selection-screen problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080872#M1356851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify how you have defined your screen elements: so_lifnr &amp;amp; s_ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think s_ekorg is a PARAMETER &amp;amp; so_lifnr is a SELECT_OPTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want to issue an error message for any LIFNR &amp;amp; EKORG combination not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2009 09:55:29 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-09-07T09:55:29Z</dc:date>
    <item>
      <title>at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080867#M1356846</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;my report has selection-screen with fields lifnr and ekorg (mandatory field).&lt;/P&gt;&lt;P&gt;and output is lifnr , ekorg and some fields from lfb1.&lt;/P&gt;&lt;P&gt;i selected ekorg and lifnr from lfm1. and make relation with lfb1 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want a at selection screen. in which it should display that vendor does not exits&lt;/P&gt;&lt;P&gt;in this organization. Please let me know the sol.&lt;/P&gt;&lt;P&gt;Example.  : i give in selection-screen &lt;/P&gt;&lt;P&gt;             vendor 1003  &lt;/P&gt;&lt;P&gt;             ekorg  a100&lt;/P&gt;&lt;P&gt;If vendor is not in a100. it should display a message like E001(message zm)&lt;/P&gt;&lt;P&gt;Vendor does not exist in this ekorg.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 07:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080867#M1356846</guid>
      <dc:creator>former_member630092</dc:creator>
      <dc:date>2009-09-07T07:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080868#M1356847</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 can do a select single to LFM1 table with the vendor and pur org..&lt;/P&gt;&lt;P&gt;if value exists vendor is corect or else wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 07:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080868#M1356847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-07T07:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080869#M1356848</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 this ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-options: s_lifnr for lfm1-lifnr,
                        s_ekorg for lfm1-ekorg.


AT selection screen. 

select single * 
from lfm1
where lifnr in s_lifnr and 
            ekorg in s_ekorg.

If sy-subrc NE 0.
message E001 with 'Vendor does not exist in the purch org' .
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 08:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080869#M1356848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-07T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080870#M1356849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_lifnr for lfm1-lifnr,&lt;/P&gt;&lt;P&gt;                         s_ekorg for lfm1-ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;IF NOT S_LIFNR IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM lfm1&lt;/P&gt;&lt;P&gt;     WHERE LIFNR IN S_LIFNR.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE TEXT-001 TYPE 'E'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT S_EKORG IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM lfm1&lt;/P&gt;&lt;P&gt;     WHERE EKORG IN S_EKORG.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE TEXT-002 TYPE 'E'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds/&lt;/P&gt;&lt;P&gt;shivraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ShivrajSinha on Sep 7, 2009 10:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 08:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080870#M1356849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-07T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080871#M1356850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sir,&lt;/P&gt;&lt;P&gt;I tried the logic , but it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;AT selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from ekko&lt;/P&gt;&lt;P&gt;where lifnr in so_lifnr and&lt;/P&gt;&lt;P&gt;            ekorg = s_ekorg.&lt;/P&gt;&lt;P&gt;If sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;message E001 with 'Vendor does not exist in the purch org' .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 09:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080871#M1356850</guid>
      <dc:creator>former_member630092</dc:creator>
      <dc:date>2009-09-07T09:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080872#M1356851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify how you have defined your screen elements: so_lifnr &amp;amp; s_ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think s_ekorg is a PARAMETER &amp;amp; so_lifnr is a SELECT_OPTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you want to issue an error message for any LIFNR &amp;amp; EKORG combination not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 09:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080872#M1356851</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-07T09:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080873#M1356852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, exactly ,i am trying to do that.&lt;/P&gt;&lt;P&gt;s_ekorg is a PARAMETER &lt;/P&gt;&lt;P&gt;&amp;amp; &lt;/P&gt;&lt;P&gt;so_lifnr is a SELECT_OPTION . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some vendor it is working , but for maximum vendors it is showing list with all blank fields.&lt;/P&gt;&lt;P&gt;Please rectify me &lt;/P&gt;&lt;P&gt;.thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 10:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080873#M1356852</guid>
      <dc:creator>former_member630092</dc:creator>
      <dc:date>2009-09-07T10:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080874#M1356853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Yes, exactly ,i am trying to do that.&lt;/P&gt;&lt;P&gt;&amp;gt; s_ekorg is a PARAMETER &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;amp; &lt;/P&gt;&lt;P&gt;&amp;gt; so_lifnr is a SELECT_OPTION . &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; for some vendor it is working , but for maximum vendors it is showing list with all blank fields.&lt;/P&gt;&lt;P&gt;&amp;gt; Please rectify me &lt;/P&gt;&lt;P&gt;&amp;gt; .thanks&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI, Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Sample Code hope will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: lfm1.
SELECT-OPTIONS: so_lifnr FOR lfm1-lifnr NO INTERVALS OBLIGATORY NO-EXTENSION.
PARAMETERS:     s_ekorg  like lfm1-ekorg OBLIGATORY.


AT SELECTION-SCREEN.
  SELECT SINGLE * FROM lfm1
    WHERE lifnr IN so_lifnr
      AND ekorg = s_ekorg.
  IF sy-subrc NE 0.
    MESSAGE: 'Not Found' TYPE 'E'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if still any Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 10:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080874#M1356853</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-09-07T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080875#M1356854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try like this then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SO_LIFNR.
  SELECT COUNT(*) FROM LFM1
  WHERE LIFNR = SO_LIFNR-LOW
  AND      EKORG = S_EKORG.
  
  IF SY-SUBRC NE 0.
"   Give Error Message
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 10:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080875#M1356854</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-07T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: at selection-screen problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080876#M1356855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 05:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen-problem/m-p/6080876#M1356855</guid>
      <dc:creator>former_member630092</dc:creator>
      <dc:date>2009-09-08T05:12:03Z</dc:date>
    </item>
  </channel>
</rss>

