<?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: Syntax Error with Offset assignments in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947428#M694859</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;Check the length of the &amp;lt;b&amp;gt;fields bseg2 and bseg.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Increase the length to 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 04:18:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T04:18:21Z</dc:date>
    <item>
      <title>Syntax Error with Offset assignments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947427#M694858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am doing upgrade project from 4.6C to ECC6.0. &lt;/P&gt;&lt;P&gt;I have one syntax error with offset assignment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error description:&lt;/P&gt;&lt;P&gt;The length declaration "97" exceeds the length of the character-type&lt;/P&gt;&lt;P&gt;start(=70) of the structure. This is not allowed in Unicode programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax error with this line        *bseg2&lt;EM&gt;0(97) = *bseg&lt;/EM&gt;0(97).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Small piece of code:&lt;/P&gt;&lt;P&gt;IF v_tax_amount &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;       *bseg2&lt;EM&gt;0(97) = *bseg&lt;/EM&gt;0(97).                      &lt;/P&gt;&lt;P&gt;       *bseg2-kostl = *bseg-kostl.                        &lt;/P&gt;&lt;P&gt;       *bseg2-prctr = *bseg-prctr.                         &lt;/P&gt;&lt;P&gt;       *bseg2-mwskz = *bseg-mwskz.                 &lt;/P&gt;&lt;P&gt;       *bseg2-saknr = t030k-konts.                      &lt;/P&gt;&lt;P&gt;       *bseg2-hkont = t030k-konts.                      &lt;/P&gt;&lt;P&gt;       *bseg2-buzei = '999'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me its bit urgent to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947427#M694858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T04:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error with Offset assignments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947428#M694859</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;Check the length of the &amp;lt;b&amp;gt;fields bseg2 and bseg.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Increase the length to 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947428#M694859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T04:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error with Offset assignments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947429#M694860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BSEG2 is having less length as compared to BSEG.&lt;/P&gt;&lt;P&gt;Please increase BSEG2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947429#M694860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T04:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error with Offset assignments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947430#M694861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your sugession&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i declared bith *BSEG and *BSEG2 are same structure of BSEG. &lt;/P&gt;&lt;P&gt;pls check the bellow code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF *bseg OCCURS 100.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE  bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF *bseg2 OCCURS 100.                          &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE  bseg.                            &lt;/P&gt;&lt;P&gt;DATA: END OF *bseg2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this declration way is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947430#M694861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error with Offset assignments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947431#M694862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chanikya..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not with the Declaration of workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in Unicode we cannot access the Workarea using the OFFSET specification once if there is any Numeric field (CURR, DEC, QUAN).&lt;/P&gt;&lt;P&gt;In BSEG the First 70 characters can be accessed with OFFSET bcoz they are Non-Numeric fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when you give &lt;/P&gt;&lt;P&gt;*bseg2&lt;EM&gt;0(97) = *bseg&lt;/EM&gt;0(97). "It is referrring to filed KZBTR. This will give syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can directly give:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*bseg2-KZBTR = *bseg-KZBTR. &amp;lt;/b&amp;gt; "This will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947431#M694862</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-12T04:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error with Offset assignments</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947432#M694863</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;Its possible to use Offset value to the Structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*bseg2&lt;EM&gt;0(97) = *bseg&lt;/EM&gt;0(97).&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declre the above syntax with any field from the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*bseg2-field1&lt;EM&gt;0(97) = *bseg-field1&lt;/EM&gt;0(97).&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-with-offset-assignments/m-p/2947432#M694863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T04:41:29Z</dc:date>
    </item>
  </channel>
</rss>

