<?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 Display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733820#M898665</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;&lt;/P&gt;&lt;P&gt;Given below is ALV report using OO ABAP.Its not displaying th report.Plz let me know wat is wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRAK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gt_mara type table of mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gl_alv_grid type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;gc_custom_control_name type scrfname value 'CCALV',&lt;/P&gt;&lt;P&gt;gr_ccontainer type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;gt_fieldcat type lvc_t_fcat,&lt;/P&gt;&lt;P&gt;gs_layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa_fieldcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select matnr from mara into table gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;append wa_fieldcat to gt_fieldcat.&lt;/P&gt;&lt;P&gt;clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*wa_fieldcat-fieldname = 'EMARA'.&lt;/P&gt;&lt;P&gt;*append wa_fieldcat to gt_fieldcat.&lt;/P&gt;&lt;P&gt;*clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;if gl_alv_grid is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT GR_CCONTAINER&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARENT = &lt;/P&gt;&lt;P&gt;CONTAINER_NAME = gc_custom_control_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STYLE = &lt;/P&gt;&lt;P&gt;LIFETIME = lifetime_default &lt;/P&gt;&lt;P&gt;REPID = &lt;/P&gt;&lt;P&gt;DYNNR = &lt;/P&gt;&lt;P&gt;NO_AUTODEF_PROGID_DYNNR = &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;others = 6&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY 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;CREATE OBJECT gl_alv_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_SHELLSTYLE = 0 &lt;/P&gt;&lt;P&gt;I_LIFETIME = &lt;/P&gt;&lt;P&gt;I_PARENT = gr_Ccontainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_APPL_EVENTS = space &lt;/P&gt;&lt;P&gt;I_PARENTDBG = &lt;/P&gt;&lt;P&gt;I_APPLOGPARENT = &lt;/P&gt;&lt;P&gt;I_GRAPHICSPARENT = &lt;/P&gt;&lt;P&gt;I_USE_VARIANT_CLASS = SPACE &lt;/P&gt;&lt;P&gt;I_NAME = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_CNTL_CREATE = 1&lt;/P&gt;&lt;P&gt;ERROR_CNTL_INIT = 2&lt;/P&gt;&lt;P&gt;ERROR_CNTL_LINK = 3&lt;/P&gt;&lt;P&gt;ERROR_DP_CREATE = 4&lt;/P&gt;&lt;P&gt;others = 5&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY 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;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;gs_layout-grid_title = text-100.&lt;/P&gt;&lt;P&gt;gs_layout-CWIDTH_OPT = 'X'.&lt;/P&gt;&lt;P&gt;gs_layout-ZEBRA = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;galv_layout-report = sy-repid. &lt;/P&gt;&lt;P&gt;CALL METHOD GL_ALV_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = &lt;/P&gt;&lt;P&gt;I_BUFFER_ACTIVE = &lt;/P&gt;&lt;P&gt;I_CONSISTENCY_CHECK = &lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = &lt;/P&gt;&lt;P&gt;IS_VARIANT = &lt;/P&gt;&lt;P&gt;I_SAVE = &lt;/P&gt;&lt;P&gt;I_DEFAULT = 'X' &lt;/P&gt;&lt;P&gt;IS_LAYOUT = gs_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS_PRINT = &lt;/P&gt;&lt;P&gt;IT_SPECIAL_GROUPS = &lt;/P&gt;&lt;P&gt;IT_TOOLBAR_EXCLUDING = &lt;/P&gt;&lt;P&gt;IT_HYPERLINK = &lt;/P&gt;&lt;P&gt;IT_ALV_GRAPHICS = &lt;/P&gt;&lt;P&gt;IT_EXCEPT_QINFO = &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = gt_mara[]&lt;/P&gt;&lt;P&gt;IT_FIELDCATALOG = gt_fieldcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_SORT = &lt;/P&gt;&lt;P&gt;IT_FILTER = &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 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY 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;ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2008 04:46:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-30T04:46:41Z</dc:date>
    <item>
      <title>ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733820#M898665</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;&lt;/P&gt;&lt;P&gt;Given below is ALV report using OO ABAP.Its not displaying th report.Plz let me know wat is wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRAK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gt_mara type table of mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gl_alv_grid type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;gc_custom_control_name type scrfname value 'CCALV',&lt;/P&gt;&lt;P&gt;gr_ccontainer type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;gt_fieldcat type lvc_t_fcat,&lt;/P&gt;&lt;P&gt;gs_layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa_fieldcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select matnr from mara into table gt_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;append wa_fieldcat to gt_fieldcat.&lt;/P&gt;&lt;P&gt;clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*wa_fieldcat-fieldname = 'EMARA'.&lt;/P&gt;&lt;P&gt;*append wa_fieldcat to gt_fieldcat.&lt;/P&gt;&lt;P&gt;*clear wa_fieldcat.&lt;/P&gt;&lt;P&gt;if gl_alv_grid is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT GR_CCONTAINER&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARENT = &lt;/P&gt;&lt;P&gt;CONTAINER_NAME = gc_custom_control_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STYLE = &lt;/P&gt;&lt;P&gt;LIFETIME = lifetime_default &lt;/P&gt;&lt;P&gt;REPID = &lt;/P&gt;&lt;P&gt;DYNNR = &lt;/P&gt;&lt;P&gt;NO_AUTODEF_PROGID_DYNNR = &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;others = 6&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY 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;CREATE OBJECT gl_alv_grid&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_SHELLSTYLE = 0 &lt;/P&gt;&lt;P&gt;I_LIFETIME = &lt;/P&gt;&lt;P&gt;I_PARENT = gr_Ccontainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_APPL_EVENTS = space &lt;/P&gt;&lt;P&gt;I_PARENTDBG = &lt;/P&gt;&lt;P&gt;I_APPLOGPARENT = &lt;/P&gt;&lt;P&gt;I_GRAPHICSPARENT = &lt;/P&gt;&lt;P&gt;I_USE_VARIANT_CLASS = SPACE &lt;/P&gt;&lt;P&gt;I_NAME = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR_CNTL_CREATE = 1&lt;/P&gt;&lt;P&gt;ERROR_CNTL_INIT = 2&lt;/P&gt;&lt;P&gt;ERROR_CNTL_LINK = 3&lt;/P&gt;&lt;P&gt;ERROR_DP_CREATE = 4&lt;/P&gt;&lt;P&gt;others = 5&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY 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;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;gs_layout-grid_title = text-100.&lt;/P&gt;&lt;P&gt;gs_layout-CWIDTH_OPT = 'X'.&lt;/P&gt;&lt;P&gt;gs_layout-ZEBRA = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;galv_layout-report = sy-repid. &lt;/P&gt;&lt;P&gt;CALL METHOD GL_ALV_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_BYPASSING_BUFFER = &lt;/P&gt;&lt;P&gt;I_BUFFER_ACTIVE = &lt;/P&gt;&lt;P&gt;I_CONSISTENCY_CHECK = &lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = &lt;/P&gt;&lt;P&gt;IS_VARIANT = &lt;/P&gt;&lt;P&gt;I_SAVE = &lt;/P&gt;&lt;P&gt;I_DEFAULT = 'X' &lt;/P&gt;&lt;P&gt;IS_LAYOUT = gs_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS_PRINT = &lt;/P&gt;&lt;P&gt;IT_SPECIAL_GROUPS = &lt;/P&gt;&lt;P&gt;IT_TOOLBAR_EXCLUDING = &lt;/P&gt;&lt;P&gt;IT_HYPERLINK = &lt;/P&gt;&lt;P&gt;IT_ALV_GRAPHICS = &lt;/P&gt;&lt;P&gt;IT_EXCEPT_QINFO = &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = gt_mara[]&lt;/P&gt;&lt;P&gt;IT_FIELDCATALOG = gt_fieldcat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_SORT = &lt;/P&gt;&lt;P&gt;IT_FILTER = &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 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY 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;ENDIF.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 04:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733820#M898665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T04:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733821#M898666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = 'MARA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 05:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733821#M898666</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2008-04-30T05:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733822#M898667</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;Edited by: Prakash Ghantasala on Apr 30, 2008 7:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2008 05:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/3733822#M898667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-30T05:47:57Z</dc:date>
    </item>
  </channel>
</rss>

