<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254010#M145665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inrec is an internal table, how can I declare it as data: inrec type iedid4 ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2006 18:35:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-21T18:35:44Z</dc:date>
    <item>
      <title>:) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254005#M145660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having an Unicode problem. I have an Internal table as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF iedid4 OCCURS 10.
        INCLUDE STRUCTURE edid4.
DATA: END OF iedid4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A structure is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_firstline(1000),
      wa_header       LIKE e1bpache04,
      wa_gl_line_item LIKE e1bpacgl04,
      wa_curr_fields  LIKE e1bpaccr04,
      infname         LIKE ibipparms-path,
      idocnum         LIKE edid4-docnum,
      pdcount         LIKE zpdcount-runcount,
      trans_date      LIKE sy-datum,
      pp_end_date     LIKE sy-datum,
      recon_docnum(10),
      o_path          LIKE filename-fileintern,
      t_runid         LIKE pevsh-runid,
      &amp;amp;pernr          LIKE ppdit-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I call the following statement,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE iedid4 INTO wa_firstline INDEX 1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error.&lt;/P&gt;&lt;P&gt;	A line of "IEDID4" and "WA_FIRSTLINE" are not mutually convertible in a Unicode program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me out?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 17:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254005#M145660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T17:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254006#M145661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In unicode systems, they have to have the same structures. Since you declared the internal table IEDID4 with header line, you don't need the additional INTO clause with your READ statement. You can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE iedid4 INDEX 1.&lt;/P&gt;&lt;P&gt;wa_firstline = i_edid4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or declare 'wa_firstline' like iedid4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254006#M145661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254007#M145662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iedid4 and wa_firstline MUST be of the same type in Unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare like this:&lt;/P&gt;&lt;P&gt;data: wa_firstline type edid4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254007#M145662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254008#M145663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about length of wa_firstline(1000)?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinvas, i think we should use type instead of like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another statement I modified as both of you mentione like this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE iedid4 INDEX 2.
    wa_inrec = iedid4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the structure of wa_inrec is as follows,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_inrec    TYPE inrec,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure of inrec is as follows,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF inrec ,
          data(1000),
       END OF inrec.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here also I get the same error,&lt;/P&gt;&lt;P&gt;	"WA_INREC" and "IEDID4" are not mutually convertible. In Unicode		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanksa-a-lot for you help Srinavas, and John.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254008#M145663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254009#M145664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: inrec type IEDID4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254009#M145664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254010#M145665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inrec is an internal table, how can I declare it as data: inrec type iedid4 ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254010#M145665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254011#M145666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this defintion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF inrec ,  &lt;/P&gt;&lt;P&gt;        data(1000), &lt;/P&gt;&lt;P&gt;      END OF inrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inrec is NOT an internal table.  It is a simple, custom-built data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: in_tbl type table of inrec with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   would be an internal table of TYPE inrec.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254011#M145666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254012#M145667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John is talking about the wa_inrec. Basically you cannot move the contents of your internal table record to a flat structure of 1000 characters particularly if the EDID4 structure has non-character like fields. The problem is with the field DTINT2 of this structure. I think you actually need to do MOVE IEDID4-SDATA TO WA_INREC. Then it will be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF inrec ,
          data(1000),
       END OF inrec.

DATA: BEGIN OF iedid4 OCCURS 10.
        INCLUDE STRUCTURE edid4.
DATA: END OF iedid4.
DATA: wa_inrec    TYPE inrec.



