<?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: Call user command / PAI from ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327796#M1227759</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 trigger PAI the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_cfw=&amp;gt;set_new_ok_code( EXPORTING new_code = 'YOUR_OK_CODE_HERE'  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This triggers PAI. You must not set the i_appl_events option for the Grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Nov 2010 09:32:27 GMT</pubDate>
    <dc:creator>former_member234515</dc:creator>
    <dc:date>2010-11-12T09:32:27Z</dc:date>
    <item>
      <title>Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327783#M1227746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a possibility to call a user command from within an ALV method? I want the PAI module of the ALV's screen to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 16:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327783#M1227746</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2009-03-05T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327784#M1227747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be more specific, its not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 16:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327784#M1227747</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-05T16:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327785#M1227748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ALV that lies on a screen. This screen has a PBO and a PAI module (that are called before and after the user can do stuff).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to the ALV to be able to call the PAI module (as if the user would click a button or select a menu item or hits return).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 16:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327785#M1227748</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2009-03-05T16:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327786#M1227749</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;If you have created the Push button on the application toolbar then PAI module is called.&lt;/P&gt;&lt;P&gt;If you have created the Push button on the ALV toolbar than the Perform you specify in the AT_USER_COMMAND parameter is called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 16:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327786#M1227749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T16:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327787#M1227750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never said I have a push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call PAI from the data_changed_finished event handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 16:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327787#M1227750</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2009-03-05T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327788#M1227751</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;I don't think, that you can do something in your ALV coding to call the screen  PAI. What you can do is Call the screen in your code. That will first trigger you PBO of that screen then PAI, if that screen doesn't have any selction screen, then directly you can have the PAI of that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 17:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327788#M1227751</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-05T17:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327789#M1227752</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;when you call set_table_for_first_display method then &lt;/P&gt;&lt;P&gt;use this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET HANDLER lcl_event_handler=&amp;gt;data_changed FOR t_grid.

"define and implement a class method in the public section.
    CLASS-METHODS data_changed_method FOR EVENT data_changed
                                       OF cl_gui_alv_grid
                                        IMPORTING es_row_no.

" Dont forget to implement this class method....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 17:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327789#M1227752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T17:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327790#M1227753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kuntal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried that. It's not possible to do a call screen from the event handler method. I thought about calling a function module and do the call screen there, but I can't try until next week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siddarth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not what I asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 07:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327790#M1227753</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2009-03-06T07:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327791#M1227754</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;Yes you can make an ALV interactive which will execute is PAI (USER COMMAND) when user performs any action.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_program                = sy_repid       " report id
     i_callback_pf_status_set          = 'PF'           " for PF-STATUS
     i_callback_user_command           = 'COMMAND'      " for User-Command
     is_layout                         = wa_layout      " for layout
     it_fieldcat                       = it_field       " field catalog
   TABLES
     t_outtab                          = it_final      " internal table
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double-click on any cell of alv grid, use this code to fetch the data of the line that you currently clicked, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double click on the ALV grid line, you will have sy-ucomm = &lt;STRONG&gt;'&amp;amp;IC1'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you define a &lt;STRONG&gt;i_callback_user_command&lt;/STRONG&gt; for the &lt;STRONG&gt;FM reuse_alv_grid_display&lt;/STRONG&gt;, and create it as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
  DATA : ok_code TYPE sy-ucomm.
  ok_code = ucomm.
  CASE ok_code.
    WHEN '&amp;amp;IC1'. "for double click on alv grid line
      " your code
  ENDCASE.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have used &lt;STRONG&gt;selfield TYPE slis_selfield&lt;/STRONG&gt;, the field &lt;STRONG&gt;selfield&lt;/STRONG&gt; will hold all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know on which row you have clicked and to retain that line, use code:-&lt;/P&gt;&lt;P&gt;Suppose you are currently displaying data from internal table &lt;STRONG&gt;itab&lt;/STRONG&gt; and corresponding to it you have work area &lt;STRONG&gt;wa&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table itab into wa index selfield-tabindex. "index value of line you clicked
" now you have the contents of line that you double clicked currently
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now to know the field name that you clicked, use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selfield-fieldname " will fetch you the name of field that you clicked
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can refer this wiki by me on:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALV Grid Display with checkbox to process selected records at runtime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have checkbox with each record in alv and display on those records on next display which were selected by the user on initial grid.&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;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tarun Gambhir on Mar 6, 2009 2:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327791#M1227754</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-06T09:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327792#M1227755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Yes you can make an ALV interactive which will execute is PAI (USER&lt;/P&gt;&lt;P&gt;&amp;gt; COMMAND) when user performs any action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds interesting. Do you happen to know how this is done when I'm NOT using the REUSE function modules, but OO programming?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327792#M1227755</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2009-03-06T09:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327793#M1227756</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 refer:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interactive Editable OO ALV grid with dynamic itab,FCAT and ENTER key event trigger&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/interactive%252beditable%252boo%252balv%252bgrid%252bwith%252bdynamic%252bitab%252cfcat%252band%252benter%252bkey%252bevent%252btrigger" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/interactive%252beditable%252boo%252balv%252bgrid%252bwith%252bdynamic%252bitab%252cfcat%252band%252benter%252bkey%252bevent%252btrigger&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object oriented Programming in ALV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/object%252boriented%252bprogramming%252bin%252balv" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/object%252boriented%252bprogramming%252bin%252balv&lt;/A&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327793#M1227756</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-06T09:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327794#M1227757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can create user command for your alv,first create the pf-status for your alv like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM pf_status USING rt_extab TYPE slis_t_extab.

  SET PF-STATUS 'FIRST'.

ENDFORM.                    "PF_STATUS

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then pass subroutine to function module Reuse..parameter:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      i_callback_pf_status_set          = 'PF_STATUS'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then for the user command can be created like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.

  DATA: okcode TYPE sy-ucomm.

  okcode = ucomm.
  CASE okcode.

    WHEN 'REF'.
    CALL FUNCTION 'POPUP_TO_INFORM'
      EXPORTING
        titel         = 'MANSI'
        txt1          = 'CREATED BY'
        txt2          = SY-UNAME
*       TXT3          = ' '
*       TXT4          = ' '

              .
endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And pass this subroutine in the parameter:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i_callback_user_command           = 'COMM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327794#M1227757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T09:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327795#M1227758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found the solution myself. I have to pass the parameter I_APPL_EVENTS (Register Events as Application Events) to the constructor of the ALV. This should cause the ALV events to trigger PAI too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't try this today, but I assume it'll work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327795#M1227758</guid>
      <dc:creator>roland_spindler</dc:creator>
      <dc:date>2009-03-06T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327796#M1227759</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 trigger PAI the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_cfw=&amp;gt;set_new_ok_code( EXPORTING new_code = 'YOUR_OK_CODE_HERE'  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This triggers PAI. You must not set the i_appl_events option for the Grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 09:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327796#M1227759</guid>
      <dc:creator>former_member234515</dc:creator>
      <dc:date>2010-11-12T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327797#M1227760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works for me, thanks Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 07:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327797#M1227760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-26T07:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call user command / PAI from ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327798#M1227761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 12:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-user-command-pai-from-alv/m-p/5327798#M1227761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T12:56:14Z</dc:date>
    </item>
  </channel>
</rss>

