<?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: unicode problem for offset and length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724312#M1456031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your sample coding in my program but still I get a warning message like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;The system cannot perform a static check on the validity of the offset/ length entries for operand "&amp;lt;L_KST_IND&amp;gt;+OFF1(LEN1)". They will be checked at runtime.&lt;/P&gt;&lt;P&gt;In transaction UCCHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way or this part of coding is accepted in unicode compatible system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 19, 2010 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Mar 2010 10:58:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-15T10:58:10Z</dc:date>
    <item>
      <title>unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724306#M1456025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on unicode program where I am getting a error from transaction UCCHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a offset length in the program which is not getting accepted for unicode check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My coding is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT T_KEPH.

    V_KEPH-ANZ = 1.
    OFF1 = 0.
    LEN1 = 7.
DO 40 TIMES.
      T_KEPH_AUSG-WAERS = T_KEPH-WAERS.
      V_ANZ-CHAR = V_KEPH-ANZ.
      ASSIGN: T_KEPH-KST001+OFF1(LEN1) TO &amp;lt;FS&amp;gt; TYPE 'P'.
      V_KEPH-KST =  &amp;lt;FS&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overhere the assign statement is getting an error as &lt;/P&gt;&lt;P&gt;The system cannot perform a static check on the validity of the offset/ length entries for operand "T_KEPH-KST001+OFF1(LEN1)". They will be checked at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 10:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724306#M1456025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724307#M1456026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ASSIGN: (T_KEPH-KST001+OFF1(LEN1))*TO &amp;lt;FS&amp;gt; TYPE 'P'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ASSIGN: (T_KEPH-KST001+OFF1(LEN1)) TO &amp;lt;FS&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 10:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724307#M1456026</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2010-03-12T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724308#M1456027</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;During the static check only the syntax is checked.&lt;/P&gt;&lt;P&gt;This is a dynamic check which states the possibility of error during the runtime.&lt;/P&gt;&lt;P&gt;I think handiling the exception will hide this warning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 11:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724308#M1456027</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-03-12T11:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724309#M1456028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not possible since dynamic field specification not allowed in unicode program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if there is any other solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 11:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724309#M1456028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T11:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724310#M1456029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any other suggestions which can overcome this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if there is any other possibility other than exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 05:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724310#M1456029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T05:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724311#M1456030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lots of different possibilities. One is to utilize the [ASSIGN COMPONENT comp OF STRUCTURE|http://help.sap.com/abapdocu_70/en/ABAPASSIGN_MEM_AREA_DYNAMIC_DOBJ.htm#!ABAP_ALTERNATIVE_4@4@] statement. Since it seems that you basically want to iterate over all fields KST0&amp;lt;index&amp;gt; of KEPF, below is some sample coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    t_keph TYPE STANDARD TABLE OF keph,
    l_ind TYPE numc3,
    l_field TYPE fieldname,
    l_keph TYPE keph.

  LOOP AT t_keph ASSIGNING &amp;lt;l_keph&amp;gt;.

    DO 40 TIMES.
      l_ind = sy-index.
      CONCATENATE 'KST' l_ind INTO l_field.
      ASSIGN COMPONENT l_field OF STRUCTURE &amp;lt;l_keph&amp;gt; TO &amp;lt;l_kst_ind&amp;gt;.
      IF sy-subrc = 0.
        " Now you have in field symbol &amp;lt;l_kst_ind&amp;gt; the field KST001,
        " KST002, KST003 and so on...
      ENDIF.
    ENDDO.

  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 06:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724311#M1456030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T06:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724312#M1456031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your sample coding in my program but still I get a warning message like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;The system cannot perform a static check on the validity of the offset/ length entries for operand "&amp;lt;L_KST_IND&amp;gt;+OFF1(LEN1)". They will be checked at runtime.&lt;/P&gt;&lt;P&gt;In transaction UCCHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way or this part of coding is accepted in unicode compatible system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 19, 2010 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 10:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724312#M1456031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T10:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724313#M1456032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


data:lv_KST001 type KST001.
LOOP AT T_KEPH.
 
    V_KEPH-ANZ = 1.
    OFF1 = 0.
    LEN1 = 7.
DO 40 TIMES.
      T_KEPH_AUSG-WAERS = T_KEPH-WAERS.
      V_ANZ-CHAR = V_KEPH-ANZ.

