<?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: structure 2 structure transfer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392463#M814588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 11:09:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T11:09:28Z</dc:date>
    <item>
      <title>structure 2 structure transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392461#M814586</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;I have two straucture lets say struc1 and struc 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to pass the value of struc2-field1 to struct1-field2 ( *fields name are not same here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both structure are already filled.&lt;/P&gt;&lt;P&gt;struct1 are filled in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct-name1 = abc&lt;/P&gt;&lt;P&gt;struct-name2 = pqr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct2 are filled in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct-name1 = aaa&lt;/P&gt;&lt;P&gt;struct-name2 = pqr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is i am doing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struct-name1 = struct-name2. ( * Fields have different name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logically struct-name2 value has to pass in struct-name1.&lt;/P&gt;&lt;P&gt;but its not working it coudn't able to assigned it.&lt;/P&gt;&lt;P&gt;please give me solution for it.&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;Subham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 10:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392461#M814586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T10:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: structure 2 structure transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392462#M814587</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;Please refer to the code below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab1,
        name(4) type c,
        add(4) type c,
      end of itab1.

data : begin of itab2,
        name(4) type c,
        add(4) type c,
      end of itab2.

itab1-name = 'ABC'.
itab1-add = 'PQR'.

itab2-name = 'AAA'.
itab2-add = 'PQR'.

itab1-name = itab2-add.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram POnna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 11:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392462#M814587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: structure 2 structure transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392463#M814588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 11:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392463#M814588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T11:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: structure 2 structure transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392464#M814589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to use below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA  :  BEGIN OF struct1,
              name1(4) TYPE C,
              name2(4) TYPE C,
END OF struct1.

DATA : BEGIN OF STRUCT2,
	name1(4) TYPE C,
	name2(4) TYPE C,
END OF struct2.

struct1-name1  =  'ABC'.
struct1-name2  =  'PQR'.

struct2-name1 = 'AAA'.
struct2-name2 = 'PQR'.

*MOVE-CORRESPONDING struct1 TO struct2.  " To Copy all the corresponding fields from struct1 to struct2.
or 
struct1-name1 = struct2-name2.
WRITE : / struct1-name1,
               struct1-name2,
               struct2-name1,
                struct2-name2.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move corresponding statement moves value from one structure to another structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you want to pass the data from one internal table to another internal table, then if the structure of both the table will be same then you can assign directly like that&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_tab1 = it_tab2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_tab1[] = it_tab2.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 11:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-2-structure-transfer/m-p/3392464#M814589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T11:23:22Z</dc:date>
    </item>
  </channel>
</rss>

