<?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: Internal Table Header Offset problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070709#M428891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;                  i tnink , in programs with an active Unicode check, assignments, operand checks, and accesses using offset and length are also affected and problems can arise For example, if a purely character-type structure is enhanced by inserting numeric or deep components, it can lose its character-type nature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 08:47:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T08:47:27Z</dc:date>
    <item>
      <title>Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070708#M428890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enhanced the BW datasource 0EMPLOYEE_ATTR and making code changes to EXIT_SAPLRSAP_002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enhanced the structure 0EMPLOYEE_ATTR to include a 40 character field at the end (data component STEXT). I am trying to move a variable &amp;lt;i&amp;gt;l_jobfamilytext&amp;lt;/i&amp;gt; of type &amp;lt;i&amp;gt;STEXT&amp;lt;/i&amp;gt; into this field of the datasource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when writing directly to the internal table header using either one of the following methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE l_jobfamilytext TO I_T_DATA+186(40).&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;I_T_DATA+186(40) = l_jobfamilytext.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results in the following error.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Short text
    Offset specification for a structure too large

Error analysis
    In Unicode-compatible programs, the offset and length specifications
    for structures are limited to the length of the character-type initial
    part.

    In this case, the offset specification 372 for the structure "I_T_DATA"
    exceeds the length of the character-type initial part (=208).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I know that I did not specify "372" as an offset ANYWHERE in my code. &lt;/P&gt;&lt;P&gt;Does anyone know what is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kevin Wong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070708#M428890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070709#M428891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;                  i tnink , in programs with an active Unicode check, assignments, operand checks, and accesses using offset and length are also affected and problems can arise For example, if a purely character-type structure is enhanced by inserting numeric or deep components, it can lose its character-type nature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070709#M428891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070710#M428892</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_t_data is of type BIW_MARA_S....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you r specifying the offset from 186th character onwards... means it goes to different fields.... i mean the data goes into more than one field FERTH, FORMT ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the same.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALso coming to offset error&lt;/P&gt;&lt;P&gt;I checked with the code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'agfghhjjkjkkjkj' TO I_T_DATA+186(40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_T_DATA+186(40) = 'agfghhjjkjkkjkj'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO ERROR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 09:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070710#M428892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070711#M428893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps here's a better picture, please view the attachments for my settings in RSA6 and SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://img133.imageshack.us/img133/4920/screen1rh1.gif" target="test_blank"&gt;http://img133.imageshack.us/img133/4920/screen1rh1.gif&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://img133.imageshack.us/img133/2031/screen2pu9.gif" target="test_blank"&gt;http://img133.imageshack.us/img133/2031/screen2pu9.gif&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 09:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070711#M428893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T09:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070712#M428894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize something, for example if my internal table I_T_DATA (with header line) was based on a structure that looked like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type     Size        Decimal          Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAR	2	0	Pay Scale Level&lt;/P&gt;&lt;P&gt;DEC	5	2	Capacity Utilization Level&lt;/P&gt;&lt;P&gt;CURR	15	2	Annual salary&lt;/P&gt;&lt;P&gt;CUKY	5	0	Currency Key for Annual Salary&lt;/P&gt;&lt;P&gt;DEC	5	2	Employment percentage&lt;/P&gt;&lt;P&gt;CHAR	1	0	Employment Status&lt;/P&gt;&lt;P&gt;DATS	8	0	Entry Date&lt;/P&gt;&lt;P&gt;CHAR	2	0	Pay Grade Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would only be able to do an offset..&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE xxx TO I_T_DATA+0(2) "To change pay scale level&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...up to the point where it changes from CHAR to something &lt;/P&gt;&lt;P&gt;else like DEC. Once the offset goes beyond a field that is not of type CHAR (in the structure) the program throws a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence doing something like MOVE xxx TO I_T_DATA+2(5) will throw a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that the last field (i.e. Pay Grade Type) cannot be written to using MOVE and offset. Simply because not all the types before this field in the structure are CHAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone understand what I'm saying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kevin Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kevin Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Kevin Wong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 16:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070712#M428894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T16:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070713#M428895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You define a local work area just like your internal table structure and move IT_DATA to that work area. After that you can work with the individual fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 16:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070713#M428895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T16:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070714#M428896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF ls_data,
              field1 (of CHAR 2 0 Pay Scale Level),
              field2 (of DEC 5 2 Capacity Utilization Level)
              field3 (of CURR 15 2 Annual salary)
              field4 (of CUKY 5 0 Currency Key for Annual Salary)
              field5 (of DEC 5 2 Employment percentage)
              field6 (of CHAR 1 0 Employment Status)
              field7 (of DATS 8 0 Entry Date)
              field8 (of CHAR 2 0 Pay Grade Type)
DATA: END OF ls_data.

ls_data = i_t_data.
MOVE 'abc' TO ls_data-field8.
i_t_data = ls_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't work, then you will have to work with field symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 16:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070714#M428896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table Header Offset problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070715#M428897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, I tried it but still does not work, the 2 are not convertible.&lt;/P&gt;&lt;P&gt;Could you provide me with an example using field symbols?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 04:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-header-offset-problem/m-p/2070715#M428897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T04:02:44Z</dc:date>
    </item>
  </channel>
</rss>

