<?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: partial records  fetched in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439826#M1247627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are giving code and date in selection screen ,data related to them will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want data, if any field is empty then put a condition for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If not regio is initial.

loop at it_bseg into wa_bseg.

..................
...................

endloop.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 08:51:14 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2009-04-03T08:51:14Z</dc:date>
    <item>
      <title>partial records  fetched</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439824#M1247625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;my input&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. code (from bseg) &lt;/P&gt;&lt;P&gt;2. Date (bkpf&lt;/P&gt;&lt;P&gt;3. Regio ( kna1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below is the looping code, My Select stmts are proper such that the criteria gets&lt;/P&gt;&lt;P&gt;satisfied but when it goes inside the loop , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i have used&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select Bseg&lt;/P&gt;&lt;P&gt;select bkpf&lt;/P&gt;&lt;P&gt;select knal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what happens is if i give the input for code , date and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for regio which is not in that code and date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it selects in bkpf and bseg but not in kna1 since does not match&lt;/STRONG&gt;  till here its proper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but inside the loop it fetches the data for watever is satisfied in bkpf and bseg&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and does not bring value for kna1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it should not bring any value since wat i specified for regio is not satisfied &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie it partially shows the output ....&lt;STRONG&gt;but actually no data should be displayed in output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guru's suggest .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_bseg INTO wa_bseg WHERE kunnr &amp;lt;&amp;gt; ' '.&lt;/P&gt;&lt;P&gt;    READ TABLE it_kna1 INTO wa_kna1 WITH KEY kunnr = wa_bseg-kunnr .&lt;/P&gt;&lt;P&gt; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     wa_final-name1 = wa_kna1-name1.&lt;/P&gt;&lt;P&gt;     wa_final-mcod3 = wa_kna1-MCOD3.       &lt;/P&gt;&lt;P&gt;     wa_final-belnr = wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       READ TABLE it_bkpf INTO wa_bkpf WITH KEY belnr = wa_bseg-belnr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        wa_final-bldat = wa_bkpf-bldat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so onnnnn.......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;clear: wa_bseg, wa_bkpf, wa_kna1, wa_t005u, wa_vbrp, wa_konv, wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 08:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439824#M1247625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T08:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: partial records  fetched</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439825#M1247626</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;do selection screen validation for all the PARAMETERS in 'AT SELECTION-SCREEN ON FIELD XXXX...and display message if any thing fails...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear...&lt;/P&gt;&lt;P&gt;Let me know for any clarifications...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 08:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439825#M1247626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: partial records  fetched</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439826#M1247627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are giving code and date in selection screen ,data related to them will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want data, if any field is empty then put a condition for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If not regio is initial.

loop at it_bseg into wa_bseg.

..................
...................

endloop.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 08:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439826#M1247627</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-04-03T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: partial records  fetched</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439827#M1247628</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;thank u for the reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i give so....even if there is value in regio field , its taking as blank and not showing data in the output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 09:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439827#M1247628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T09:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: partial records  fetched</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439828#M1247629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either check for SY-SUBRC after each select statement or  check &lt;/P&gt;&lt;P&gt;if the above internal table is INITIAL.&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;select BSEG.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select BKPF.&lt;/P&gt;&lt;P&gt;if sy-subrc =0 .&lt;/P&gt;&lt;P&gt;select KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BSEG&lt;/P&gt;&lt;P&gt;if (internal table BSEG) is NOT INITIAL.&lt;/P&gt;&lt;P&gt;select BKPF.&lt;/P&gt;&lt;P&gt;if (internal table BKPF) is NOT INITIAL.&lt;/P&gt;&lt;P&gt;select KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also put the validations as required on the selection screen fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 09:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/partial-records-fetched/m-p/5439828#M1247629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T09:26:39Z</dc:date>
    </item>
  </channel>
</rss>

