<?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: dynamically changing reference / assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447614#M212280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys... impressive response...will implement the methods and assign points soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 13:29:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-25T13:29:04Z</dc:date>
    <item>
      <title>dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447609#M212275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am trying to do a transpose&lt;/P&gt;&lt;P&gt;i got 2 internal tables in my program.&lt;/P&gt;&lt;P&gt;source - key: a , b &amp;amp; data 1 , 2, 3 &lt;/P&gt;&lt;P&gt;target - key: a , b ,&amp;lt;generated key value&amp;gt; &amp;amp; data 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to merge all data values of 1 2 and 3 from source into single data component 1 of target. to keep values seperate i am generating a key value in target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my abap code i am looping 3 times and then tyring to append copies of source to target while varying data references. &lt;/P&gt;&lt;P&gt;but i dont know how to vary the rerences between comonents 1 2 and 3&lt;/P&gt;&lt;P&gt;whats should i be using.. field symbols or reference...and how?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 19:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447609#M212275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T19:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447610#M212276</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;Not sure I understood your question completely...&lt;/P&gt;&lt;P&gt;Did you use ASSIGN COMPONENT ... OF STRUCTURE... ASSIGNING &amp;lt;fs&amp;gt; to vary reference ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 20:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447610#M212276</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2006-07-24T20:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447611#M212277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not a full time abap programmer so i do not know what solution best fits this situation. &lt;/P&gt;&lt;P&gt;i am currently trying to use a field symbol as you described but not working out very well as i do not know how to increament to next component in the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for replying.&lt;/P&gt;&lt;P&gt;sharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 01:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447611#M212277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T01:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447612#M212278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;assuming all your 'data' columns are identical you could use something like this. Show us your table definitions if it's more complicated than this. The 'index' field is not essential but just differentiates the multiple entries with identical a and b values.&lt;/P&gt;&lt;P&gt;data w_data(5).                              &lt;/P&gt;&lt;P&gt;data: begin of t1 occurs 0,                  &lt;/P&gt;&lt;P&gt;       a(3),                                 &lt;/P&gt;&lt;P&gt;       b(3),                                 &lt;/P&gt;&lt;P&gt;       d1(5),                                &lt;/P&gt;&lt;P&gt;       d2(5),                                &lt;/P&gt;&lt;P&gt;       d3(5),                                &lt;/P&gt;&lt;P&gt;      end of t1.                             &lt;/P&gt;&lt;P&gt;data: begin of t2  occurs 0,                 &lt;/P&gt;&lt;P&gt;       a(3),                                 &lt;/P&gt;&lt;P&gt;       b(3),                                 &lt;/P&gt;&lt;P&gt;       index type sy-tabix,                  &lt;/P&gt;&lt;P&gt;       data(5),                              &lt;/P&gt;&lt;P&gt;      end of t2.                             &lt;/P&gt;&lt;P&gt;loop at t1.                                  &lt;/P&gt;&lt;P&gt;  move-corresponding t1 to t2.                 &lt;/P&gt;&lt;P&gt;  do 3 times varying w_data from t1-d1 next t1-d2.&lt;/P&gt;&lt;P&gt;   t2-index = sy-index.                         &lt;/P&gt;&lt;P&gt;   t2-data = w_data.                            &lt;/P&gt;&lt;P&gt;   append t2. &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>Tue, 25 Jul 2006 02:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447612#M212278</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-07-25T02:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447613#M212279</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;Here is the syntax of ASSIGN COMPOENENT taken from the Help :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: BEGIN OF STR, 
          A VALUE 'a', 
          B VALUE 'b', 
          C VALUE 'c', 
          D VALUE 'd', 
        END   OF STR, 
        CN(5) VALUE 'D'. 
  FIELD-SYMBOLS &amp;lt;FS&amp;gt; TYPE ANY. 
  DO 3 TIMES. 
    ASSIGN COMPONENT SY-INDEX OF 
           STRUCTURE STR TO &amp;lt;FS&amp;gt;. 
    IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF. 
    WRITE &amp;lt;FS&amp;gt;. 
  ENDDO. 
  ASSIGN COMPONENT CN OF STRUCTURE STR TO &amp;lt;FS&amp;gt;. 
  WRITE &amp;lt;FS&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Basically, this code allows to pass from one field of a structure to another easily. &amp;lt;i&amp;gt;Another way is to specify the name of the field instead of sy-index&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post some of your code so that we can see clearly what is going on ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Guillaume Garcia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 07:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447613#M212279</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2006-07-25T07:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447614#M212280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys... impressive response...will implement the methods and assign points soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 13:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447614#M212280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447615#M212281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i was able to verify that neils code works. i am able to switch between data columns but as he himself points out it has some issues with data types of the columns. i was able to find a interm solution but not much luck yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like vary statements work with only N X and C. i am dealing with a float here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 14:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447615#M212281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically changing reference / assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447616#M212282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually solved it!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sharan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 15:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-changing-reference-assignment/m-p/1447616#M212282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T15:15:48Z</dc:date>
    </item>
  </channel>
</rss>

