<?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 Statement Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998962#M1494971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;read (v.)&lt;/STRONG&gt; to translate written text into meaningful ideas within one's own mind. People usually read to gain knowledge or to awaken their imagination. Sadly, the act of reading seems to have been "bred out" of the human race. People these days would much rather desensetize themselves with stupid rap noise and violent, pornographic, and otherwise unintelligent forms of media. If you are an ABAP developer and find it hard to read, do yourself a favor and get help. No offense! Reading is a great and powerful thing, and only by fully taking advantage of it can one open his or her mind to the possibilities of his or her own future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"urban dictionary" with one adjustment &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jun 2010 13:54:22 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-06-25T13:54:22Z</dc:date>
    <item>
      <title>Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998954#M1494963</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;I am facing problem with read statement, please find below my code and provide the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Internal Tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TYP_BSAK,&lt;/P&gt;&lt;P&gt;BUKRS TYPE BSAK-BUKRS,&lt;/P&gt;&lt;P&gt;LIFNR TYPE BSAK-LIFNR,&lt;/P&gt;&lt;P&gt;AUGDT TYPE BSAK-AUGDT,&lt;/P&gt;&lt;P&gt;GJAHR TYPE BSAK-GJAHR,&lt;/P&gt;&lt;P&gt;BELNR TYPE BSAK-BELNR,&lt;/P&gt;&lt;P&gt;BUZEI TYPE BSAK-BUZEI,&lt;/P&gt;&lt;P&gt;BUDAT TYPE BSAK-BUDAT,&lt;/P&gt;&lt;P&gt;BLART TYPE BSAK-BLART,&lt;/P&gt;&lt;P&gt;DMBTR TYPE BSAK-DMBTR,&lt;/P&gt;&lt;P&gt;SGTXT TYPE BSAK-SGTXT,&lt;/P&gt;&lt;P&gt;AUGBL TYPE BSAK-AUGBL,&lt;/P&gt;&lt;P&gt;HKONT TYPE BSAK-HKONT,&lt;/P&gt;&lt;P&gt;END OF TYP_BSAK.&lt;/P&gt;&lt;P&gt;DATA : IT_BSAK TYPE STANDARD TABLE OF TYP_BSAK WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;WA_BSAK TYPE TYP_BSAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ STATEMENT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSIS INTO WA_BSIS.   -&amp;gt; I am getting data in wa_BSIs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE IT_BSAK INTO WA_BSAK  -&amp;gt; I am Getting record in IT_BSAK bu the same is not populated in WA_BSAK&lt;/P&gt;&lt;P&gt;   WITH KEY BUKRS = S_BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-SAPSYS    = 'PROBE'.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-BUKRS     = WA_BSAK-BUKRS.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-BUKRS     = WA_BSAK-BUKRS.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-BELNR     = WA_BSAK-BELNR.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-SGTXT     = WA_BSAK-SGTXT.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-BUDAT     = WA_BSAK-BUDAT.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-AUGBL     = WA_BSAK-AUGBL.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-LIFNR     = WA_LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-NAME1     = WA_LFA1-NAME1.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-STRAS     = WA_LFA1-STRAS.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-ORT01     = WA_LFA1-ORT01.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-REGIO     = WA_LFA1-REGIO.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-PSTLZ     = WA_LFA1-PSTLZ.&lt;/P&gt;&lt;P&gt;      WA_OUTPUT-STCD2     = WA_LFA1-STCD2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;APPEND WA_OUTPUT TO IT_OUTPUT.&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;Thanks and Regards&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 15:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998954#M1494963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-24T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998955#M1494964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is still a pretty basic question. Please press F1 on READ before posting here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 15:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998955#M1494964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-24T15:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998956#M1494965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i hope that S_BUKRS is a select option.. which is of type SIGN|OPTION|LOW|HIGH..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you statement &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with key BUKRS = S_BUKRS&lt;/STRONG&gt; is comparing like this &lt;STRONG&gt;'1000' = 'IEQ1000'&lt;/STRONG&gt;. and these defnitely are not the same... right!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what you need to do is pass a specfic BUKRS like S_BUKRS-LOW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;where BUKRS = S_BUKRS-LOW.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 15:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998956#M1494965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-24T15:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998957#M1494966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ TABLE IT_BSAK INTO WA_BSAK -&amp;gt; I am Getting record in IT_BSAK bu the same is not populated in WA_BSAK&lt;/P&gt;&lt;P&gt;WITH KEY BUKRS = S_BUKRS-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please be sure whether you will have more values in select options.&lt;/P&gt;&lt;P&gt;Else you will need to pass s_bukrs-HIGH as well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please de bug and read the H1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 15:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998957#M1494966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-24T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998958#M1494967</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;I hope You have use below code solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSIS INTO WA_BSIS&lt;/P&gt;&lt;P&gt;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gt;Regards&lt;/P&gt;&lt;P&gt;I.Muthukumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: I.Muthukumar on Jun 25, 2010 12:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 06:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998958#M1494967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-25T06:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998959#M1494968</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;I think you wanted to refer the bukrs value present in wa_bsis instead of s_bukrs, if it is the case refer the following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_BSIS INTO WA_BSIS. -&amp;gt; I am getting data in wa_BSIs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IT_BSAK INTO WA_BSAK -&amp;gt; I am Getting record in IT_BSAK bu the same is not populated in WA_BSAK&lt;/P&gt;&lt;P&gt;WITH KEY BUKRS = wa_BSIs-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-SAPSYS = 'PROBE'.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-BUKRS = WA_BSAK-BUKRS.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-BUKRS = WA_BSAK-BUKRS.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-BELNR = WA_BSAK-BELNR.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-SGTXT = WA_BSAK-SGTXT.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-BUDAT = WA_BSAK-BUDAT.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-AUGBL = WA_BSAK-AUGBL.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-LIFNR = WA_LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-NAME1 = WA_LFA1-NAME1.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-STRAS = WA_LFA1-STRAS.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-ORT01 = WA_LFA1-ORT01.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-REGIO = WA_LFA1-REGIO.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-PSTLZ = WA_LFA1-PSTLZ.&lt;/P&gt;&lt;P&gt;WA_OUTPUT-STCD2 = WA_LFA1-STCD2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;APPEND WA_OUTPUT TO IT_OUTPUT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Preetham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 10:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998959#M1494968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-25T10:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998960#M1494969</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;You can follow the following steps always,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_bsak. /* this should be on required fields to be easy for searching&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bsis into wa_bsis.&lt;/P&gt;&lt;P&gt;clear wa_bsak&lt;/P&gt;&lt;P&gt;read table it_bsak into wa_bsak with key bukrs = wa_bsis-bukrs binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;/* write your append statements when seach is successful.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear wa_bsis.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why are you using s_bukrs. If you clarify the requirement more, I will be able to guide you better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 11:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998960#M1494969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-25T11:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998961#M1494970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's about time everyone pressed F1 on READ. &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 13:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998961#M1494970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-25T13:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998962#M1494971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;read (v.)&lt;/STRONG&gt; to translate written text into meaningful ideas within one's own mind. People usually read to gain knowledge or to awaken their imagination. Sadly, the act of reading seems to have been "bred out" of the human race. People these days would much rather desensetize themselves with stupid rap noise and violent, pornographic, and otherwise unintelligent forms of media. If you are an ABAP developer and find it hard to read, do yourself a favor and get help. No offense! Reading is a great and powerful thing, and only by fully taking advantage of it can one open his or her mind to the possibilities of his or her own future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"urban dictionary" with one adjustment &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 13:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-issue/m-p/6998962#M1494971</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-06-25T13:54:22Z</dc:date>
    </item>
  </channel>
</rss>

