<?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: Problem in field leght checking.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720812#M1108457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI MxG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sum of the offset and length (=44) exceeds the length of the start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(=26) of the structure. - not allowed in Unicode programs. -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Program Y_TEST1234&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sum of the offset and length (=44) exceeds the length of the start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(=26) of the structure. - not allowed in Unicode programs. -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOt activatiing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 21:17:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-13T21:17:39Z</dc:date>
    <item>
      <title>Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720808#M1108453</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;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MARD OCCURS 0,&lt;/P&gt;&lt;P&gt;        MATNR LIKE MARD-MATNR,    "18&lt;/P&gt;&lt;P&gt;        WERKS LIKE MARD-WERKS,   "4&lt;/P&gt;&lt;P&gt;        LGORT LIKE MARD-LGORT,     "4&lt;/P&gt;&lt;P&gt;        LABST LIKE MARD-LABST,       "18&lt;/P&gt;&lt;P&gt;      END OF I_MARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MATNR&lt;/P&gt;&lt;P&gt;       WERKS&lt;/P&gt;&lt;P&gt;       LGORT&lt;/P&gt;&lt;P&gt;       LABST&lt;/P&gt;&lt;P&gt;  INTO TABLE I_MARD&lt;/P&gt;&lt;P&gt;  FROM MARD.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;LOOP AT I_MARD.&lt;/P&gt;&lt;P&gt; WRITE: /  I_MARD(22).&lt;/P&gt;&lt;P&gt; IF NOT I_MARD+22 IS INITIAL.&lt;/P&gt;&lt;P&gt;  WRITE:/  I_MARD+22.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;  WRITE:/20  '-'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am having total field legth is 42. In that i an writing first 22 char. after that i checking about the remaing data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not allowing me to activate..please check it &amp;amp; let know your inputs..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 20:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720808#M1108453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T20:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720809#M1108454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; you  were missing +0(22)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF i_mard OCCURS 0,
matnr LIKE mard-matnr, "18
werks LIKE mard-werks, "4
lgort LIKE mard-lgort, "4
labst LIKE mard-labst, "18
END OF i_mard.

SELECT matnr
werks
lgort
labst
INTO TABLE i_mard
FROM mard.

LOOP AT i_mard.
  WRITE: / i_mard(22).
  IF NOT i_mard+0(22) IS INITIAL.
    WRITE:/ i_mard+0(22).
  ELSE.
    WRITE:/20 '-'.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 20:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720809#M1108454</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720810#M1108455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;assuming you want to write the last 20 bytes use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT I_MARD+22(20) IS INITIAL.
WRITE:/ I_MARD+22(20).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720810#M1108455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T21:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720811#M1108456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI J@y,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your suggestion I have modified the code and activated. But it is not displaying full data.&lt;/P&gt;&lt;P&gt;Here in I_mard table I am having the below data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row	MATNR	WERKS	LGORT	LABST&lt;/P&gt;&lt;P&gt;1	20000901	1039	09B1	10.23&lt;/P&gt;&lt;P&gt;2	20000902	1039	911	10.25&lt;/P&gt;&lt;P&gt;3	20000902	1039	912	10.56&lt;/P&gt;&lt;P&gt;4	20000902	1039	913	10.56&lt;/P&gt;&lt;P&gt;5	20000902	1039	919	10.56&lt;/P&gt;&lt;P&gt;6	20000902	1039	921	10.56&lt;/P&gt;&lt;P&gt;7	20000902	1039	922	10.56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the output iam getting the only 2 fields of data so what about remaining LGORT and LABST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20000901          1039  &lt;/P&gt;&lt;P&gt;20000901          1039  &lt;/P&gt;&lt;P&gt;20000902          1039  &lt;/P&gt;&lt;P&gt;20000902          1039  &lt;/P&gt;&lt;P&gt;20000902          1039  &lt;/P&gt;&lt;P&gt;20000902          1039  &lt;/P&gt;&lt;P&gt;20000902          1039  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in my condition is;&lt;/P&gt;&lt;P&gt;1st MATNR and WERKS will be written and by using this statement:  WRITE: / I_MARD(22).&lt;/P&gt;&lt;P&gt;and then by using the other condition iam checking the data of remaing 2 fileds.&lt;/P&gt;&lt;P&gt; IF NOT I_MARD+0(22) IS INITIAL.&lt;/P&gt;&lt;P&gt;  WRITE:/ I_MARD+0(22).&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;  WRITE:/20 '-'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we dont have the date for next 3 fields &lt;STRONG&gt;'-'&lt;/STRONG&gt; will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check it. this is important for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mahaboob on Nov 13, 2008 10:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720811#M1108456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T21:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720812#M1108457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI MxG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sum of the offset and length (=44) exceeds the length of the start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(=26) of the structure. - not allowed in Unicode programs. -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Program Y_TEST1234&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The sum of the offset and length (=44) exceeds the length of the start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(=26) of the structure. - not allowed in Unicode programs. -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOt activatiing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720812#M1108457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T21:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720813#M1108458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok now ur req is clear:&lt;/P&gt;&lt;P&gt;here is the modified code&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zj_test.
DATA: BEGIN OF i_mard OCCURS 0,
matnr LIKE mard-matnr, "18
werks LIKE mard-werks, "4
lgort LIKE mard-lgort, "4
labst LIKE mard-labst, "18
END OF i_mard.

SELECT matnr
werks
lgort
labst
INTO TABLE i_mard
FROM mard.

LOOP AT i_mard.
  WRITE: / i_mard(22).
  IF NOT i_mard+0(22) IS INITIAL.
    WRITE:/10 i_mard-lgort, i_mard-labst.
  ELSE.
    WRITE:/20 '-'.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720813#M1108458</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720814#M1108459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any issue in using direct field names in write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: /  i_mard-MATNR , i_mard-WERKS ,i_mard-LGORT , i_mard-LABST .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720814#M1108459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T21:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720815#M1108460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI J@y,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asper your logic agian your checking 1st 2 fields. bUt my requirement is i need to check 3rd and 4th field of data. if no data in 3rd and 4th field i need to pass &lt;STRONG&gt;'-'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_mard.&lt;/P&gt;&lt;P&gt;  WRITE: / i_mard(22).&lt;/P&gt;&lt;P&gt;  IF NOT i_mard+0(22) IS INITIAL.&lt;/P&gt;&lt;P&gt;    WRITE:/10 i_mard-lgort, i_mard-labst.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:/20 '-'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check it once..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 21:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720815#M1108460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T21:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720816#M1108461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh man!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT i_mard.
  WRITE: / i_mard(22).
  IF NOT i_mard-lgort IS INITIAL AND i_mard-labst IS INITIAL.  " check if you need *and* or *OR*
    WRITE:/10 i_mard-lgort, i_mard-labst.
  ELSE.
    WRITE:/20 '-'.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 22:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720816#M1108461</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-13T22:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in field leght checking..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720817#M1108462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 11:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-field-leght-checking/m-p/4720817#M1108462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T11:34:00Z</dc:date>
    </item>
  </channel>
</rss>

