<?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 Adding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204623#M471411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to add our own fuctions to ALV application tool bar ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 06:09:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T06:09:18Z</dc:date>
    <item>
      <title>Adding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204623#M471411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to add our own fuctions to ALV application tool bar ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204623#M471411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204624#M471412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Just copy and paste this and analyse the code after looking at the output.....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_carrid TYPE s_carr_id,&lt;/P&gt;&lt;P&gt;            p_cityfr TYPE s_from_cit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: FUNCTION KEY 1,&lt;/P&gt;&lt;P&gt;                  FUNCTION KEY 2,&lt;/P&gt;&lt;P&gt;                  FUNCTION KEY 3,&lt;/P&gt;&lt;P&gt;                  FUNCTION KEY 4,&lt;/P&gt;&lt;P&gt;                  FUNCTION KEY 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_01 = 'LH'.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_02 = 'UA'.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_03 = ' V.Raghavender '.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_04 = 'KK'.&lt;/P&gt;&lt;P&gt;  sscrfields-functxt_05 = 'ww'.&lt;/P&gt;&lt;P&gt;  sscrfields-search_btn = 'EXTRA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  CASE sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;      WHEN'FC01'.&lt;/P&gt;&lt;P&gt;      p_carrid = 'LH'.&lt;/P&gt;&lt;P&gt;      p_cityfr = 'Frankfurt'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC02'.&lt;/P&gt;&lt;P&gt;      p_carrid = 'UA'.&lt;/P&gt;&lt;P&gt;      p_cityfr = 'Chicago'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC03'.&lt;/P&gt;&lt;P&gt;      p_carrid = 'SB'.&lt;/P&gt;&lt;P&gt;      p_cityfr = 'Hyderabad'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  WRITE / 'START-OF-SELECTION'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Reward all helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V.Raghavender.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204624#M471412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204625#M471413</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 set your own pf-status for adding functions to the tool bar.Copy the standard gui status and add your own functions and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; New PF-STATUS is required , say 'ABCD'.&lt;/P&gt;&lt;P&gt;b) Handle user_commmand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. First of all, from Function group SALV,&lt;/P&gt;&lt;P&gt;copy the STANDARD gui status to your program,&lt;/P&gt;&lt;P&gt;from SE80, by right clicking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. come to your program.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ABCD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Double click ABCD and activate the gui status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In gui status,&lt;/P&gt;&lt;P&gt;add/change your own buttons&lt;/P&gt;&lt;P&gt;Save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; you should be passing the name of the pf-status in the alv grid fm..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = SAT_REPID&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = 'ZSTANDARD' --&amp;gt; yours would be ABCD&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;IS_LAYOUT = SAT_LAYOUT&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = SAT_FIELDCATALOG[]&lt;/P&gt;&lt;P&gt;IT_EVENTS = SAT_EVENTS[]&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = ITAB_FINAL&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure there is a form ABCD in your program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ZSTANDARD USING P_EXTAB TYPE SLIS_T_EXTAB.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSTANDARD1' EXCLUDING P_EXTAB.&lt;/P&gt;&lt;P&gt;ENDFORM. "ZSTANDARD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204625#M471413</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-05-08T06:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204626#M471414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define the below perform in ur code. create a PF-STATUS for ur program and ur own function codes. This perform will be called internally at the time of initialization of the alv. No nedd to call the perform explicitly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_set_status USING rt_extab TYPE slis_t_extab.         "#EC *&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATLALV' .&lt;/P&gt;&lt;P&gt;  CLEAR rt_extab.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "f_set_status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while calling the ALV set the parameter  i_callback_pf_status_set with the peform name ( must be is caps)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program       = sy-cprog&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'F_SET_STATUS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the type pool &lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204626#M471414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204627#M471415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this weblog,i hope this ll help you solve your problem&lt;/P&gt;&lt;P&gt;/people/ravishankar.rajan/blog/2007/03/09/using-the-alv-extension-class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding/m-p/2204627#M471415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:55:40Z</dc:date>
    </item>
  </channel>
</rss>

