<?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: Help with READ statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368236#M808342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the select statement which is populating itab_output.. the is a miss match in the order in the decleration of itab_output and order of field in the select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can do a select f1 f2 f3 &lt;/P&gt;&lt;P&gt;                         into corresponding fields of table itab_output&lt;/P&gt;&lt;P&gt;                         where....&lt;/P&gt;&lt;P&gt;but this will be a issue on performance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 23:45:47 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-02-04T23:45:47Z</dc:date>
    <item>
      <title>Help with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368235#M808341</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;In the work area Wa_index name= store storeno=3997 first 3 characters are not comming properly, it is comming as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1  name = re    399    - this has to be 'store'&lt;/P&gt;&lt;P&gt;field2  storeno = 7   sup   - this has to be '3997'&lt;/P&gt;&lt;P&gt;field3  name_2  = er center - this has to be 'super center'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First 3 characters of field2 is attaching at the end of field1 and so on. Please help me to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab_output LINES lv_cnt.&lt;/P&gt;&lt;P&gt;      DO lv_cnt TIMES.&lt;/P&gt;&lt;P&gt;        lv_index = sy-index.&lt;/P&gt;&lt;P&gt;        READ LINE lv_index FIELD VALUE chk.&lt;/P&gt;&lt;P&gt;        IF chk = 'X'.&lt;/P&gt;&lt;P&gt;          READ TABLE itab_output INTO wa_index INDEX sy-index.&lt;/P&gt;&lt;P&gt;          IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;            wa_index-index = sy-index.&lt;/P&gt;&lt;P&gt;            APPEND wa_index TO itab_output2.&lt;/P&gt;&lt;P&gt;            CLEAR wa_index.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        CLEAR chk.&lt;/P&gt;&lt;P&gt;      ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 23:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368235#M808341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T23:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368236#M808342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the select statement which is populating itab_output.. the is a miss match in the order in the decleration of itab_output and order of field in the select statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can do a select f1 f2 f3 &lt;/P&gt;&lt;P&gt;                         into corresponding fields of table itab_output&lt;/P&gt;&lt;P&gt;                         where....&lt;/P&gt;&lt;P&gt;but this will be a issue on performance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 23:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368236#M808342</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-04T23:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368237#M808343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Itab_output is comming properly, I am getting the checked row information into itab_output2. Both table fields are same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_zoutput,&lt;/P&gt;&lt;P&gt;      chk         TYPE C,&lt;/P&gt;&lt;P&gt;      name(17)    TYPE C,&lt;/P&gt;&lt;P&gt;      storeno(9)  TYPE C,&lt;/P&gt;&lt;P&gt;      name_2(35)  TYPE C,&lt;/P&gt;&lt;P&gt;      name_3      LIKE e1bpad1vl-name_3,&lt;/P&gt;&lt;P&gt;      name_4(15)  TYPE C,&lt;/P&gt;&lt;P&gt;      city        LIKE e1bpad1vl-city,&lt;/P&gt;&lt;P&gt;      city_no     LIKE e1bpad1vl-city_no,&lt;/P&gt;&lt;P&gt;      postl_cod1  LIKE e1bpad1vl-postl_cod1,&lt;/P&gt;&lt;P&gt;      transpzone  LIKE e1bpad1vl-transpzone,&lt;/P&gt;&lt;P&gt;      street      LIKE e1bpad1vl-street,&lt;/P&gt;&lt;P&gt;      str_suppl1  LIKE e1bpad1vl-str_suppl1,&lt;/P&gt;&lt;P&gt;      country     LIKE e1bpad1vl-country,&lt;/P&gt;&lt;P&gt;      extens_1    LIKE e1bpad1vl-extens_1,&lt;/P&gt;&lt;P&gt;      END OF ty_zoutput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_zsindex,&lt;/P&gt;&lt;P&gt;      index       TYPE sy-index,&lt;/P&gt;&lt;P&gt;      name(17)    TYPE C,&lt;/P&gt;&lt;P&gt;      storeno(9)  TYPE C,&lt;/P&gt;&lt;P&gt;      name_2(35)  TYPE C,&lt;/P&gt;&lt;P&gt;      name_3      LIKE e1bpad1vl-name_3,&lt;/P&gt;&lt;P&gt;      name_4(15)  TYPE C,&lt;/P&gt;&lt;P&gt;      city        LIKE e1bpad1vl-city,&lt;/P&gt;&lt;P&gt;      city_no     LIKE e1bpad1vl-city_no,&lt;/P&gt;&lt;P&gt;      postl_cod1  LIKE e1bpad1vl-postl_cod1,&lt;/P&gt;&lt;P&gt;      transpzone  LIKE e1bpad1vl-transpzone,&lt;/P&gt;&lt;P&gt;      street      LIKE e1bpad1vl-street,&lt;/P&gt;&lt;P&gt;      str_suppl1  LIKE e1bpad1vl-str_suppl1,&lt;/P&gt;&lt;P&gt;      country     LIKE e1bpad1vl-country,&lt;/P&gt;&lt;P&gt;      extens_1    LIKE e1bpad1vl-extens_1,&lt;/P&gt;&lt;P&gt;      END OF ty_zsindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab_e1bpad1vl.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE e1bpad1vl.&lt;/P&gt;&lt;P&gt;DATA: END OF itab_e1bpad1vl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa TYPE ty_zoutput,&lt;/P&gt;&lt;P&gt;      wa2 TYPE ty_zoutput,&lt;/P&gt;&lt;P&gt;      wa_index TYPE ty_zsindex,&lt;/P&gt;&lt;P&gt;      itab_output TYPE TABLE OF ty_zoutput WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      itab_output2 TYPE TABLE OF ty_zsindex WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;  case sy-ucomm.&lt;/P&gt;&lt;P&gt;    when 'SELE'.&lt;/P&gt;&lt;P&gt;      set pf-status 'NORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT itab_output INTO wa.&lt;/P&gt;&lt;P&gt;        if wa-chk = 'X'.&lt;/P&gt;&lt;P&gt;          wa-chk = ' '.&lt;/P&gt;&lt;P&gt;        elseif wa-chk = ' '.&lt;/P&gt;&lt;P&gt;          wa-chk = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        MODIFY itab_output FROM wa INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;        CLEAR wa.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      perform output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'UPDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DESCRIBE TABLE itab_output LINES lv_cnt.&lt;/P&gt;&lt;P&gt;      DO lv_cnt TIMES.&lt;/P&gt;&lt;P&gt;        lv_index = sy-index.&lt;/P&gt;&lt;P&gt;        READ LINE lv_index FIELD VALUE chk.&lt;/P&gt;&lt;P&gt;        IF chk = 'X'.&lt;/P&gt;&lt;P&gt;          READ TABLE itab_output INTO wa_index INDEX sy-index.&lt;/P&gt;&lt;P&gt;          IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;            wa_index-index = sy-index.&lt;/P&gt;&lt;P&gt;            APPEND wa_index TO itab_output2.&lt;/P&gt;&lt;P&gt;            CLEAR wa_index.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        CLEAR chk.&lt;/P&gt;&lt;P&gt;      ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 00:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368237#M808343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T00:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368238#M808344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your code, both internal tables are not same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First field in first internal table is of data type char and length 1, whereas your second internal table the first field is Index and both differ in lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when moving data, move data explicitly or with addition corresponding from one work area to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 00:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368238#M808344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T00:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368239#M808345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jay and Eswar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed CHK and INDEX to the end and it worked, now I have itab_output and itab_output2 has same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 00:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368239#M808345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T00:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with READ statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368240#M808346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 00:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-read-statement/m-p/3368240#M808346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T00:38:48Z</dc:date>
    </item>
  </channel>
</rss>

