<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244025#M774276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to make editable and not editable some cells you have to do the following modification to your code:&lt;/P&gt;&lt;P&gt;1 - extend the structure of your table with one more filed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;data: begin of outtab occurs 0,&lt;/P&gt;&lt;P&gt;&amp;gt;           Checkbox  type xfeld&lt;/P&gt;&lt;P&gt;&amp;gt;            F1(1),&lt;/P&gt;&lt;P&gt;&amp;gt;            ...&lt;/P&gt;&lt;P&gt;&amp;gt;            style TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;&amp;gt;         end of outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 -  set value &lt;STRONG&gt;'STYLE'&lt;/STRONG&gt; into the field stylefname of strucure typed &lt;STRONG&gt;lvc_s_layo&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;data: ls_layo type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&amp;gt;lvc_s_layo-stylefname = 'STYLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - in the fieldcatlog set editable the Checkbox&lt;/P&gt;&lt;P&gt;4 - loop to your internal table &lt;STRONG&gt;outtab&lt;/STRONG&gt; and set the style of evry single cell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;data: ls_style type lvc_s_styl.&lt;/P&gt;&lt;P&gt;&amp;gt;loop at outtab.&lt;/P&gt;&lt;P&gt;&amp;gt;if outtab-F1 = 'S'.&lt;/P&gt;&lt;P&gt;&amp;gt;ls_style-fieldname = 'CHECKBOX'.&lt;/P&gt;&lt;P&gt;&amp;gt;ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;&amp;gt;append ls_style to outtab-style.&lt;/P&gt;&lt;P&gt;&amp;gt;clear ls_style.&lt;/P&gt;&lt;P&gt;&amp;gt;else.&lt;/P&gt;&lt;P&gt;&amp;gt;clear outtab-style.&lt;/P&gt;&lt;P&gt;&amp;gt;endif.&lt;/P&gt;&lt;P&gt;&amp;gt;modify outtab.&lt;/P&gt;&lt;P&gt;&amp;gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 - disply ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more example see [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-changing%2bcell%2bcharacteristics%2bin%2balv%2b(OOPS)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: nicolai marco on Jan 13, 2008 10:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jan 2008 21:43:29 GMT</pubDate>
    <dc:creator>mnicolai_77</dc:creator>
    <dc:date>2008-01-13T21:43:29Z</dc:date>
    <item>
      <title>ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244024#M774275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the solutions for the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ALV output I am displaying a checkbox in edit mode, but I want this checkbox in edit mode for some records and disable mode for some other records depending on a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB. Output fields.&lt;/P&gt;&lt;P&gt;Checkbox        F1                  F2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the value of the field F1 = 'V' that checkbox should be in edit mode that means we can check or uncheck.&lt;/P&gt;&lt;P&gt;if the value of the field F1 = 'S' that checkbox should be in disable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points assured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2008 19:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244024#M774275</guid>
      <dc:creator>former_member734916</dc:creator>
      <dc:date>2008-01-13T19:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244025#M774276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to make editable and not editable some cells you have to do the following modification to your code:&lt;/P&gt;&lt;P&gt;1 - extend the structure of your table with one more filed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;data: begin of outtab occurs 0,&lt;/P&gt;&lt;P&gt;&amp;gt;           Checkbox  type xfeld&lt;/P&gt;&lt;P&gt;&amp;gt;            F1(1),&lt;/P&gt;&lt;P&gt;&amp;gt;            ...&lt;/P&gt;&lt;P&gt;&amp;gt;            style TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;&amp;gt;         end of outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 -  set value &lt;STRONG&gt;'STYLE'&lt;/STRONG&gt; into the field stylefname of strucure typed &lt;STRONG&gt;lvc_s_layo&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;data: ls_layo type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&amp;gt;lvc_s_layo-stylefname = 'STYLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - in the fieldcatlog set editable the Checkbox&lt;/P&gt;&lt;P&gt;4 - loop to your internal table &lt;STRONG&gt;outtab&lt;/STRONG&gt; and set the style of evry single cell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;data: ls_style type lvc_s_styl.&lt;/P&gt;&lt;P&gt;&amp;gt;loop at outtab.&lt;/P&gt;&lt;P&gt;&amp;gt;if outtab-F1 = 'S'.&lt;/P&gt;&lt;P&gt;&amp;gt;ls_style-fieldname = 'CHECKBOX'.&lt;/P&gt;&lt;P&gt;&amp;gt;ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;&amp;gt;append ls_style to outtab-style.&lt;/P&gt;&lt;P&gt;&amp;gt;clear ls_style.&lt;/P&gt;&lt;P&gt;&amp;gt;else.&lt;/P&gt;&lt;P&gt;&amp;gt;clear outtab-style.&lt;/P&gt;&lt;P&gt;&amp;gt;endif.&lt;/P&gt;&lt;P&gt;&amp;gt;modify outtab.&lt;/P&gt;&lt;P&gt;&amp;gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 - disply ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more example see [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-changing%2bcell%2bcharacteristics%2bin%2balv%2b(OOPS)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: nicolai marco on Jan 13, 2008 10:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2008 21:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244025#M774276</guid>
      <dc:creator>mnicolai_77</dc:creator>
      <dc:date>2008-01-13T21:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244026#M774277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I did the all changes in my code as suggested by you still it is not working properly, can you see the below code and tell me still I am missing anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_f_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;DATA: l_t_fieldcat TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      l_r_fieldcat LIKE LINE OF l_t_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class cl_gui_alv_grid definition load.&lt;/P&gt;&lt;P&gt;*output tab&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       cb,&lt;/P&gt;&lt;P&gt;       f1,&lt;/P&gt;&lt;P&gt;       f2(10),&lt;/P&gt;&lt;P&gt;       style TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;data: ls_style type lvc_s_styl.&lt;/P&gt;&lt;P&gt;data: ls_layo type lvc_s_layo.&lt;/P&gt;&lt;P&gt;ls_layo-stylefname = 'STYLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 'S'.&lt;/P&gt;&lt;P&gt;itab-f2 = 'Test'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 'V'.&lt;/P&gt;&lt;P&gt;itab-f2 = 'Test1'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-f1 = 'S'.&lt;/P&gt;&lt;P&gt;itab-f2 = 'Test2'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_r_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-fieldname = 'CB'.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;append l_r_fieldcat to l_t_fieldcat .&lt;/P&gt;&lt;P&gt;clear l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_r_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-fieldname = 'F1'.&lt;/P&gt;&lt;P&gt;append l_r_fieldcat to l_t_fieldcat .&lt;/P&gt;&lt;P&gt;clear l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_r_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;l_r_fieldcat-fieldname = 'F2'.&lt;/P&gt;&lt;P&gt;append l_r_fieldcat to l_t_fieldcat .&lt;/P&gt;&lt;P&gt;clear l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if itab-f1 = 'S'.&lt;/P&gt;&lt;P&gt;ls_style-fieldname = 'CB'.&lt;/P&gt;&lt;P&gt;ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_button .&lt;/P&gt;&lt;P&gt;ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;append ls_style to itab-style.&lt;/P&gt;&lt;P&gt;clear ls_style.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;clear itab-style.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_f_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;    I_CALLBACK_PROGRAM                = l_f_repid&lt;/P&gt;&lt;P&gt;    IT_FIELDCAT                       = l_t_fieldcat&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                          = itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 09:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244026#M774277</guid>
      <dc:creator>former_member734916</dc:creator>
      <dc:date>2008-01-14T09:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244027#M774278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the program bcal_grid_edit , all the functionalites r present in that program.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward points if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 09:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244027#M774278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T09:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244028#M774279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Krishna,&lt;/P&gt;&lt;P&gt;I have corrected the code that you have posted and now it works&lt;/P&gt;&lt;P&gt;in bold my correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;DATA: l_f_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;STRONG&gt;DATA: l_t_fieldcat TYPE lvc_t_fcat,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;      &lt;STRONG&gt;l_r_fieldcat TYPE lvc_s_fcat.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;CLASS cl_gui_alv_grid DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;&amp;gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;&amp;gt;       cb,&lt;/P&gt;&lt;P&gt;&amp;gt;       f1,&lt;/P&gt;&lt;P&gt;&amp;gt;       f2(10),&lt;/P&gt;&lt;P&gt;&amp;gt;       style TYPE lvc_t_styl,&lt;/P&gt;&lt;P&gt;&amp;gt;       END OF itab.&lt;/P&gt;&lt;P&gt;&amp;gt;DATA: ls_style TYPE lvc_s_styl.&lt;/P&gt;&lt;P&gt;&amp;gt;DATA: ls_layo TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;&amp;gt;ls_layo-stylefname = 'STYLE'.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;itab-f1 = 'S'.&lt;/P&gt;&lt;P&gt;&amp;gt;itab-f2 = 'Test'.&lt;/P&gt;&lt;P&gt;&amp;gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&amp;gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;itab-f1 = 'V'.&lt;/P&gt;&lt;P&gt;&amp;gt;itab-f2 = 'Test1'.&lt;/P&gt;&lt;P&gt;&amp;gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&amp;gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;itab-f1 = 'S'.&lt;/P&gt;&lt;P&gt;&amp;gt;itab-f2 = 'Test2'.&lt;/P&gt;&lt;P&gt;&amp;gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&amp;gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-fieldname = 'CB'.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;&amp;gt;APPEND l_r_fieldcat TO l_t_fieldcat .&lt;/P&gt;&lt;P&gt;&amp;gt;CLEAR l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-fieldname = 'F1'.&lt;/P&gt;&lt;P&gt;&amp;gt;APPEND l_r_fieldcat TO l_t_fieldcat .&lt;/P&gt;&lt;P&gt;&amp;gt;CLEAR l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;&amp;gt;l_r_fieldcat-fieldname = 'F2'.&lt;/P&gt;&lt;P&gt;&amp;gt;APPEND l_r_fieldcat TO l_t_fieldcat .&lt;/P&gt;&lt;P&gt;&amp;gt;CLEAR l_r_fieldcat.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;&amp;gt;  IF itab-f1 = 'S'.&lt;/P&gt;&lt;P&gt;&amp;gt;    ls_style-fieldname = 'CB'.&lt;/P&gt;&lt;P&gt;&amp;gt;    ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_button .&lt;/P&gt;&lt;P&gt;&amp;gt;    ls_style-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;&amp;gt;    APPEND ls_style TO itab-style.&lt;/P&gt;&lt;P&gt;&amp;gt;    CLEAR ls_style.&lt;/P&gt;&lt;P&gt;&amp;gt;  ELSE.&lt;/P&gt;&lt;P&gt;&amp;gt;    CLEAR itab-style.&lt;/P&gt;&lt;P&gt;&amp;gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt;  MODIFY itab.&lt;/P&gt;&lt;P&gt;&amp;gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;l_f_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;STRONG&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;  &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;    &lt;STRONG&gt;i_callback_program = l_f_repid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;    &lt;STRONG&gt;is_layout_lvc      = ls_layo&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;    &lt;STRONG&gt;it_fieldcat_lvc    = l_t_fieldcat&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;  &lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;     &lt;STRONG&gt;t_outtab           = itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have forgotten to pass the structure layout to the function &lt;STRONG&gt;REUSE_ALV_GRID_DISPLAY&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problem/m-p/3244028#M774279</guid>
      <dc:creator>mnicolai_77</dc:creator>
      <dc:date>2008-01-14T10:15:44Z</dc:date>
    </item>
  </channel>
</rss>

