<?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: READ TABLE is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958058#M1602521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the values in the internal table I_BKPF and see if it matches with the read criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 12:57:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-29T12:57:23Z</dc:date>
    <item>
      <title>READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958051#M1602514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ TABLE .......... INTO ............ is not executing in one of my programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT i_bseg INTO struct_bseg.

  READ TABLE I_BKPF INTO STRUCT_BKPF WITH KEY
                        BUKRS = STRUCT_BSEG-BUKRS
                        BELNR = STRUCT_BSEG-BELNR
                        GJAHR = STRUCT_BSEG-GJAHR.

IF SY-SUBRC = 0.
STRUCT_BKPF_BSEG-LIFNR = STRUCT_BSEG-LIFNR.
STRUCT_BKPF_BSEG-MENGE = STRUCT_BSEG-MENGE.
STRUCT_BKPF_BSEG-MEINS = STRUCT_BSEG-MEINS.
STRUCT_BKPF_BSEG-DMBTR = STRUCT_BSEG-DMBTR.
STRUCT_BKPF_BSEG-MATNR = STRUCT_BSEG-MATNR.
STRUCT_BKPF_BSEG-EBELN = STRUCT_BSEG-EBELN.
STRUCT_BKPF_BSEG-BUKRS = STRUCT_BKPF-BUKRS.
STRUCT_BKPF_BSEG-BELNR = STRUCT_BKPF-BELNR.
STRUCT_BKPF_BSEG-BUDAT = STRUCT_BKPF-BUDAT.
STRUCT_BKPF_BSEG-XBLNR = STRUCT_BKPF-XBLNR.
STRUCT_BKPF_BSEG-WAERS = STRUCT_BKPF-WAERS.
 APPEND STRUCT_BKPF_BSEG TO I_BKPF_BSEG.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the same statement is working fine in some other program.  What may be the reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 10:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958051#M1602514</guid>
      <dc:creator>former_member206394</dc:creator>
      <dc:date>2011-06-27T10:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958052#M1602515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are you getting sy-subrc 4?&lt;/P&gt;&lt;P&gt;if yes, check &lt;/P&gt;&lt;P&gt;1) if the I_BKPF &amp;amp; STRUCT_BKPF  have same structures.&lt;/P&gt;&lt;P&gt;2)I_bkpf is not initial.&lt;/P&gt;&lt;P&gt;3)STRUCT_bseg has same values as in struct_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What error are you getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 10:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958052#M1602515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958053#M1602516</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;use below   code  &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;LOOP AT i_bseg INTO struct_bseg.
 
  READ TABLE I_BKPF   WITH KEY  BUKRS = STRUCT_BSEG-BUKRS
                                                         BELNR = STRUCT_BSEG-BELNR
                                                        GJAHR = STRUCT_BSEG-GJAHR.
 
IF SY-SUBRC = 0.

STRUCT_BKPF_BSEG-LIFNR = STRUCT_BSEG-LIFNR.
STRUCT_BKPF_BSEG-MENGE = STRUCT_BSEG-MENGE.
STRUCT_BKPF_BSEG-MEINS = STRUCT_BSEG-MEINS.
STRUCT_BKPF_BSEG-DMBTR = STRUCT_BSEG-DMBTR.
STRUCT_BKPF_BSEG-MATNR = STRUCT_BSEG-MATNR.
STRUCT_BKPF_BSEG-EBELN = STRUCT_BSEG-EBELN.
STRUCT_BKPF_BSEG-BUKRS = I_BKPF-BUKRS.
STRUCT_BKPF_BSEG-BELNR = I_BKPF-BELNR.
STRUCT_BKPF_BSEG-BUDAT = I_BKPF-BUDAT.
STRUCT_BKPF_BSEG-XBLNR = I_BKPF-XBLNR.
STRUCT_BKPF_BSEG-WAERS = I_BKPF-WAERS.
 APPEND STRUCT_BKPF_BSEG TO I_BKPF_BSEG.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;dEEPAK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 11:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958053#M1602516</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-06-27T11:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958054#M1602517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is syntactically incorrect - you don't close the IF clause with an ENDIF.  The only other reasons that you'd not get anything read are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You have nothing in I_BKPF which matches STRUCT_BSEG-BUKRS/BELNR/GJAHR&lt;/P&gt;&lt;P&gt;2. There's nothing in I_BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statements in ABAP don't just "not work". They do exactly what they're supposed to do. Have you debugged your code to check the contents of I_BKPF and I_BSEG?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958054#M1602517</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2011-06-27T12:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958055#M1602518</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;First check the internal table "i_bseg" and "i_bkpf" has values.&lt;/P&gt;&lt;P&gt;If both have values, check whether the values in both are same..that you can find it with the SY-SUBRC value..if sy-subrc = 0. the it should read the value definitely..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958055#M1602518</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2011-06-27T12:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958056#M1602519</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;Please include the SORT I_BKPF statement before the the LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_BKPF BY  BUKRS&lt;/P&gt;&lt;P&gt;                             BELNR &lt;/P&gt;&lt;P&gt;                            GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to implement this logic and let me know in case of any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SRinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958056#M1602519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T12:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958057#M1602520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.ENDIF  Statement is missing IF sy-subrc = 0. within the LOOP AT., ENDLOOp.&lt;/P&gt;&lt;P&gt;2.Checks the INTO strcture(STRUCT_BKPF) with I_BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls, Let me know if its right or wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 14:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958057#M1602520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958058#M1602521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the values in the internal table I_BKPF and see if it matches with the read criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 12:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958058#M1602521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-29T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958059#M1602522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;finally its working...........thanks a lot for replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 09:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-is-not-working/m-p/7958059#M1602522</guid>
      <dc:creator>former_member206394</dc:creator>
      <dc:date>2011-07-05T09:15:25Z</dc:date>
    </item>
  </channel>
</rss>

