<?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: Regarding ABAP Through OOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014912#M1346775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create structure using SFLIGHT table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way I am not able to understand What you mean by you don't have strucuter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have structure right? SFLIGHT is the structure you are using to pass data either you can use that way or you can pass fieldcatalog table with the fields that you want to show in alv grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the link provided in previous post and try building fieldcatalog with different methods like manually, automatic and semi-automatic fieldcatalog generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
I_STRUCTURE_NAME = 'SFLIGHT'
CHANGING
IT_OUTTAB = GT_SFLIGHT[].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GT_SFLIGHT is internal table only and you must have defined that at the start of report. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally steps in AVL report are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare object and table variables&lt;/P&gt;&lt;P&gt;2. Prepare field catalog and layout tables&lt;/P&gt;&lt;P&gt;3. Register events&lt;/P&gt;&lt;P&gt;4. select data into internal table from required table&lt;/P&gt;&lt;P&gt;5. Create instance of alv class and call method to display data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Augustarian on Aug 25, 2009 1:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2009 07:39:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-25T07:39:18Z</dc:date>
    <item>
      <title>Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014906#M1346769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have learnt how to create containers by watching different threads, But i am not getting how to display data in that containers from an internal table ,  any one please help !&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 &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2009 09:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014906#M1346769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-23T09:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014907#M1346770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look through the sample reports in package &lt;STRONG&gt;SLIS&lt;/STRONG&gt; and check transaction &lt;STRONG&gt;SE83&lt;/STRONG&gt; (Reuse Library).&lt;/P&gt;&lt;P&gt;The reports are not well structured but quite reasonably documented (in the header section).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2009 17:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014907#M1346770</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-23T17:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014908#M1346771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot directly put data in container. for that you need to use some custom control like avl grid, tree view etc.&lt;/P&gt;&lt;P&gt;After loading custom control in container you and fill data in custom control and display the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to start with the custom control, You can try loading ALV grid in container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the link [ALV Grid|http://help.sap.com/saphelp_erp2004/helpdata/EN/22/a3f5ecd2fe11d2b467006094192fe3/frameset.htm] for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can follow link [Custom Container|http://help.sap.com/saphelp_erp2004/helpdata/EN/d3/2955360b00a115e10000009b38f839/frameset.htm] for more detail on types and usage of containers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augsutin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Augustarian on Aug 24, 2009 12:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2009 19:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014908#M1346771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-23T19:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014909#M1346772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have got how to display data from in container from  alv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID1&lt;/P&gt;&lt;P&gt;           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.&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;        I_STRUCTURE_NAME = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        IT_OUTTAB        = GT_SFLIGHT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i have to use structure name , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell how can i use my internal table to display the fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 04:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014909#M1346772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T04:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014910#M1346773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever code you have written is correct just need to change one little thing is while passing table also put [] for table body&lt;/P&gt;&lt;P&gt;as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to select data into internal table before you call method SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you change something on ALV then that part you need to handle in PAI event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check flow login documentation on SAP help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT GRID1&lt;/P&gt;&lt;P&gt;EXPORTING I_PARENT = G_CUSTOM_CONTAINER.&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;I_STRUCTURE_NAME = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = GT_SFLIGHT[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Augustarian on Aug 25, 2009 10:26 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 04:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014910#M1346773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T04:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014911#M1346774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Augustin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my requirement is to display from an internal table , i dont have a structure for it , how can i display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help,&lt;/P&gt;&lt;P&gt;&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 &amp;amp; Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 07:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014911#M1346774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T07:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014912#M1346775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create structure using SFLIGHT table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way I am not able to understand What you mean by you don't have strucuter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have structure right? SFLIGHT is the structure you are using to pass data either you can use that way or you can pass fieldcatalog table with the fields that you want to show in alv grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the link provided in previous post and try building fieldcatalog with different methods like manually, automatic and semi-automatic fieldcatalog generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
I_STRUCTURE_NAME = 'SFLIGHT'
CHANGING
IT_OUTTAB = GT_SFLIGHT[].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GT_SFLIGHT is internal table only and you must have defined that at the start of report. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally steps in AVL report are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare object and table variables&lt;/P&gt;&lt;P&gt;2. Prepare field catalog and layout tables&lt;/P&gt;&lt;P&gt;3. Register events&lt;/P&gt;&lt;P&gt;4. select data into internal table from required table&lt;/P&gt;&lt;P&gt;5. Create instance of alv class and call method to display data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Augustarian on Aug 25, 2009 1:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 07:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014912#M1346775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T07:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014913#M1346776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one issue, can i know how to control the coloumn width in the output of alv in the container.&lt;/P&gt;&lt;P&gt;&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 &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 11:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014913#M1346776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014914#M1346777</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;You need to set OUTPUTLEN of fieldcatalog table for every column you are passing to fieldcatalog table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

ls_fcat-fieldname = 'BNAME' .
ls_fcat-inttype = 'C' .
ls_fcat-outputlen = '12' .
ls_fcat-coltext = 'User Name' .
ls_fcat-seltext = 'User Name' .
APPEND lw_fcat to lt_fieldcat .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Augustarian on Aug 25, 2009 5:25 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Augustarian on Aug 25, 2009 5:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 11:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014914#M1346777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014915#M1346778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please paste here the code for the below query(if possible),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select 2 or 3 fields from a database table (some MAKT), store them in an internal table, create a container and to display the fields of the internal table  in that container using ALV&lt;/P&gt;&lt;P&gt;&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 &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 12:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014915#M1346778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ABAP Through OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014916#M1346779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are plenty of demo programs to help with a simple requirement like this.  These are not &lt;STRONG&gt;training&lt;/STRONG&gt; forums.  Thread locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-abap-through-oop/m-p/6014916#M1346779</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-08-26T07:49:46Z</dc:date>
    </item>
  </channel>
</rss>

