<?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: Program Title Change Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567602#M585926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, you should need to do this, but try setting the sy-title directly after coming back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sy-title =  text-100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 00:03:52 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-07-25T00:03:52Z</dc:date>
    <item>
      <title>Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567594#M585918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ALV grid using classes and also included a functionality when double clicked on an line item it would take to the corresponding standard CRM transaction with the number in the line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is after working on the standard CRM transaction when i press the back button to come back to the grid display, the program title  does not change back to the grids program title instead the standard CRM transaction title remains. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried setting the program title when the control comes back from standard CRM transaction, but did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody suggest me a solution immediatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 22:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567594#M585918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T22:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567595#M585919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with adding the NO STANDARD PAGE HEADING to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 22:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567595#M585919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T22:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567596#M585920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that too Atish did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 23:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567596#M585920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T23:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567597#M585921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you are setting the title in the PBO of the screen in which the ALV grid is implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 23:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567597#M585921</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-24T23:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567598#M585922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes iam doing that Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 23:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567598#M585922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T23:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567599#M585923</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;Can you paste your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 23:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567599#M585923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T23:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567600#M585924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that I'm thinking about it, this is really weird, the fact that you are calling another transaction should have no effect on the calling program whatsoever. Your title should stay intacted.  Can you post your code, in the PBO screen flow, as well as any modules therein, and also the event handler for your double click in the ALV.  I can think of a work around, but you should have to do that.  I've developed many programs just like this and have never had this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 23:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567600#M585924</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-24T23:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567601#M585925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;METHOD handle_double_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA : l_process_mode TYPE crmt_mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read selected row from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE it_alv INDEX e_row-index INTO l_alv.&lt;/P&gt;&lt;P&gt;      l_process_mode = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  MAKE SURE THE HTML GUI FLAG IS SET SO BUTTONS WILL DISPLAY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL METHOD cl_crm_1o_manag=&amp;gt;is_htmlgui_active.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CRM_1O_CALL_FOREIGN'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          iv_ui_method                      = 'LEAD'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IV_PROCESS_TYPE                   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          iv_process_mode                   = l_process_mode&lt;/P&gt;&lt;P&gt;          iv_header_guid                    = l_alv-guid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IV_FULL_ORDER_FUNCTIONALITY       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          error_occurred                    = 1&lt;/P&gt;&lt;P&gt;          read_order_failed                 = 2&lt;/P&gt;&lt;P&gt;          create_order_failed               = 3&lt;/P&gt;&lt;P&gt;          OTHERS                            = 4 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SET TITLEBAR text-100&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDMETHOD.                    "handle_double_click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Module in the method takes us to the standard CRM activity transaction for the selected line item. i tried to set the title bar when it comes back from the FM but did not worl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 23:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567601#M585925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T23:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567602#M585926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, you should need to do this, but try setting the sy-title directly after coming back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sy-title =  text-100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 00:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567602#M585926</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-25T00:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567603#M585927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;))   tried even that did not work. i tried all possibilities. i feel there is something goto do with the FM im using to call the transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 00:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567603#M585927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T00:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567604#M585928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its got to be that, not sure what is happening, but it appears that you are going to need to fire a round trip in your event handler.  So try putting this coding after your function call in your event handler method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* cause PAI
    call method cl_gui_cfw=&amp;gt;set_new_ok_code
          exporting
                 new_code = 'XREFRESH'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this should do is cause a PAI, (which there should be no funciton code in your PAI for XREFRESH), and of course will come around to the PBO, where you should be setting your titlebar as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 00:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567604#M585928</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-25T00:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Program Title Change Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567605#M585929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh dear --why do people make this stuff so complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an easy way without having to do any  extra PBO's, or refreshing the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;This changes both the GRID and the PROGRAM titles.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Top of the screen you need to set the GUI titlebar before you get another display &amp;lt;b&amp;gt;either via the grid&amp;lt;/b&amp;gt; or a programmed PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a typical grid application you don't get another PBO event after your initial call to the GRID unless you implement it in an event handler routine (and it's not normally necessary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;What you need to do after an event such as double click or whatever IS THEN set the new (or previous) title.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the conclusion of your routine unless you code EXIT  / LEAVE program the GRID will re-display. &amp;lt;b&amp;gt;Before this display is where you need to set the title bar.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In my Double click routine method I've set the Program title to a different value and as soon as the GRID displays again the title is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GRID title has also changed -- I've shown here how to change BOTH objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your main program  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  i_gridtitle        TYPE lvc_title.&lt;/P&gt;&lt;P&gt;Now in the routine where you want to change the title we simply set a new title.&lt;/P&gt;&lt;P&gt;I also change the GRID title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to do it in my Double click routine&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in your SE41 for the program have different titles&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;defined  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I've got 2 000 and 001.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form dubbleklik using&lt;/P&gt;&lt;P&gt;        e_row   type LVC_S_ROW&lt;/P&gt;&lt;P&gt;        e_column type LVC_S_col&lt;/P&gt;&lt;P&gt;        es_row_no type lvc_s_roid.&lt;/P&gt;&lt;P&gt;       SET TITLEBAR '001'. "=========&amp;gt;PGM title bar&lt;/P&gt;&lt;P&gt;        i_gridtitle = 'Grid Title Changed'.&lt;/P&gt;&lt;P&gt;        CALL METHOD  z_object-&amp;gt;change_title&lt;/P&gt;&lt;P&gt;          EXPORTING i_gridtitle = i_gridtitle.&lt;/P&gt;&lt;P&gt; ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my class definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the definition section  public methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; change_title&lt;/P&gt;&lt;P&gt;      IMPORTING       i_gridtitle  type lvc_title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the implementation section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD change_title.&lt;/P&gt;&lt;P&gt;  CALL METHOD grid1-&amp;gt;set_gridtitle&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;   i_gridtitle =  i_gridtitle.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the event handler etc I've posted my class definition &lt;/P&gt;&lt;P&gt;several times but here is the complete class for people who want to try all the functionality out.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CLASS zcl_dog DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;  constructor&lt;/P&gt;&lt;P&gt;    IMPORTING       z_object type ref to zcl_dog,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   display_grid&lt;/P&gt;&lt;P&gt;    CHANGING        it_fldcat type lvc_t_fcat,&lt;/P&gt;&lt;P&gt;       build_dynamic_structures&lt;/P&gt;&lt;P&gt;     CHANGING        it_fldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;    change_title&lt;/P&gt;&lt;P&gt;      IMPORTING       i_gridtitle  type lvc_title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   METHODS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    on_user_command FOR EVENT before_user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING       e_ucomm&lt;/P&gt;&lt;P&gt;                      sender,&lt;/P&gt;&lt;P&gt;    on_toolbar FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING      e_object&lt;/P&gt;&lt;P&gt;                     e_interactive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     on_dubbelklik FOR EVENT double_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;      IMPORTING e_row&lt;/P&gt;&lt;P&gt;                e_column&lt;/P&gt;&lt;P&gt;                es_row_no,&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;    handle_data_changed_finished&lt;/P&gt;&lt;P&gt;             FOR EVENT data_changed_finished OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;             IMPORTING e_modified&lt;/P&gt;&lt;P&gt;                       et_good_cells,&lt;/P&gt;&lt;P&gt;    verwerk&lt;/P&gt;&lt;P&gt;            IMPORTING program TYPE sy-repid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    download_to_excel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    dubbleklik&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;                 e_row  type  LVC_S_ROW&lt;/P&gt;&lt;P&gt;                 e_column   TYPE LVC_S_COL&lt;/P&gt;&lt;P&gt;                 es_row_no  type lvc_s_ROID&lt;/P&gt;&lt;P&gt;                 program type sy-repid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     return_structure,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     create_dynamic_fcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      EXPORTING       it_fldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      create_dynamic_table&lt;/P&gt;&lt;P&gt;      IMPORTING       it_fldcat TYPE lvc_t_fcat&lt;/P&gt;&lt;P&gt;      EXPORTING       dy_table  TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    lr_rtti_struc    TYPE REF TO cl_abap_structdescr,        "RTTI&lt;/P&gt;&lt;P&gt;    zog              LIKE LINE OF lr_rtti_struc-&amp;gt;components, "RTTI&lt;/P&gt;&lt;P&gt;    wa_it_fldcat     TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt;    it_fldcat        TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;    dy_table         TYPE REF TO data,&lt;/P&gt;&lt;P&gt;    dy_line          TYPE REF TO data,&lt;/P&gt;&lt;P&gt;    struct_grid_lset TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;    e_row            TYPE LVC_S_ROW,&lt;/P&gt;&lt;P&gt;    e_column         TYPE lvc_s_col,&lt;/P&gt;&lt;P&gt;    es_rowid         TYPE lvc_s_roid,&lt;/P&gt;&lt;P&gt;    grid_container1  TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;    grid1            TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;    ls_layout        TYPE kkblo_layout,&lt;/P&gt;&lt;P&gt;    lt_fieldcat_wa   TYPE kkblo_fieldcat,&lt;/P&gt;&lt;P&gt;    l_mode           TYPE raw4,&lt;/P&gt;&lt;P&gt;    celltab          TYPE LVC_T_STYL,&lt;/P&gt;&lt;P&gt;    wa_celltab       TYPE lvc_s_styl,&lt;/P&gt;&lt;P&gt;    lt_fieldcat      TYPE kkblo_t_fieldcat,&lt;/P&gt;&lt;P&gt;   l_tabname         TYPE slis_tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;   struc            LIKE  zog.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    zogt           TYPE TABLE OF struc.&lt;/P&gt;&lt;P&gt;   ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS zcl_dog IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD constructor.&lt;/P&gt;&lt;P&gt;   CREATE OBJECT grid_container1&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;               container_name = 'CCONTAINER1'.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT  grid1&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;              i_parent = grid_container1.&lt;/P&gt;&lt;P&gt;    SET HANDLER z_object-&amp;gt;on_user_command for grid1.&lt;/P&gt;&lt;P&gt;    SET HANDLER z_object-&amp;gt;on_toolbar for grid1.&lt;/P&gt;&lt;P&gt;    SET HANDLER Z_OBJECT-&amp;gt;handle_data_changed_finished FOR grid1.&lt;/P&gt;&lt;P&gt;    SET HANDLER Z_OBJECT-&amp;gt;on_dubbelklik FOR grid1.&lt;/P&gt;&lt;P&gt;    CALL METHOD grid1-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;                i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD on_dubbelklik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD me-&amp;gt;dubbleklik&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;                 e_row  = e_row&lt;/P&gt;&lt;P&gt;                 e_column =  e_column&lt;/P&gt;&lt;P&gt;                 es_row_no = es_row_no&lt;/P&gt;&lt;P&gt;                 program  = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break-point 1.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD  handle_data_changed.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert user code here if required&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this method is entered if user ENTERS DATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD handle_data_changed_finished.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert user code here if required&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Method entered here after data entry has finished.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;METHOD return_structure.&lt;/P&gt;&lt;P&gt;  lr_rtti_struc ?= cl_abap_structdescr=&amp;gt;DESCRIBE_BY_DATA( &amp;lt;fs1&amp;gt; ).&lt;/P&gt;&lt;P&gt;  zogt[]  = lr_rtti_struc-&amp;gt;components.&lt;/P&gt;&lt;P&gt;  ASSIGN zogt[] TO &amp;lt;fs2&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD create_dynamic_fcat.&lt;/P&gt;&lt;P&gt;    LOOP AT &amp;lt;fs2&amp;gt;  INTO zog.&lt;/P&gt;&lt;P&gt;      CLEAR wa_it_fldcat.&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-fieldname = zog-name .&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-datatype = zog-type_kind.&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-inttype = zog-type_kind.&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-intlen = zog-length.&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-decimals = zog-decimals.&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-coltext = zog-name.&lt;/P&gt;&lt;P&gt;      wa_it_fldcat-lowercase = 'X'.&lt;/P&gt;&lt;P&gt;      APPEND wa_it_fldcat TO it_fldcat .&lt;/P&gt;&lt;P&gt;      ASSIGN it_fldcat[] TO &amp;lt;field_catalog&amp;gt;.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;       ASSIGN  it_fldcat[] TO &amp;lt;field_catalog&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; METHOD  download_to_excel.&lt;/P&gt;&lt;P&gt; break-point 5.&lt;/P&gt;&lt;P&gt; CALL FUNCTION  'LVC_TRANSFER_TO_KKBLO'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcat_lvc   = &amp;lt;field_catalog&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     is_layout_lvc     = m_cl_variant-&amp;gt;ms_layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       is_tech_complete  = ' '&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      es_layout_kkblo   = ls_layout&lt;/P&gt;&lt;P&gt;      et_fieldcat_kkblo = lt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT lt_fieldcat INTO lt_fieldcat_wa.&lt;/P&gt;&lt;P&gt;   CLEAR lt_fieldcat_wa-tech_complete.&lt;/P&gt;&lt;P&gt;    IF lt_fieldcat_wa-tabname IS initial.&lt;/P&gt;&lt;P&gt;       lt_fieldcat_wa-tabname = '1'.&lt;/P&gt;&lt;P&gt;       MODIFY lt_fieldcat FROM lt_fieldcat_wa.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    l_tabname = lt_fieldcat_wa-tabname.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALV_XXL_CALL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_tabname           = l_tabname&lt;/P&gt;&lt;P&gt;      is_layout           = ls_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat         = lt_fieldcat&lt;/P&gt;&lt;P&gt;      i_title             = sy-title&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      it_outtab           = &amp;lt;dyn_table&amp;gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      fatal_error         = 1&lt;/P&gt;&lt;P&gt;      no_display_possible = 2&lt;/P&gt;&lt;P&gt;      others              = 3.&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 'S' 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; ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; METHOD create_dynamic_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;         it_fieldcatalog = it_fldcat&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;         ep_table = dy_table.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD build_dynamic_structures.&lt;/P&gt;&lt;P&gt;CALL METHOD me-&amp;gt;return_structure.&lt;/P&gt;&lt;P&gt;CALL METHOD me-&amp;gt;create_dynamic_fcat&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     it_fldcat = it_fldcat.&lt;/P&gt;&lt;P&gt; CALL METHOD me-&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fldcat = it_fldcat&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      dy_table        = dy_table.&lt;/P&gt;&lt;P&gt;     ASSIGN dy_table-&amp;gt;* TO &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt; CREATE DATA dy_line LIKE LINE OF &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt; ASSIGN dy_line-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD display_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  struct_grid_lset-edit = 'X'. "To enable editing in ALV&lt;/P&gt;&lt;P&gt;  struct_grid_lset-grid_title = 'Bulkwijzigingen inkoopprijzen'.&lt;/P&gt;&lt;P&gt;  struct_grid_lset-ctab_fname = 'T_CELLCOLORS'.&lt;/P&gt;&lt;P&gt;  struct_grid_lset-stylefname = 'CELLTAB'.&lt;/P&gt;&lt;P&gt;  CALL METHOD grid1-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;           i_ready_for_input = '1'.&lt;/P&gt;&lt;P&gt;  CALL METHOD grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;           is_layout       = struct_grid_lset&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;           it_outtab       = &amp;lt;dyn_table&amp;gt;&lt;/P&gt;&lt;P&gt;           it_fieldcatalog = it_fldcat.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD change_title.&lt;/P&gt;&lt;P&gt;  CALL METHOD grid1-&amp;gt;set_gridtitle&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;   i_gridtitle =  i_gridtitle.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD on_user_command.&lt;/P&gt;&lt;P&gt;  CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;        LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;     WHEN 'EXCEL'.&lt;/P&gt;&lt;P&gt;     CALL METHOD me-&amp;gt;download_to_excel.&lt;/P&gt;&lt;P&gt;      WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      WHEN 'VERW'.&lt;/P&gt;&lt;P&gt;      CALL METHOD me-&amp;gt;verwerk&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;              PROGRAM = SY-REPID.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt; ENDMETHOD.                    "on_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; METHOD on_toolbar.&lt;/P&gt;&lt;P&gt; DATA: ls_toolbar TYPE stb_button.&lt;/P&gt;&lt;P&gt;     CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;     MOVE 0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;     MOVE 'EXIT' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;     MOVE SPACE TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;     MOVE icon_system_end TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;     MOVE 'Click2Exit' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;     APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;     CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;     MOVE  0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;     MOVE 'SAVE' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;     MOVE SPACE TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;     MOVE  icon_system_save TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;     MOVE 'Save data' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;     APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;     CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;     MOVE  0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;     MOVE 'EDIT' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;     MOVE  SPACE TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;     MOVE  icon_toggle_display_change TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;     MOVE 'Edit data' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;     MOVE  'EDIT' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;     APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;     CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;     MOVE  0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;     MOVE 'VERW' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;     MOVE  SPACE TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;     MOVE   icon_businav_process to ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;     MOVE 'Verw.' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;     MOVE  'VERW' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;     APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;      CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;     MOVE  0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;     MOVE 'EXCEL' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;     MOVE  SPACE TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;     MOVE  icon_xxl TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;     MOVE 'Excel' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;     MOVE  'EXCEL' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;     APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   METHOD verwerk.&lt;/P&gt;&lt;P&gt;      PERFORM verwerk IN PROGRAM (program).&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD dubbleklik.&lt;/P&gt;&lt;P&gt;  PERFORM dubbleklik IN PROGRAM (program)&lt;/P&gt;&lt;P&gt;    USING&lt;/P&gt;&lt;P&gt;        e_row&lt;/P&gt;&lt;P&gt;        e_column&lt;/P&gt;&lt;P&gt;        es_row_no.&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;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 09:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-title-change-issue/m-p/2567605#M585929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T09:11:21Z</dc:date>
    </item>
  </channel>
</rss>

