<?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: Append Table Line to Deep Structure Using Table Expression in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955679#M1966828</link>
    <description>&lt;P&gt;Maybe you can switch the table to the left side like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab_alv[ 2 ]-t_color = VALUE #( BASE itab_alv[ 2 ]-t_color ( wa_col ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;P/S: I looked at your code again and found out that you define wa_col as a table no a work area. you should change it cause it confused. incase its a table, you can try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab_alv[ 2 ]-t_color = CORRESPONDING #( BASE ( itab_alv[ 2 ]-t_color ) wa_col ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 May 2019 00:27:38 GMT</pubDate>
    <dc:creator>DoanManhQuynh</dc:creator>
    <dc:date>2019-05-16T00:27:38Z</dc:date>
    <item>
      <title>Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955670#M1966819</link>
      <description>&lt;P&gt;HI, &lt;BR /&gt;i´m just a little confused. I want to append a table_line to deep structure by using table expression, but the syntax check didn´t know the ITAB (field"..." unknown...."&lt;BR /&gt;&lt;BR /&gt;Append value #( wa ) to itab_a[ col_a = 'xyz' ]-itab_b.&lt;/P&gt;
  &lt;P&gt;Could anyone explain me my fault?&lt;/P&gt;
  &lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 07:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955670#M1966819</guid>
      <dc:creator>chaosodio</dc:creator>
      <dc:date>2019-05-15T07:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955671#M1966820</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TYPES:
 BEGIN OF ty_alv_data,
 kunnr TYPE kunnr,
 name1 TYPE name1,
 ort01 TYPE ort01,
 land1 TYPE land1,
 t_color TYPE lvc_t_scol,
 END OF ty_alv_data.
TYPES: tt_alv_data TYPE STANDARD TABLE OF ty_alv_data
 WITH DEFAULT KEY.
DATA(itab_alv) = VALUE tt_alv_data( ( 
kunnr = '123' 
name1 = 'ABCD'  
ort01 = 'LV' 
land1 = 'NV'  
t_color = VALUE #( ( fname = 'KUNNR' 
color-col = col_negative
color-int = 0
color-inv = 0 )


 ( fname = 'ORT01'
 color-col = col_total
 color-int = 1
 color-inv = 1 ) ) )

 ( kunnr = '456' name1 = 'XYZ'
 ort01 = 'LA' land1 = 'CA' ) ).

* ### EDIT ###
DATA(wa_col) = VALUE lvc_s_scol( fname = 'KUNNR'
 color-col = col_negative
 color-int = 0
 color-inv = 0 ).


APPEND VALUE #( wa_col ) TO itab_alv[ 2 ]-t_color.
*FAIL "ITAB_ALV[" is not a field name.


APPEND wa_col TO itab_alv[ 2 ]-t_color.
* "ITAB_ALV[" is not a field name.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 10:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955671#M1966820</guid>
      <dc:creator>chaosodio</dc:creator>
      <dc:date>2019-05-15T10:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955672#M1966821</link>
      <description>&lt;P&gt;Each append throws the msg ""ITAB_ALV[" is not a field name."&lt;BR /&gt;&lt;BR /&gt;Maybe the append-statement cannot process the table expression?&lt;/P&gt;&lt;P&gt;Sure, i can use assign fieldsymbol etc. but i wanna try it to build it with "new logic".&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 10:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955672#M1966821</guid>
      <dc:creator>chaosodio</dc:creator>
      <dc:date>2019-05-15T10:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955673#M1966822</link>
      <description>&lt;P&gt;As SAP says (right of SUBMIT form): "You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details." &lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955673#M1966822</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-15T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955674#M1966823</link>
      <description>&lt;P&gt;As SAP says (right of SUBMIT form): "You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details."&lt;/P&gt;&lt;P&gt;In your case, being the OP, you should edit your question, or add a comment below the question.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955674#M1966823</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-15T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955675#M1966824</link>
      <description>&lt;P&gt;For &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abapappend.htm"&gt;APPEND ... TO itab&lt;/A&gt;, SAP doesn't say that itab can be a &lt;A href="https://help.sap.com/doc/abapdocu_753_index_htm/7.53/en-US/index.htm?file=abenfunctional_position_glosry.htm"&gt;functional operand position&lt;/A&gt;, so you have to indicate an internal table, not an expression.&lt;/P&gt;&lt;P&gt;EDIT: I was wrong about the two next points, cf solution by &lt;A href="https://answers.sap.com/users/36313/quynhdoanmanh.html"&gt;Quynh Doan Manh&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;As you want to &lt;STRONG&gt;update&lt;/STRONG&gt; an internal table, you cannot use a constructor expression either.&lt;/LI&gt;&lt;LI&gt;So, no other solution than first assigning itab_a[ col_a = 'xyz' ]-itab_b to a field symbol, then append to that field symbol".&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 15 May 2019 15:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955675#M1966824</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-15T15:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955676#M1966825</link>
      <description>&lt;P&gt;Asking for more information does not harms others, but helps for finding the right solution.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 15:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955676#M1966825</guid>
      <dc:creator>arthursilva</dc:creator>
      <dc:date>2019-05-15T15:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955677#M1966826</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/1330/afuscella.html"&gt;Arthur Fuscella Silva&lt;/A&gt; Of course. I was just quoting SCN "before anwering":&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1684529-scn-before-answering.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 15:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955677#M1966826</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-05-15T15:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955678#M1966827</link>
      <description>&lt;P&gt;You should use INSERT INTO TABLE, not APPEND.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 18:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955678#M1966827</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-15T18:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955679#M1966828</link>
      <description>&lt;P&gt;Maybe you can switch the table to the left side like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab_alv[ 2 ]-t_color = VALUE #( BASE itab_alv[ 2 ]-t_color ( wa_col ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;P/S: I looked at your code again and found out that you define wa_col as a table no a work area. you should change it cause it confused. incase its a table, you can try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab_alv[ 2 ]-t_color = CORRESPONDING #( BASE ( itab_alv[ 2 ]-t_color ) wa_col ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 May 2019 00:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955679#M1966828</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-05-16T00:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955680#M1966829</link>
      <description>&lt;P&gt;Thanks, the fail ist gone &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;I will try the first method. I forgot this alternative.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 06:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955680#M1966829</guid>
      <dc:creator>chaosodio</dc:creator>
      <dc:date>2019-05-16T06:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Append Table Line to Deep Structure Using Table Expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955681#M1966830</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;&lt;P&gt;Instead of using APPEND, why don't you try to assign the value directly&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab_alv[ 2 ]-t_color = VALUE lvc_t_scol( ( wa_col ) ) .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reward points if it's helpful.&lt;/P&gt;&lt;P&gt;KR,&lt;BR /&gt;Arthur Silva&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-table-line-to-deep-structure-using-table-expression/m-p/11955681#M1966830</guid>
      <dc:creator>arthursilva</dc:creator>
      <dc:date>2019-05-16T15:01:09Z</dc:date>
    </item>
  </channel>
</rss>

