<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805297#M345700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See transaction DWDM too, there is several examples.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 17:06:47 GMT</pubDate>
    <dc:creator>LucianoBentiveg</dc:creator>
    <dc:date>2006-12-11T17:06:47Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805294#M345697</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 any one help me to understand with a sample code of ALV grid in ABAP OBJECTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i  would appreciate all ur answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 17:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805294#M345697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805295#M345698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to transacion ABAPDOCU.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 17:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805295#M345698</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-12-11T17:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805296#M345699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHeck any program that starts with BCALV*&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>Mon, 11 Dec 2006 17:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805296#M345699</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-11T17:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805297#M345700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See transaction DWDM too, there is several examples.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 17:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805297#M345700</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-12-11T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805298#M345701</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 the program BCALV_GRID_EDIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 17:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805298#M345701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805299#M345702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The general procedure is as explained below...&lt;/P&gt;&lt;P&gt;SAP has provided different controls catering needs of various applications. One such control is ALV Grid Control. &lt;/P&gt;&lt;P&gt;A control as such cannot be called directly for output display. A control should be attached to a Container. SAP provided different types of containers namely CUstom Container, Split Container, Dialog COntainer etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attributes of the container can be accessed by instantiating the Container class. For our purpose consider the CUSTOM CONTAINER. The custom container class is CL_GUI_CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attributes and methods of ALV Grid can be accessed by instantiating the Grid Class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After assigning the grid to the container, Field catalog for the output is prepared. Display method of Gird Control is called to display the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code... This is SAP standard program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;start-of-selection.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  select * from sflight into table gt_sflight up to g_max rows.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;end-of-selection.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  g_repid = sy-repid.&lt;/P&gt;&lt;P&gt;  call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MODULE PBO OUTPUT                                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module pbo output.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Set the PF Status&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  set pf-status 'MAIN100'.&lt;/P&gt;&lt;P&gt;  set titlebar 'MAIN100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Create a Custom Area in SAP Screen.  If the Custom container is initial then instantiate the Container class&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if custom_container is initial.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* create a custom container control for our ALV Control&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    create object custom_container&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;            container_name = mycontainer&lt;/P&gt;&lt;P&gt;        exceptions&lt;/P&gt;&lt;P&gt;            cntl_error = 1&lt;/P&gt;&lt;P&gt;            cntl_system_error = 2&lt;/P&gt;&lt;P&gt;            create_error = 3&lt;/P&gt;&lt;P&gt;            lifetime_error = 4&lt;/P&gt;&lt;P&gt;            lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* add your handling, for example&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      call function 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;                titel = g_repid&lt;/P&gt;&lt;P&gt;                txt2  = sy-subrc&lt;/P&gt;&lt;P&gt;                txt1  = 'The control could not be created'(010).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Instantiate the GRid Class. create an instance of alv control&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    create object grid1&lt;/P&gt;&lt;P&gt;          exporting i_parent = custom_container.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set a titlebar for the grid control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    gs_layout-grid_title = 'Flights'(100).&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Build the field catalog for output display&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;         exporting i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;                            changing IT_FIELDCATALOG = gt_fldcat &lt;/P&gt;&lt;P&gt;                                          it_outtab        = gt_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* Controls are not integrated into the TAB-Order&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call "set_focus" if you want to make sure that 'the cursor'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is active in your control.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_gui_control=&amp;gt;set_focus exporting control = grid1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Control Framework flushes at the end of PBO automatically!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MODULE PAI INPUT                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module pai input.&lt;/P&gt;&lt;P&gt;  case ok_code.&lt;/P&gt;&lt;P&gt;    when 'EXIT'.&lt;/P&gt;&lt;P&gt;      perform exit_program.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;  clear ok_code.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM EXIT_PROGRAM                                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form exit_program.&lt;/P&gt;&lt;P&gt;  call method custom_container-&amp;gt;free.&lt;/P&gt;&lt;P&gt;  call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add your handling, for example&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              titel = g_repid&lt;/P&gt;&lt;P&gt;              txt2  = sy-subrc&lt;/P&gt;&lt;P&gt;              txt1  = 'Error in Flush'(009).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  leave program.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For other examples,&lt;/P&gt;&lt;P&gt; check these programs&lt;/P&gt;&lt;P&gt;BCALV_GRID_01   &lt;/P&gt;&lt;P&gt;BCALV_GRID_02   &lt;/P&gt;&lt;P&gt;BCALV_GRID_03   &lt;/P&gt;&lt;P&gt;BCALV_GRID_04   &lt;/P&gt;&lt;P&gt;BCALV_GRID_05   &lt;/P&gt;&lt;P&gt;BCALV_GRID_06   &lt;/P&gt;&lt;P&gt;BCALV_GRID_07   &lt;/P&gt;&lt;P&gt;BCALV_GRID_08   &lt;/P&gt;&lt;P&gt;BCALV_GRID_09   &lt;/P&gt;&lt;P&gt;BCALV_GRID_10   &lt;/P&gt;&lt;P&gt;BCALV_GRID_11   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 19:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805299#M345702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T19:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805300#M345703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are on at least WAS 640 you can use class CL_SALV_TABLE.&lt;/P&gt;&lt;P&gt;It is very very simple.&lt;/P&gt;&lt;P&gt;For example, this few lines creates an ALV output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_outtab type table of SFLIGHT.&lt;/P&gt;&lt;P&gt;data: gr_table  type ref to cl_salv_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Select data&lt;/P&gt;&lt;P&gt;  select * from SFLIGHT into corresponding fields of table gt_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Create Instance&lt;/P&gt;&lt;P&gt;  call method cl_salv_table=&amp;gt;factory&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      R_SALV_TABLE = gr_table&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      t_table      = gt_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... Display table&lt;/P&gt;&lt;P&gt;  gr_table-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, check programs that starts with SALV_*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Roby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 09:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1805300#M345703</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2006-12-12T09:56:19Z</dc:date>
    </item>
  </channel>
</rss>

