<?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 sample reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861588#M928121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a search of this forum would have led you to SAP's executable demonstration programs, named like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV* for older style of ALV reporting, BALV* for previous (and still viable) OO-class-based ALV  and SALV* for current simplified class-based technology.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 17:16:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-28T17:16:27Z</dc:date>
    <item>
      <title>alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861582#M928115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;        i'm new to ALV please send some real time sample of alv reports.&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;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861582#M928115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861583#M928116</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;This is a simple ALV Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;marav. "Table MARA and table MAKT&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;Data to be displayed in ALV&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Using the following syntax, REUSE_ALV_FIELDCATALOG_MERGE can auto-&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;matically determine the fieldstructure from this source program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;begin of imat occurs 100,&lt;/P&gt;&lt;P&gt;matnr like marav-matnr, "Material number&lt;/P&gt;&lt;P&gt;maktx like marav-maktx, "Material short text&lt;/P&gt;&lt;P&gt;matkl like marav-matkl, "Material group (so you can test to make&lt;/P&gt;&lt;P&gt;" intermediate sums)&lt;/P&gt;&lt;P&gt;ntgew like marav-ntgew, "Net weight, numeric field (so you can test to&lt;/P&gt;&lt;P&gt;"make sums)&lt;/P&gt;&lt;P&gt;gewei like marav-gewei, "weight unit (just to be complete)&lt;/P&gt;&lt;P&gt;end of imat.&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;Other data needed&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field to store report name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data i_repid like sy-repid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field to check table length&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data i_lines like sy-tabix.&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;Data for ALV display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;data int_fcat type SLIS_T_FIELDCAT_ALV.&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;P&gt;select-options:&lt;/P&gt;&lt;P&gt;s_matnr for marav-matnr matchcode object MAT1.&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;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read data into table imat&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * from marav&lt;/P&gt;&lt;P&gt;into corresponding fields of table imat&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if material was found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear i_lines.&lt;/P&gt;&lt;P&gt;describe table imat lines i_lines.&lt;/P&gt;&lt;P&gt;if i_lines lt 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Using hardcoded write here for easy upload&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write: /&lt;/P&gt;&lt;P&gt;'No materials found.'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&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;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now, we start with ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To use ALV, we need a DDIC-structure or a thing called Fieldcatalogue.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The fieldcatalouge can be generated by FUNCTION&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'REUSE_ALV_FIELDCATALOG_MERGE' from an internal table from any&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;report source, including this report.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The only problem one might have is that the report and table names&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;need to be in capital letters. (I had it &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&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;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store report name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Fieldcatalogue from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_PROGRAM_NAME = i_repid&lt;/P&gt;&lt;P&gt;I_INTERNAL_TABNAME = 'IMAT' "capital letters!&lt;/P&gt;&lt;P&gt;I_INCLNAME = i_repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;CT_FIELDCAT = int_fcat&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;INCONSISTENT_INTERFACE = 1&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*explanations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_PROGRAM_NAME is the program which calls this function&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_INTERNAL_TABNAME is the name of the internal table which you want&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to display in ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_INCLNAME is the ABAP-source where the internal table is defined&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;(DATA....)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CT_FIELDCAT contains the Fieldcatalouge that we need later for&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write: /&lt;/P&gt;&lt;P&gt;'Returncode',&lt;/P&gt;&lt;P&gt;sy-subrc,&lt;/P&gt;&lt;P&gt;'from FUNCTION REUSE_ALV_FIELDCATALOG_MERGE'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This was the fieldcatlogue&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;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;And now, we are ready to display our list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call for ALV list display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_CALLBACK_PROGRAM = 'Z_ALV_SIMPLE_EXAMPLE_WITH_ITAB'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I_CALLBACK_PROGRAM = i_repid&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = int_fcat&lt;/P&gt;&lt;P&gt;I_SAVE = 'A'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = imat&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;*&lt;/P&gt;&lt;P&gt;*explanations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_CALLBACK_PROGRAM is the program which calls this function&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IT_FIELDCAT (just made by REUSE_ALV_FIELDCATALOG_MERGE) contains&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now the data definition needed for display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_SAVE allows the user to save his own layouts&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;T_OUTTAB contains the data to be displayed in ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write: /&lt;/P&gt;&lt;P&gt;'Returncode',&lt;/P&gt;&lt;P&gt;sy-subrc,&lt;/P&gt;&lt;P&gt;'from FUNCTION REUSE_ALV_LIST_DISPLAY'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861583#M928116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861584#M928117</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;&lt;/P&gt;&lt;P&gt;************************&lt;STRONG&gt;ALV GRID DECLARATION&lt;/STRONG&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_alvgrid          TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;      o_container        TYPE scrfname VALUE 'CUST_CTRL_0300',&lt;/P&gt;&lt;P&gt;      o_custom_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      i_fieldcat         TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;      wa_layout          TYPE lvc_s_layo,&lt;/P&gt;&lt;P&gt;      wa_fieldcat        TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      i_excl_func        TYPE ui_functions,&lt;/P&gt;&lt;P&gt;      ok_code            LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;      i_sort             TYPE lvc_t_sort,&lt;/P&gt;&lt;P&gt;      wa_sort            TYPE lvc_s_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT i_final[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL SCREEN 0300.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with is the screen(double click on the screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0300 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STATUS01'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'TITLE01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF o_alvgrid IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create instances&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM f6000_create_object.&lt;/P&gt;&lt;P&gt;*To create field catalog&lt;/P&gt;&lt;P&gt;    PERFORM f6100_field_catalog TABLES i_fieldcat .&lt;/P&gt;&lt;P&gt;*To create for layout for display&lt;/P&gt;&lt;P&gt;    PERFORM f6200_create_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set Sort field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM f6300_set_sortfield TABLES i_sort .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Generate ALV Grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PERFORM display_list TABLES  i_final&lt;/P&gt;&lt;P&gt;                                 i_fieldcat&lt;/P&gt;&lt;P&gt;                                 i_sort&lt;/P&gt;&lt;P&gt;                            USING wa_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0300  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f6000_create_object .&lt;/P&gt;&lt;P&gt;   IF o_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;      CREATE OBJECT o_custom_container&lt;/P&gt;&lt;P&gt;             EXPORTING container_name = o_container.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f6000_create_object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f6100_field_catalog  TABLES p_fieldcat STRUCTURE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;  DATA wa_fieldcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;  REFRESH p_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH p_fieldcat.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = text-006.    "ZZVCITYGATE&lt;/P&gt;&lt;P&gt;  wa_fieldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname   = text-007.    "I_FINAL&lt;/P&gt;&lt;P&gt;  wa_fieldcat-coltext   = text-008.    "Virtual City Gate&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fix_column = c_x.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-just      =  c_x.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO p_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = text-009.    "ZZKUNNR&lt;/P&gt;&lt;P&gt;  wa_fieldcat-outputlen = 10.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname   = text-007.    "I_FINAL&lt;/P&gt;&lt;P&gt;  wa_fieldcat-coltext   = text-010.    "Business Partner&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fix_column = c_x.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-just      =  c_x.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO p_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname = text-011.    "ZOFFRCONT&lt;/P&gt;&lt;P&gt;  wa_fieldcat-outputlen = 10.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname   = text-007.    "I_FINAL&lt;/P&gt;&lt;P&gt;  wa_fieldcat-coltext   = text-012.    "OCM Contract&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fix_column = c_x.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-just      =  c_x.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO p_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FORM f6200_create_layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_layout-zebra      = c_x.&lt;/P&gt;&lt;P&gt;  wa_layout-info_fname = text-029.        "ROW_COLOR&lt;/P&gt;&lt;P&gt;  wa_layout-cwidth_opt = c_x.&lt;/P&gt;&lt;P&gt;  wa_layout-sel_mode    = c_a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f6200_create_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_list  TABLES   p_i_final STRUCTURE wa_final&lt;/P&gt;&lt;P&gt;                            p_i_fieldcat STRUCTURE lvc_s_fcat&lt;/P&gt;&lt;P&gt;                            p_i_sort STRUCTURE lvc_s_sort&lt;/P&gt;&lt;P&gt;                   USING    p_wa_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Display Report&lt;/P&gt;&lt;P&gt;  CALL METHOD o_alvgrid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_save                        = c_a&lt;/P&gt;&lt;P&gt;      is_layout                     = p_wa_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = p_i_final[]&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = p_i_fieldcat[]&lt;/P&gt;&lt;P&gt;      it_sort                       = p_i_sort[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;      program_error                 = 2&lt;/P&gt;&lt;P&gt;      too_many_lines                = 3&lt;/P&gt;&lt;P&gt;      OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this will help u,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861584#M928117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861585#M928118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type BCALV* in se38 and press F4 you will get all examples of ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861585#M928118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861586#M928119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;go through this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ALV/ALVMainPage.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ALV/ALVMainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 09:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861586#M928119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T09:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861587#M928120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You Can find Simple real time Interactive ALV report at the following link&lt;/P&gt;&lt;P&gt;[http://www.the18news.com/index.php/sap-abap/interactive-alv-real-time-report/|http://www.the18news.com/index.php/sap-abap/interactive-alv-real-time-report/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope you will Satisfy with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 13:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861587#M928120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861588#M928121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a search of this forum would have led you to SAP's executable demonstration programs, named like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV* for older style of ALV reporting, BALV* for previous (and still viable) OO-class-based ALV  and SALV* for current simplified class-based technology.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 17:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861588#M928121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T17:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: alv sample reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861589#M928122</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;Please check package SLIS in se80. The package contains all the examples of ALV ( Grid, Custom Container) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Renu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 09:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-sample-reports/m-p/3861589#M928122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-29T09:37:21Z</dc:date>
    </item>
  </channel>
</rss>

