<?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 ALV grid output using classes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273573#M150920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;I&amp;#146;m writing a report in hr and I have been asked to display the employee # their positions and their basic pay. &lt;/P&gt;&lt;P&gt;Well I can handle this part.. by reading PA0001 and  PA0008 .I have to write out put as ALV grid display . Using classes how can I write out put in ALV grid . &lt;/P&gt;&lt;P&gt;Waiting for your answers&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Usman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2006 21:47:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-07T21:47:30Z</dc:date>
    <item>
      <title>ALV grid output using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273573#M150920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;I&amp;#146;m writing a report in hr and I have been asked to display the employee # their positions and their basic pay. &lt;/P&gt;&lt;P&gt;Well I can handle this part.. by reading PA0001 and  PA0008 .I have to write out put as ALV grid display . Using classes how can I write out put in ALV grid . &lt;/P&gt;&lt;P&gt;Waiting for your answers&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Usman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 21:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273573#M150920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid output using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273574#M150921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checkout post &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="132073"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`ll suggest you .pl ..also sreach here before posting a question .. In this way you dont have to ask same question again and again .. but we `ll always love to answer WHY  ..points man &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 21:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273574#M150921</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-04-07T21:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid output using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273575#M150922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="130922"&gt;&lt;/A&gt; where Rich has a good example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Saquib that you should first try searching this forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 21:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273575#M150922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T21:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid output using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273576#M150923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; check the following links.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_webas630/helpdata/en/99/49b844d61911d2b469006094192fe3/frameset.htm"&amp;gt;ALV Grid Control&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;Also check this &amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/library/abap/an&lt;EM&gt;Easy&lt;/EM&gt;Reference&lt;EM&gt;for&lt;/EM&gt;ALV&lt;EM&gt;Grid&lt;/EM&gt;Control.pdf"&amp;gt;Easy reference to ALV grid&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : g_alv   type ref to cl_gui_alv_grid,
       gref_docking_container TYPE REF TO cl_gui_custom_container, 
      gs_layout TYPE lvc_s_layo,
      gt_fieldcat type lvc_t_fcat,  
      gs_fieldcat type lvc_s_fcat.
DATA : gt_outtab type table of &amp;lt;table&amp;gt;.
data : gs_outtab like line of gt_outtab.

call screen 100.

MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'STAT'.
*  SET TITLEBAR 'xxx'.
  create object gref_docking_container 
      exporting
         container_name = 'CCAREA_ALV'.
  create object g_alv
     exporting i_parent = GREF_DOCKING_CONTAINER.

  select * from &amp;lt;table&amp;gt; into table GT_OUTTAB.              
  gs_fieldcat-fieldname = 'F1'.
  gs_fieldcat-ref_table = 'table'.
  gs_fieldcat-edit       = 'X'.
  gs_fieldcat-key = 'X'.
  append gs_fieldcat to gt_fieldcat.

... and other fields.

    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver-&amp;gt;handle_user_command FOR g_alv.
   
CALL METHOD g_alv-&amp;gt;set_toolbar_interactive.
ENDMODULE.                 " STATUS_0100  OUTPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you find this useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kinshuk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS reward points if you find the post helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2006 16:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-output-using-classes/m-p/1273576#M150923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-08T16:27:17Z</dc:date>
    </item>
  </channel>
</rss>

