<?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: Selection-Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858508#M927430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u want to execute the code as an when data is entered in input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this,&lt;/P&gt;&lt;P&gt;U have to use event "data_changed" of class "cl_gui_alv_grid".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Declaration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION .&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION .&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      handle_data_changed&lt;/P&gt;&lt;P&gt;      FOR EVENT data_changed OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING er_data_changed.&lt;/P&gt;&lt;P&gt;ENDCLASS.                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Implementation of class:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION .&lt;/P&gt;&lt;P&gt;  METHOD handle_data_changed.&lt;/P&gt;&lt;P&gt;    PERFORM data_changed USING er_data_changed .&lt;/P&gt;&lt;P&gt;  ENDMETHOD .                    &lt;/P&gt;&lt;P&gt;ENDCLASS .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Form (actual code)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FORM data_changed USING  rr_data_changed TYPE REF TO&lt;/P&gt;&lt;P&gt;                                         cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_mod_cells TYPE lvc_s_modi.&lt;/P&gt;&lt;P&gt;  DATA: ls_cells TYPE lvc_s_modi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN  'Input field name'.&lt;/P&gt;&lt;P&gt;        CALL METHOD rr_data_changed-&amp;gt;get_cell_value&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_row_id    = ls_mod_cells-row_id&lt;/P&gt;&lt;P&gt;            i_fieldname = ls_mod_cells-fieldname&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            e_value     = lv_variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, &lt;STRONG&gt;lv_variable&lt;/STRONG&gt; of type input field is a local variable to store the data enterd in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pooja Bajaj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 10:43:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-09T10:43:26Z</dc:date>
    <item>
      <title>Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858505#M927427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I have a selection screen with one input field.When I input the value and press enter then i want to execute code.&lt;/P&gt;&lt;P&gt;I dont want to execute it( code ) by F8 or click on EXECUTE button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help us................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Alok Vishnoi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858505#M927427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858506#M927428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have Provision from sap like load-of-program.&lt;/P&gt;&lt;P&gt;in your code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load-of-program.&lt;/P&gt;&lt;P&gt;under that you process the code for as follows....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'Z......'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then proceed otherwise raise the message like 'you have to run this report through transaction code only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;madan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Madan kurapati on May 9, 2008 4:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858506#M927428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858507#M927429</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 out this code......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : P_VB TYPE VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UCOMM = 'ONLI' OR SY-UCOMM = ''.&lt;/P&gt;&lt;P&gt;CALL SCREEN 1000.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : 'HI !'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( If it is a module-pool call the user-defined screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can give Your own pf-status : ' set pf-status 'XXXX' ' (in report also at event 'selection-screen output' ) ; DEFINE YOUR OWN FCODE and do the processing if sy-ucomm is the defined one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858507#M927429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858508#M927430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u want to execute the code as an when data is entered in input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this,&lt;/P&gt;&lt;P&gt;U have to use event "data_changed" of class "cl_gui_alv_grid".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Declaration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION .&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION .&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      handle_data_changed&lt;/P&gt;&lt;P&gt;      FOR EVENT data_changed OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING er_data_changed.&lt;/P&gt;&lt;P&gt;ENDCLASS.                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Implementation of class:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION .&lt;/P&gt;&lt;P&gt;  METHOD handle_data_changed.&lt;/P&gt;&lt;P&gt;    PERFORM data_changed USING er_data_changed .&lt;/P&gt;&lt;P&gt;  ENDMETHOD .                    &lt;/P&gt;&lt;P&gt;ENDCLASS .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Form (actual code)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FORM data_changed USING  rr_data_changed TYPE REF TO&lt;/P&gt;&lt;P&gt;                                         cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_mod_cells TYPE lvc_s_modi.&lt;/P&gt;&lt;P&gt;  DATA: ls_cells TYPE lvc_s_modi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN  'Input field name'.&lt;/P&gt;&lt;P&gt;        CALL METHOD rr_data_changed-&amp;gt;get_cell_value&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_row_id    = ls_mod_cells-row_id&lt;/P&gt;&lt;P&gt;            i_fieldname = ls_mod_cells-fieldname&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            e_value     = lv_variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, &lt;STRONG&gt;lv_variable&lt;/STRONG&gt; of type input field is a local variable to store the data enterd in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pooja Bajaj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858508#M927430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858509#M927431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think ,the method given above will help. it will work wenever any key is pressed and not just on the press of Enter.&lt;/P&gt;&lt;P&gt;I would suggest you to open ur program in se80, there, u will get an option to set the aplication toolbar. in that u can define the functionality on the press of enter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do reward if helpful or get back with further query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3858509#M927431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T10:48:37Z</dc:date>
    </item>
  </channel>
</rss>