READ TABLE iedid4 INDEX 2.
wa_inrec = iedid4-sdata.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 18:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254012#M145667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T18:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254013#M145668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas and John,&lt;/P&gt;&lt;P&gt;Thanks for the help. Ya that suggestion worked. But In other statement like this,&lt;/P&gt;&lt;P&gt;MOVE wa_firstline+68(932) TO wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It throws me an error like this,&lt;/P&gt;&lt;P&gt;	The offset declaration "68" exceeds the length of the character-type start (=66) of the structure. This is not allowed in Unicode programs.	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks-a-lot.&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 19:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254013#M145668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T19:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254014#M145669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the latest definition of your wa_firstline? Is it same as EDID4?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, as I explained, you still have to avoid the field DTINT2. The total length of all the fields upto this field(MANDT, DOCNUM, COUNTER, SEGNUM, SEGNAM, PSGNUM, HLEVEL) = 66. This field is 5 characters,. So you should write your statment as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE wa_firstline+71(929) TO wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;changed the offset length.&lt;/P&gt;&lt;P&gt;Message was edited by: Srinivas Adavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 19:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254014#M145669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T19:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254015#M145670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your system, what is "wa_header" declared as... wa_header LIKE e1bpache04  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, not sure of your R/3 version... please send the def of e1bpache04.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 19:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254015#M145670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T19:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254016#M145671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a "golden rule", you should avoid changing data defs at all costs.  IF it must be done, it must be done carefully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program is changing values into type CHAR, for example, from INT.  This is very dangerous.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the Unicode conversion, you might want to re-visit this program and do some house-cleaning on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 19:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254016#M145671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254017#M145672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at the long text of the error message and then click on the 'Rules for Converting to Unicode'. Here it explains that if you are moving like this, the types of the fields of source should be compatible with that of the target. So if you look at your statement, wa_firstline+68(932) has two initial characters which are of integer type while the target has the first two initial characters as character type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 19:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254017#M145672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T19:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254018#M145673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;The wa-header is declared as e1bpache04 only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;Whats the way to go now?. I tried with offset wa_firstline+71(929), its not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 20:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254018#M145673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T20:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254019#M145674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok let us go back to the basics and see. What is it that you are trying to achieve by moving this offset to wa_header? I thought you want to move the IDoc data to this structure, then you have to simply do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_header = wa_firstline-sdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdata is the field that will always contain the actual data. All other fields of EDID4 are just control information that you don't need for your processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please your latest code again and also specify the requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 20:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254019#M145674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T20:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: :) Unicode Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254020#M145675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinas, Thanks for the help. Please find the code as follows. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM convert_idoc.

  DATA: totallines TYPE i,
        currline TYPE i,
        offsetline TYPE i,
        offset TYPE i.

* REad FIrstLine
*  read table itab_inrecs into wa_firstline index 1.
  READ TABLE iedid4  INDEX 1.
     wa_firstline = iedid4.

* Read Header
*  read table itab_inrecs into wa_inrec index 2.
  READ TABLE iedid4  INDEX 2.
     wa_inrec = iedid4-sdata.
*  move wa_inrec-data+63 to wa_header.
  MOVE wa_firstline+68(932) TO wa_header.
* get total lines
  DESCRIBE TABLE iedid4 LINES totallines.
  currline = 2.                        " sy-tabix
  offset = ( totallines - 2 ) / 2.
  totallines = currline + offset.
  WHILE currline &amp;lt; totallines.
    offsetline = currline + offset.
    READ TABLE iedid4 INTO wa_inrec INDEX currline.
*   read table itab_inrecs into wa_inrec index currline.
    MOVE wa_inrec-data+68 TO wa_gl_line_item.
    IF wa_gl_line_item-gl_account = '1339003000' OR
       wa_gl_line_item-gl_account = '1339001000'.
      currline = currline + 1.
      CLEAR: wa_gl_line_item, wa_inrec.
      CONTINUE.
    ENDIF.
    READ TABLE iedid4 INTO wa_inrec INDEX offsetline .
    MOVE wa_inrec-data+68 TO wa_curr_fields.
    PERFORM build_outrec.
    currline = currline + 1.
  ENDWHILE.

ENDFORM.                               " CONVERT_IDOC
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2006 22:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem/m-p/1254020#M145675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-21T22:12:14Z</dc:date>
    </item>
  </channel>
</rss>

