<?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 Layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063826#M92668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramesh,&lt;/P&gt;&lt;P&gt;    I am just using Function Modules not Containers.&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       = REPID&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_CALLBACK_USER_COMMAND  = 'F_USER_COMMAND'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IS_LAYOUT                = LV_LAYOUT&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT              = LV_FIELDCAT[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_SAVE                   = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_EVENTS                = LV_EVENTS[]&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB                 = C_TAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PROGRAM_ERROR            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS                   = 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2005 00:14:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-09T00:14:50Z</dc:date>
    <item>
      <title>ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063824#M92666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  When I am using the following code for layout, its getting dumped when I click on Back or Exit or any button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LV_LAYOUT-ZEBRA                = 'X'.&lt;/P&gt;&lt;P&gt;  LV_LAYOUT-BOX_FIELDNAME        = 'BOX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what I am using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Dump is "Overwriting a protected Field".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 00:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063824#M92666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T00:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063825#M92667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the structure of the table being passed to the ALV function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, all the options that are being passed to the ALV functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this ALV function or Grid or the OO ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 00:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063825#M92667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T00:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063826#M92668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramesh,&lt;/P&gt;&lt;P&gt;    I am just using Function Modules not Containers.&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       = REPID&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_CALLBACK_USER_COMMAND  = 'F_USER_COMMAND'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IS_LAYOUT                = LV_LAYOUT&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT              = LV_FIELDCAT[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     I_SAVE                   = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IT_EVENTS                = LV_EVENTS[]&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB                 = C_TAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PROGRAM_ERROR            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS                   = 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 00:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063826#M92668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T00:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063827#M92669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post me the structure of C_TAB and all the options that you are setting for LV_LAYOUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing that C_TAB contains a field named BOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for testing purposes, can you change that to C_BOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My test program works fine with both options set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ramesh Adusumilli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 00:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063827#M92669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T00:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063828#M92670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramesh,&lt;/P&gt;&lt;P&gt;   My C_TAB does not contain field BOX. It contains just some 5 fields.Do you know where I am missing.&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, 09 Dec 2005 00:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063828#M92670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T00:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063829#M92671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha. That my friend is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I take it you want a checkbox in the beginning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To the ALV function, you should tell it which field you want to use as a checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt; BEGIN OF C_TAB OCCURS 0,&lt;/P&gt;&lt;P&gt;   fld1,&lt;/P&gt;&lt;P&gt;   fld2,&lt;/P&gt;&lt;P&gt;   fld3,&lt;/P&gt;&lt;P&gt;   fld4,&lt;/P&gt;&lt;P&gt;   fld5,&lt;/P&gt;&lt;P&gt; END OF C_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you put in LV_LAYOUT = 'BOX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function canot find the "field" 'BOX' in the C_TAB structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem:&lt;/P&gt;&lt;P&gt; BEGIN OF C_TAB OCCURS 0,&lt;/P&gt;&lt;P&gt;   fld1,&lt;/P&gt;&lt;P&gt;   fld2,&lt;/P&gt;&lt;P&gt;   fld3,&lt;/P&gt;&lt;P&gt;   fld4,&lt;/P&gt;&lt;P&gt;   fld5,&lt;/P&gt;&lt;P&gt;   BOX TYPE C,&lt;/P&gt;&lt;P&gt; END OF C_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't have to define the field 'BOX' in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and let me know if it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 00:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063829#M92671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T00:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063830#M92672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked Ramesh. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 01:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063830#M92672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T01:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063831#M92673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 14:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-layout/m-p/1063831#M92673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T14:11:57Z</dc:date>
    </item>
  </channel>
</rss>

