<?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 Copying a program gives me a syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225449#M769325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to copy a print program and I am getting a syntax error when I attempt to activate the new program.  I am not changing anything on the program, just a straight copy and activate (at this point).  It is giving me an error because of the following code (in RVADOR01):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF VBDKA-VBTYP = 'B'&lt;/P&gt;&lt;P&gt;  OR VBDKA-VBTYP = 'H'.&lt;/P&gt;&lt;P&gt;   TKOMVD[] = TKOMVDX[].&lt;/P&gt;&lt;P&gt;    LOOP AT TKOMVD.&lt;/P&gt;&lt;P&gt;      AT FIRST.&lt;/P&gt;&lt;P&gt;        IF KOMK-SUPOS NE 0.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                    ELEMENT = 'ITEM_SUM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving me the error on the line    TKOMVD[] = TKOMVDX[]. because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TKOMVD" and "TKOMVDX" are not mutually convertible. In Unicode systems, "TKOMVD" must have the same structure layout (fragment view) as"TKOMVDX", regardless of the length of the Unicode character."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating the new program with unicode checks and without unicode checks and each time if gives me a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2008 00:33:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-17T00:33:43Z</dc:date>
    <item>
      <title>Copying a program gives me a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225449#M769325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to copy a print program and I am getting a syntax error when I attempt to activate the new program.  I am not changing anything on the program, just a straight copy and activate (at this point).  It is giving me an error because of the following code (in RVADOR01):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF VBDKA-VBTYP = 'B'&lt;/P&gt;&lt;P&gt;  OR VBDKA-VBTYP = 'H'.&lt;/P&gt;&lt;P&gt;   TKOMVD[] = TKOMVDX[].&lt;/P&gt;&lt;P&gt;    LOOP AT TKOMVD.&lt;/P&gt;&lt;P&gt;      AT FIRST.&lt;/P&gt;&lt;P&gt;        IF KOMK-SUPOS NE 0.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                    ELEMENT = 'ITEM_SUM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving me the error on the line    TKOMVD[] = TKOMVDX[]. because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TKOMVD" and "TKOMVDX" are not mutually convertible. In Unicode systems, "TKOMVD" must have the same structure layout (fragment view) as"TKOMVDX", regardless of the length of the Unicode character."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating the new program with unicode checks and without unicode checks and each time if gives me a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 00:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225449#M769325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T00:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a program gives me a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225450#M769326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried myself copying RVADOR01 to a customized program, I could activate the same without any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let us know the include and the procedure you have used in copying the program. Maybe that can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 03:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225450#M769326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T03:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a program gives me a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225451#M769327</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 this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move corresponding TKOMVDX to TKOMVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 03:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225451#M769327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T03:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a program gives me a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225452#M769328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RVADOR01 is the standard program but we modified it and I am attempting to copy the modified program.  The code in question was put in by a prior ABAPer.  The issue is that the two structures are not the same (they don't contain the same fields) but it doesn't give the error on the program, only on the copied program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 03:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225452#M769328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T03:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a program gives me a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225453#M769329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niyaz, is that what the statement does?  I will have to give that a shot and run it through debug to make sure that it still acts as we need.  I haven't had the time to dive into the code yet (I am in the middle of an implementation) so I'm not 100% sure why it was done in the first place.  I will revisit this thread in the morning and try your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Davis on Jan 16, 2008 10:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 03:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225453#M769329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T03:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a program gives me a syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225454#M769330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   The statment copies the from work area to another work area by comparing the data types. check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_test,&lt;/P&gt;&lt;P&gt;       vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;       posnr TYPE posnr,&lt;/P&gt;&lt;P&gt;       END OF ty_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_sample,&lt;/P&gt;&lt;P&gt;       vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;       erdat TYPE erdat,&lt;/P&gt;&lt;P&gt;       END OF ty_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_test TYPE ty_test,&lt;/P&gt;&lt;P&gt;      ls_sample TYPE ty_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_test-vbeln = '10000'.&lt;/P&gt;&lt;P&gt;ls_test-posnr = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ls_test TO ls_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: ls_sample-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2008 03:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-a-program-gives-me-a-syntax-error/m-p/3225454#M769330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-17T03:16:48Z</dc:date>
    </item>
  </channel>
</rss>

