<?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: lsmw generated program has syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230247#M1629155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello guys,&lt;/P&gt;&lt;P&gt;&amp;gt;  &lt;/P&gt;&lt;P&gt;&amp;gt; when user runs Convert Data step,the LSMW goes to DUMP.&lt;/P&gt;&lt;P&gt;&amp;gt; the dump has program /1CADMC/SAP_LSMW_CONV&lt;/P&gt;&lt;P&gt;&amp;gt; i opened the program from se38..&lt;/P&gt;&lt;P&gt;&amp;gt; the syntax error is due to a field not declared.&lt;/P&gt;&lt;P&gt;&amp;gt; 1)do we directly change this program?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; 2)how can one know the generated program name of any LSMW&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;Prabhu&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&amp;gt;execute the step:convert data: from that selection screen&lt;/STRONG&gt;&lt;/DEL&gt;&amp;gt;system&lt;DEL&gt;&amp;gt;status&lt;/DEL&gt;&amp;gt;program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; 3)in another such program we have error on this line&lt;/P&gt;&lt;P&gt;&amp;gt; * End of transaction&lt;/P&gt;&lt;P&gt;&amp;gt;   IF fg_skip_rec EQ 'X'.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; *write errors file - header&lt;/P&gt;&lt;P&gt;&amp;gt;     TRANSFER poheader TO skip_file_head.&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;Prabhu--&amp;gt;you need to do the sytax check in step:Mapping and conversion rule , there itself , you will get the syytax errors if any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; the error is with transfer statment,saying poheader has non C fields ..&lt;/P&gt;&lt;P&gt;&amp;gt; in decalration of poheader their is field of type i&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; poheader is the source structure of this LSMW&lt;/P&gt;&lt;P&gt;&amp;gt; but the generated program has an extra field apart from fields in source structure.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; how to correct this error.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2011 02:30:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-13T02:30:54Z</dc:date>
    <item>
      <title>lsmw generated program has syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230245#M1629153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guys,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;when user runs Convert Data step,the LSMW goes to DUMP.&lt;/P&gt;&lt;P&gt;the dump has program /1CADMC/SAP_LSMW_CONV&lt;/P&gt;&lt;P&gt;i opened the program from se38..&lt;/P&gt;&lt;P&gt;the syntax error is due to a field not declared.&lt;/P&gt;&lt;P&gt;1)do we directly change this program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)how can one know the generated program name of any LSMW&lt;/P&gt;&lt;P&gt;3)in another such program we have error on this line&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF fg_skip_rec EQ 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*write errors file - header&lt;/P&gt;&lt;P&gt;    TRANSFER poheader TO skip_file_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error is with transfer statment,saying poheader has non C fields ..&lt;/P&gt;&lt;P&gt;in decalration of poheader their is field of type i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;poheader is the source structure of this LSMW&lt;/P&gt;&lt;P&gt;but the generated program has an extra field apart from fields in source structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to correct this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 18:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230245#M1629153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T18:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw generated program has syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230246#M1629154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never change the generated program directly. You can look at the generated code and find out the program name via LSMW step "display conversion program", you might have to add this step to your personal menu.&lt;/P&gt;&lt;P&gt;Almost always, such syntax errors are caused by additional, custom declarations and coding inside the mapping rules. Investigate these and change as needed to avoid the syntax errors. Speak to the creator of the mapping rules if in doubt.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 19:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230246#M1629154</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-10-12T19:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw generated program has syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230247#M1629155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello guys,&lt;/P&gt;&lt;P&gt;&amp;gt;  &lt;/P&gt;&lt;P&gt;&amp;gt; when user runs Convert Data step,the LSMW goes to DUMP.&lt;/P&gt;&lt;P&gt;&amp;gt; the dump has program /1CADMC/SAP_LSMW_CONV&lt;/P&gt;&lt;P&gt;&amp;gt; i opened the program from se38..&lt;/P&gt;&lt;P&gt;&amp;gt; the syntax error is due to a field not declared.&lt;/P&gt;&lt;P&gt;&amp;gt; 1)do we directly change this program?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; 2)how can one know the generated program name of any LSMW&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;Prabhu&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&amp;gt;execute the step:convert data: from that selection screen&lt;/STRONG&gt;&lt;/DEL&gt;&amp;gt;system&lt;DEL&gt;&amp;gt;status&lt;/DEL&gt;&amp;gt;program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; 3)in another such program we have error on this line&lt;/P&gt;&lt;P&gt;&amp;gt; * End of transaction&lt;/P&gt;&lt;P&gt;&amp;gt;   IF fg_skip_rec EQ 'X'.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; *write errors file - header&lt;/P&gt;&lt;P&gt;&amp;gt;     TRANSFER poheader TO skip_file_head.&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;Prabhu--&amp;gt;you need to do the sytax check in step:Mapping and conversion rule , there itself , you will get the syytax errors if any&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; the error is with transfer statment,saying poheader has non C fields ..&lt;/P&gt;&lt;P&gt;&amp;gt; in decalration of poheader their is field of type i&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; poheader is the source structure of this LSMW&lt;/P&gt;&lt;P&gt;&amp;gt; but the generated program has an extra field apart from fields in source structure.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; how to correct this error.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 02:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230247#M1629155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-13T02:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw generated program has syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230248#M1629156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user runs Convert Data step,the LSMW goes to DUMP.&lt;/P&gt;&lt;P&gt;the dump has program /1CADMC/SAP_LSMW_CONV&lt;/P&gt;&lt;P&gt;i opened the program from se38..&lt;/P&gt;&lt;P&gt;the syntax error is due to a field not declared.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1)do we directly change this program?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;NO&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2)how can one know the generated program name of any LSMW&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In your dump please check the program name.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3)in another such program we have error on this line&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF fg_skip_rec EQ 'X'.&lt;/P&gt;&lt;P&gt;Did you change anything manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*write errors file - header&lt;/P&gt;&lt;P&gt;TRANSFER poheader TO skip_file_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the error is with transfer statment,saying poheader has non C fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;in decalration of poheader their is field of type i&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Please change that into c with specific length.&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;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 02:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230248#M1629156</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-10-13T02:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw generated program has syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230249#M1629157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems, you or somebody in your company has added a field to CI_EKKODB, which has not character format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may cause issues in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- LSMW&lt;/P&gt;&lt;P&gt;- BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had a similar problem in a BAPI this week, when a programmer added a field to CI_EKKODB. This caused many dumps by a unicode check, although we have no unicode system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best way is to replace the non characeter field with a character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LSMW you have a workaround to remove the flag &lt;STRONG&gt;Unicode check active&lt;/STRONG&gt; in the program attributes by a program, if you have no unicode system. But your PO BAPIs may still fail, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 06:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230249#M1629157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-13T06:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw generated program has syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230250#M1629158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;I could now solve the errors succesfully.&lt;/P&gt;&lt;P&gt;thanks to thomas too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kumar gaurav on Oct 14, 2011 10:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 20:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-generated-program-has-syntax-error/m-p/8230250#M1629158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-14T20:12:17Z</dc:date>
    </item>
  </channel>
</rss>