lv_KST001  = T_KEPH-KST001+OFF1(LEN1).

      ASSIGN: lv_KST001 TO &amp;lt;FS&amp;gt; TYPE 'P'.
      V_KEPH-KST =  &amp;lt;FS&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pravin s. on Mar 15, 2010 12:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724313#M1456032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724314#M1456033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it does not work it does not take a sub-field &lt;/P&gt;&lt;P&gt;       lv_KST001  = T_KEPH-KST001+OFF1(LEN1).&lt;/P&gt;&lt;P&gt;Overhere is an error.&lt;/P&gt;&lt;P&gt;Field type p does not permit a sub-field access.&lt;/P&gt;&lt;P&gt;Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 11:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724314#M1456033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T11:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724315#M1456034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you misunderstood my coding. With the version that I gave you, there's no need to specify any offset. Within the loop the field symbol &amp;lt;l_kst_ind&amp;gt; will be assigned to the fields of structure KEPH-KST001, KST002 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run the coding in debugger and you'll see what I mean. Just try to do whatever you'd do with KST&amp;lt;number&amp;gt; fields with the field symbol &amp;lt;l_kst_ind&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 18:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724315#M1456034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724316#M1456035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me sample example where there is offset and length used in unicode programs for a better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 09:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724316#M1456035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724317#M1456036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode programs you really &lt;STRONG&gt;must not&lt;/STRONG&gt; use offsets for accessing structures (though in theory you could do that if there's only character-type fields up to the offset/length combination). Here's the explanation in the [online help|http://help.sap.com/saphelp_nw04/Helpdata/EN/79/c55470b3dc11d5993800508b6b8b11/frameset.htm] and here's the corresponding link in the [ABAP documentation|http://help.sap.com/abapdocu_70/en/ABENUNICODE_OFFSET_LENGTH.htm].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the help states, there's no good reason to use offset and length. It does make sense if you're talking about a single string (or xstring), but when using structures you should always access the individual components directly (e.g. one possibility via dynamic programming I've shown you above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Mar 2010 19:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724317#M1456036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-16T19:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724318#M1456037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your inputs in Offsets and length in unicode programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I need to built up the offset and length like the sample coding you have done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 04:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724318#M1456037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-17T04:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724319#M1456038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still trying to work on this problem, I have built an example program with offset and length:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA text2 TYPE c LENGTH 10 VALUE '0123456789'.

FIELD-SYMBOLS: &amp;lt;char&amp;gt; TYPE c.
              
DATA: off2 TYPE i,
      len2 type i.

DO 10 TIMES.
  off2 = sy-index - 1.
