<?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: deep structure in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-in-internal-table/m-p/3466816#M833220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare a Dynamic Internal table in the Table Type in SE11. You can also create a deep structure in it also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a deep structure by Include Statement. You can look at the link below to have a good understanding of the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To read a deep structure&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="212928"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You achive the color coding scheme through ALV. Below is the code for color usage. For complete documentation use the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/0a/b552f7d30911d2b467006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/0a/b552f7d30911d2b467006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For color code of the ALV you can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a component COLOR_TYPE type LVC_T_SCOL to your structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_color type type table of lvc_s_scol.&lt;/P&gt;&lt;P&gt;data: wa_color type lvc_s_scol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set color to green &lt;/P&gt;&lt;P&gt;move '5' to wa_color-color-col.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-int.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or set to yellow &lt;/P&gt;&lt;P&gt;move '3' to wa_color-color-col.&lt;/P&gt;&lt;P&gt;move '1' to wa_color-color-int.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or set to red &lt;/P&gt;&lt;P&gt;move '6' to wa_color-color-col.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-int.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_color to it_color.&lt;/P&gt;&lt;P&gt;wa_alv_data-color_cell] = it_color[.&lt;/P&gt;&lt;P&gt;clear wa_color.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rewards points for useful answers.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 04:32:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T04:32:00Z</dc:date>
    <item>
      <title>deep structure in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-in-internal-table/m-p/3466815#M833219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am creating a dynamic internal table. now i have the requirement to color the individual&lt;/P&gt;&lt;P&gt;cells of internal table. which is possible only by declaring the deep structure for this dynamic&lt;/P&gt;&lt;P&gt;internal table. the problem is i am not getting any idea about, how to declare a deep structure &lt;/P&gt;&lt;P&gt;for the dynamic internal table.&lt;/P&gt;&lt;P&gt;the display of this dynamic internal table is in ALV.&lt;/P&gt;&lt;P&gt;so please help me and give the idea for,&lt;/P&gt;&lt;P&gt;how to declare a deep sturcture for a dynamic internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;points assured&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 22:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-in-internal-table/m-p/3466815#M833219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T22:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: deep structure in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-in-internal-table/m-p/3466816#M833220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare a Dynamic Internal table in the Table Type in SE11. You can also create a deep structure in it also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a deep structure by Include Statement. You can look at the link below to have a good understanding of the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To read a deep structure&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="212928"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You achive the color coding scheme through ALV. Below is the code for color usage. For complete documentation use the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/0a/b552f7d30911d2b467006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/0a/b552f7d30911d2b467006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For color code of the ALV you can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a component COLOR_TYPE type LVC_T_SCOL to your structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_color type type table of lvc_s_scol.&lt;/P&gt;&lt;P&gt;data: wa_color type lvc_s_scol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set color to green &lt;/P&gt;&lt;P&gt;move '5' to wa_color-color-col.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-int.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or set to yellow &lt;/P&gt;&lt;P&gt;move '3' to wa_color-color-col.&lt;/P&gt;&lt;P&gt;move '1' to wa_color-color-int.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or set to red &lt;/P&gt;&lt;P&gt;move '6' to wa_color-color-col.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-int.&lt;/P&gt;&lt;P&gt;move '0' to wa_color-color-inv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_color to it_color.&lt;/P&gt;&lt;P&gt;wa_alv_data-color_cell] = it_color[.&lt;/P&gt;&lt;P&gt;clear wa_color.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rewards points for useful answers.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 04:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-in-internal-table/m-p/3466816#M833220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T04:32:00Z</dc:date>
    </item>
  </channel>
</rss>

