<?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: Assign component in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016233#M412023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use REUSE_ALV_FIELDCATALOG_MERGRE function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT SY-INDEX OF STRUCTURE ITAB_OD_HEADER TO &amp;lt;FS1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_fieldcat into wa_fieldcat  index  SY-INDEX.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname will contain the fieldname&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 10:44:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-09T10:44:01Z</dc:date>
    <item>
      <title>Assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016229#M412019</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'm trying to compare 2 internal tables to match any mis matches and it works. Now i want to get the original field name and write that infront of the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example now i can get    &lt;/P&gt;&lt;P&gt;3000150     6000150  mismatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to get the field name infront of the data, for example&lt;/P&gt;&lt;P&gt;Sales order       3000150     6000150  mismatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT SY-INDEX OF STRUCTURE ITAB_OD_HEADER TO &amp;lt;FS1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how to get the table field name it reads, not the index ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Keshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 10:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016229#M412019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T10:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016230#M412020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want to compare all the fields or only the key?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 10:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016230#M412020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T10:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016231#M412021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Comparison is already working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to get the field it reads, example, vbeln and display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Keshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 10:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016231#M412021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T10:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016232#M412022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can simply hard code the value when ur comparison is successful line there will be some return parameter like sy-subrc or something else check that with an if and hardcode the value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 10:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016232#M412022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T10:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016233#M412023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use REUSE_ALV_FIELDCATALOG_MERGRE function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT SY-INDEX OF STRUCTURE ITAB_OD_HEADER TO &amp;lt;FS1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_fieldcat into wa_fieldcat  index  SY-INDEX.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname will contain the fieldname&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 10:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016233#M412023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T10:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assign component</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016234#M412024</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;If you want to compare two internal tables and to extract differences, do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Down load two internal tables into two different text files usin GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;And then compare these two files using the DOS command comp.&lt;/P&gt;&lt;P&gt;i.e, COMP file1.txt file2.txt /a &amp;gt;&amp;gt; file3.txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the option list for compare command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMP [data1] [data2] [/D] [/A] [/L] [/N=number] [/C] [/OFF[LINE]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data1      Specifies location and name(s) of first file(s) to compare.&lt;/P&gt;&lt;P&gt;  data2      Specifies location and name(s) of second files to compare.&lt;/P&gt;&lt;P&gt;  /D         Displays differences in decimal format.&lt;/P&gt;&lt;P&gt;  /A         Displays differences in ASCII characters.&lt;/P&gt;&lt;P&gt;  /L         Displays line numbers for differences.&lt;/P&gt;&lt;P&gt;  /N=number  Compares only the first specified number of lines in each file.&lt;/P&gt;&lt;P&gt;  /C         Disregards case of ASCII letters when comparing files.&lt;/P&gt;&lt;P&gt;  /OFF[LINE] Do not skip files with offline attribute set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To compare sets of files, use wildcards in data1 and data2 parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 11:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-component/m-p/2016234#M412024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T11:26:45Z</dc:date>
    </item>
  </channel>
</rss>

