<?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: select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124359#M742037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In pai.. write a case statement as..&lt;/P&gt;&lt;P&gt; case sy-ucomm,&lt;/P&gt;&lt;P&gt;  when &amp;lt;button&amp;gt;&lt;/P&gt;&lt;P&gt;   then fetch data using select statement with where condition as lifnr.&lt;/P&gt;&lt;P&gt;thats it..when user presses, say enter pai will be triggered and case statement executes,fetching the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful..thanx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 05:14:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-27T05:14:26Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124357#M742035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  i have created one textbox that i have  directly taken from the DB table. &lt;/P&gt;&lt;P&gt;based on the lifnr i wants to get the details in other textboxes. How can i write the code for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 04:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124357#M742035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T04:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124358#M742036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     in user command(PAI), check for ok code = 'ENTER'. then based on the enterd values fetch the other details from the database into a global variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO, if this global variable is not intial, assign the values to respective text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if useuful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 05:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124358#M742036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T05:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124359#M742037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In pai.. write a case statement as..&lt;/P&gt;&lt;P&gt; case sy-ucomm,&lt;/P&gt;&lt;P&gt;  when &amp;lt;button&amp;gt;&lt;/P&gt;&lt;P&gt;   then fetch data using select statement with where condition as lifnr.&lt;/P&gt;&lt;P&gt;thats it..when user presses, say enter pai will be triggered and case statement executes,fetching the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful..thanx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 05:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124359#M742037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T05:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124360#M742038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Create one button with function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;    WHEN &amp;lt;Function code of button&amp;gt;&lt;/P&gt;&lt;P&gt;         &amp;lt;Select statement with where condition on lifnr and store selected data       in global variable which should be of same name as the textboxs on screen.&amp;gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: OK_CODE, you need to declare in TOP Include file with type SY-UCOMM or you can directly use SY-UCOMM instant of OK_CODE but use of OK_CODE is more preferable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 08:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124360#M742038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T08:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124361#M742039</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;  First Define a Button like OK or SUBMIT in the first screen XXX1 and assign code to it ex: BUT_S1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IOF_S1(10) TYPE C,&lt;/P&gt;&lt;P&gt;      IOF_S2(10) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OK_CODE TYPE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_XXX1 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE OK_CODE. &lt;/P&gt;&lt;P&gt;  WHEN 'BUT_S1'.&lt;/P&gt;&lt;P&gt;       CALL SCREEN XXX2.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_XXX2 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Fetch the record from the database using the IOF_S1 and place it in a work area&lt;/P&gt;&lt;P&gt;and assign the required field from the workarea to the IOF_S2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_XXX2  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ravikanth Alapati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3124361#M742039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:13:10Z</dc:date>
    </item>
  </channel>
</rss>