*  off2 = 1.
  len2 = 1.
  ASSIGN text2+off2(len2) TO &amp;lt;char&amp;gt;.
  WRITE / &amp;lt;char&amp;gt;.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an output with it but when I check in tcode UCCHECK me getting a error message:&lt;/P&gt;&lt;P&gt;&amp;gt;The system cannot perform a static check on the validity of the offset/ length entries for operand "TEXT2+OFF2(LEN2)". They will be checked at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrds,&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 19, 2010 4:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 12:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724319#M1456038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T12:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724320#M1456039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you running UCCHECK with the option &amp;lt;i&amp;gt;Display lines that cannot be analyzed statically&amp;lt;/i&amp;gt; (check also the documentation for transaction UCCHECK). The message is quite reasonable: You're using a dynamic offset and length specification, which are only filled at runtime. It's impossible to analyze this dynamic behavior in general for all possible cases using just static code analysis. I.e. in your specific case in theory it would still be possible to figure out offset and length, but for a static analysis, this gets at some point impossible, because only at &lt;EM&gt;runtime&lt;/EM&gt; you will know what values the fields have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus a static check is not always complete and cannot necessarily determine if the program won't create any problems when running. It's just a good tool to check for certain error categories that can be determined that way. As also specified in the documentation of UCCHECK, part of an analysis is to actually test the programs by executing them (as some errors can only be detected at runtime).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's an old problem, essentially it's virtually impossible to &lt;EM&gt;prove&lt;/EM&gt; the absence of bugs. The best you can do is run your static code checks, create test cases for all possible scenarios (which is for reasonably complex programs not feasible) and check the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 22:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724320#M1456039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T22:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724321#M1456040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well I was just going through the documentation of UCCHECK transaction and when I disable check box for&lt;/P&gt;&lt;P&gt;Display lines that cannot be analyzed statically I get no unicode errors found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean we can just neglect this error when we are working on offset and length for unicode programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 08:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724321#M1456040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T08:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724322#M1456041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not answered yet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724322#M1456041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T11:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724323#M1456042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean we can just neglect this error when we are working on offset and length for unicode programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please check again my previous posting. Let me try again, since it seems unclear, even though the message is simple: &lt;STRONG&gt;Static code checks cannot detect all problems&lt;/STRONG&gt;, you will have to do &lt;STRONG&gt;runtime testing&lt;/STRONG&gt; (Unit tests, integration tests, etc.). So if UCCHECK tells you that there's a line that cannot be statically analyzed (with option checked), then it basically means that the statement might be problematic, but the static code analysis cannot tell. So at that point you can use your ABAP skills to check if the statement is ok or not and if the logic is too complex, you will have to rely on runtime tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you basically have to test all programs, no matter if UCCHECK complains or not, but in those special cases where UCCHECK marks certain statements, you should &lt;STRONG&gt;also&lt;/STRONG&gt; take a careful look at the coding and see if there's anything wrong (e.g. byte mode versus character mode) and possibly use information about the code internals to construct your test cases (if you use [white box testing|http://en.wikipedia.org/wiki/White-box_testing]). In theory you could have a program that worked fine before an upgrade, which is still syntactically correct after an upgrade, but the program produces the wrong result from functional perspective...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider &lt;EM&gt;static code checks&lt;/EM&gt; as one tool in your toolbox for detecting possible problems, but not as the answer to everything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 19:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724323#M1456042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-19T19:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724324#M1456043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me still working on this issue, now I am getting a dump since P types are not accepted when I assign field-symbols how can I avoid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;L_KEPH&amp;gt; TYPE ANY,
               &amp;lt;l_kst_ind&amp;gt; TYPE ANY.
DATA:
    t_keph TYPE STANDARD TABLE OF keph,
    l_ind TYPE numc3,
    l_field TYPE fieldname,
    l_keph TYPE keph.

TABLES: KEPH.

DATA: ITAB1 LIKE KEPH OCCURS 0 WITH HEADER LINE.
DATA: OFF10 TYPE I,
      LEN10 TYPE I.

SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE A1.
SELECT-OPTIONS: S_KALNR FOR KEPH-KALNR.
SELECT-OPTIONS: S_KALKA FOR KEPH-KALKA.
SELECT-OPTIONS: S_BZOBJ FOR KEPH-BZOBJ.
SELECTION-SCREEN: END OF BLOCK B1.

START-OF-SELECTION.

SELECT * FROM KEPH INTO CORRESPONDING FIELDS OF TABLE ITAB1
                                 WHERE KALNR IN S_KALNR
                                   AND KALKA IN S_KALKA
                                   AND BZOBJ IN S_BZOBJ.


  LOOP AT ITAB1. "ASSIGNING &amp;lt;l_keph&amp;gt;.

   OFF10 = 0.
    LEN10 = 7.
    DO 40 TIMES.
    ASSIGN: itab1-KST001+off10(len10) TO &amp;lt;L_KEPH&amp;gt;. "TYPE 'P'.
 WRITE: &amp;lt;l_kEPH&amp;gt;.
    ENDDO.
  ENDLOOP.
  WRITE: ITAB1-KALNR,ITAB1-KALKA, itab1-KST001.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I avoid the dump here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 10:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724324#M1456043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T10:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: unicode problem for offset and length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724325#M1456044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like my message is not coming across, maybe somebody else should try to comment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try one more time though: Don't use offsets for accessing fields of structures; instead use the sample coding that I posted above, e.g. you could add a &lt;SPAN __default_attr="Courier" __jive_macro_name="font"&gt;WRITE &amp;lt;l_kst_ind&amp;gt;.&lt;/SPAN&gt; to my version and you'd see the contents of the individual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 20:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-for-offset-and-length/m-p/6724325#M1456044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T20:56:01Z</dc:date>
    </item>
  </channel>
</rss>

