<?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 DO statement in Unicode programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-statement-in-unicode-programs/m-p/1358971#M178588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Repeated structure for infotype 221.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN  OF CHECK,&lt;/P&gt;&lt;P&gt;           LGA  LIKE  P0221-LGA01,&lt;/P&gt;&lt;P&gt;           TAX  LIKE  P0221-TAX01,&lt;/P&gt;&lt;P&gt;           BWG  LIKE  P0221-BWG01,&lt;/P&gt;&lt;P&gt;           STD  LIKE  P0221-STD01,&lt;/P&gt;&lt;P&gt;           BET  LIKE  P0221-BET01,&lt;/P&gt;&lt;P&gt;           OPK  LIKE  P0221-OPK01,&lt;/P&gt;&lt;P&gt;      END    OF CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DO  20 TIMES VARYING CHECK&lt;/P&gt;&lt;P&gt;                             FROM P0221-LGA01&lt;/P&gt;&lt;P&gt;                             NEXT P0221-LGA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without Unicode this is working fine...the CHECK structure takes all the values for all fields of p0221 structure in this statement. This p0221 gets filled by a Provide statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in Unicode programs it was giving an error that CHECK and p0221-LGA are type incompatible so instead I wrote &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DO  20 TIMES VARYING CHECK-LGA&lt;/P&gt;&lt;P&gt;                             FROM P0221-LGA01&lt;/P&gt;&lt;P&gt;                             NEXT P0221-LGA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the CHECK structure values for only the field LGA...the rest of the fields of the structure CHECK do not have any values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest any other changes in the DO statement which would have the same effect as the previous one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jun 2006 06:16:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-07T06:16:35Z</dc:date>
    <item>
      <title>DO statement in Unicode programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-statement-in-unicode-programs/m-p/1358971#M178588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Repeated structure for infotype 221.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN  OF CHECK,&lt;/P&gt;&lt;P&gt;           LGA  LIKE  P0221-LGA01,&lt;/P&gt;&lt;P&gt;           TAX  LIKE  P0221-TAX01,&lt;/P&gt;&lt;P&gt;           BWG  LIKE  P0221-BWG01,&lt;/P&gt;&lt;P&gt;           STD  LIKE  P0221-STD01,&lt;/P&gt;&lt;P&gt;           BET  LIKE  P0221-BET01,&lt;/P&gt;&lt;P&gt;           OPK  LIKE  P0221-OPK01,&lt;/P&gt;&lt;P&gt;      END    OF CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DO  20 TIMES VARYING CHECK&lt;/P&gt;&lt;P&gt;                             FROM P0221-LGA01&lt;/P&gt;&lt;P&gt;                             NEXT P0221-LGA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without Unicode this is working fine...the CHECK structure takes all the values for all fields of p0221 structure in this statement. This p0221 gets filled by a Provide statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in Unicode programs it was giving an error that CHECK and p0221-LGA are type incompatible so instead I wrote &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DO  20 TIMES VARYING CHECK-LGA&lt;/P&gt;&lt;P&gt;                             FROM P0221-LGA01&lt;/P&gt;&lt;P&gt;                             NEXT P0221-LGA02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the CHECK structure values for only the field LGA...the rest of the fields of the structure CHECK do not have any values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest any other changes in the DO statement which would have the same effect as the previous one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 06:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-statement-in-unicode-programs/m-p/1358971#M178588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T06:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: DO statement in Unicode programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/do-statement-in-unicode-programs/m-p/1358972#M178589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi archana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. U have to write varying,  &lt;/P&gt;&lt;P&gt;   for all the 6 fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 40 TIMES&lt;/P&gt;&lt;P&gt;   VARYING rep-lgart FROM myp0008-lga01 NEXT myp0008-lga02&lt;/P&gt;&lt;P&gt;   VARYING rep-betrg FROM myp0008-bet01 NEXT myp0008-bet02&lt;/P&gt;&lt;P&gt;   VARYING rep-anzhl FROM myp0008-anz01 NEXT myp0008-anz02&lt;/P&gt;&lt;P&gt;   VARYING rep-zeinh FROM myp0008-ein01 NEXT myp0008-ein02&lt;/P&gt;&lt;P&gt;   VARYING rep-opken FROM myp0008-opk01 NEXT myp0008-opk02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Just change the field names as per pa0221.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2006 06:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/do-statement-in-unicode-programs/m-p/1358972#M178589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-07T06:19:37Z</dc:date>
    </item>
  </channel>
</rss>

