<?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 REF TO DATA to Structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144161#M1192232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a little problem with moving data.&lt;/P&gt;&lt;P&gt;I'm using ref to data for a general data definition. Unfortunately after I create the data using a certain type, let's say 'A', I cant move the data of the created data to a structure of type 'A'. (It can also be type 'B'; that depends on the user input; thats why I am using ref to data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to move the data from the cre3ated structure to the static type structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to reading from you &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2009 08:29:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-27T08:29:43Z</dc:date>
    <item>
      <title>REF TO DATA to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144161#M1192232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a little problem with moving data.&lt;/P&gt;&lt;P&gt;I'm using ref to data for a general data definition. Unfortunately after I create the data using a certain type, let's say 'A', I cant move the data of the created data to a structure of type 'A'. (It can also be type 'B'; that depends on the user input; thats why I am using ref to data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to move the data from the cre3ated structure to the static type structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to reading from you &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 08:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144161#M1192232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T08:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: REF TO DATA to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144162#M1192233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a field symbol to move the data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: dyn_struc type ref to data.
stat_struc type A.

field-symbols &amp;lt;fs&amp;gt; type data.

create data dyn_struc type A.
assign dyn_struc-&amp;gt;* to &amp;lt;fs&amp;gt;.
stat_struc = &amp;lt;fs&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, this will only work if dyn_struc was actually created with type A. Otherwise, the last line will cause a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 16:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144162#M1192233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: REF TO DATA to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144163#M1192234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't u create it dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA W_DYN TYPE REF TO DATA.

CREATE DATA W_DYN TYPE (&amp;lt;TYPE&amp;gt;).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u can know the type of structure B, u can use it in order to create the variable dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 16:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144163#M1192234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: REF TO DATA to Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144164#M1192235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !! That solved my problem.&lt;/P&gt;&lt;P&gt;What tried to do was to move the REF TO DATA to the static structure. (doh)&lt;/P&gt;&lt;P&gt;Then I assigned each component of both structures to a field symbol and moved the data then, but I never thought about moving the whole assigned structure field symbol to the static fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 07:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ref-to-data-to-structure/m-p/5144164#M1192235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T07:56:02Z</dc:date>
    </item>
  </channel>
</rss>

