<?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 deep structure - assign component in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229650#M138996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have a structure like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of wa_xxx,
        rec like bkpf,
        iba(10) TYPE c,
        bba(10) TYPE c,
      END OF wa_xxx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I would like to assign the strucutre like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field-symbols: &amp;lt;fs_1&amp;gt; like wa_xxx

...

loop....

assign component sy-tabix of structure &amp;lt;fs_1&amp;gt; to &amp;lt;fs_2&amp;gt;.

...
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The first compoment is rec, but I need &amp;lt;fs_1&amp;gt;-rec-...(fields of the structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this? Any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2006 17:47:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-30T17:47:35Z</dc:date>
    <item>
      <title>deep structure - assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229650#M138996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have a structure like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of wa_xxx,
        rec like bkpf,
        iba(10) TYPE c,
        bba(10) TYPE c,
      END OF wa_xxx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I would like to assign the strucutre like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
field-symbols: &amp;lt;fs_1&amp;gt; like wa_xxx

...

loop....

assign component sy-tabix of structure &amp;lt;fs_1&amp;gt; to &amp;lt;fs_2&amp;gt;.

...
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The first compoment is rec, but I need &amp;lt;fs_1&amp;gt;-rec-...(fields of the structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this? Any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 17:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229650#M138996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T17:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: deep structure - assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229651#M138997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why you are going for complex approach here as the structure you have mentioned here is not a deep strcture, its a notmal work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you use a INCLUDE STRUCTURE BKPF , so that you can directly use wa_xxx-fields from BKPF. That way you don't need to deal with it in a complex manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my understanding is wrong, coule you please explain in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A deep structure is one which has a internal table inside a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 17:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229651#M138997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T17:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: deep structure - assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229652#M138998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;I'm not sure exactly what you mean but here's some code:&lt;/P&gt;&lt;P&gt;types: begin of ty_xxx,                         &lt;/P&gt;&lt;P&gt;        rec like bkpf,                          &lt;/P&gt;&lt;P&gt;        iba(10) TYPE c,                         &lt;/P&gt;&lt;P&gt;        bba(10) TYPE c,                         &lt;/P&gt;&lt;P&gt;      END OF ty_xxx.                            &lt;/P&gt;&lt;P&gt;                                                &lt;/P&gt;&lt;P&gt;data t type table of ty_xxx.                    &lt;/P&gt;&lt;P&gt;data d type ty_xxx.                             &lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;el&amp;gt; type any, &amp;lt;str&amp;gt; type ty_xxx.   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can assign the whole structure to a field-symbol...                                                &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at t assigning &amp;lt;str&amp;gt;.    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can refer                   directly to eleemnets within the filed-symbol structure...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if &amp;lt;str&amp;gt;-bba is initial. endif.                 &lt;/P&gt;&lt;P&gt;do.          &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can loop through the individual components of the field symbol structure                                   &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;assign component sy-tabix of structure &amp;lt;str&amp;gt; to &amp;lt;el&amp;gt;.   &lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.                               &lt;/P&gt;&lt;P&gt;exit.                                           &lt;/P&gt;&lt;P&gt;endif.   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can operate on the current element within the structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if &amp;lt;el&amp;gt; is initial. endif.                                                                                &lt;/P&gt;&lt;P&gt;enddo.                                                                                &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 22:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-assign-component/m-p/1229652#M138998</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-03-30T22:15:56Z</dc:date>
    </item>
  </channel>
</rss>

