<?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: code related minor prob in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-related-minor-prob/m-p/5028625#M1169794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajdeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Partially understood your question, I think you are having some problem when you try to execute the third scenario of your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is some problem with the use of the Internal table 'IT_BKPF' obtained in the first query in using at the third scenario, I mean at the time of querying BSEG, then do it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Try to declare some other internal table with same fields except the data type for awkey.&lt;/P&gt;&lt;P&gt;2) Here in this new Internal table use the respective field's  data type which is present in the BSEG.&lt;/P&gt;&lt;P&gt;3) populate that new internal table before you execute the third select statement on BSEG.&lt;/P&gt;&lt;P&gt;4) This reduces your shordump due to incosistencies in the data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution assumed to be suitable if there is a short dump because of the inconsisten in the datatypes of the different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashikanth. D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Jan 2009 17:18:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-03T17:18:39Z</dc:date>
    <item>
      <title>code related minor prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-related-minor-prob/m-p/5028624#M1169793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;currently i am working on an alv grid report,&lt;/P&gt;&lt;P&gt;it will display from tables like : bkpf, bseg, lfa1, makt,ekbz.&lt;/P&gt;&lt;P&gt;etc ok&lt;/P&gt;&lt;P&gt;1.  i made select from &lt;STRONG&gt;bkpf&lt;/STRONG&gt; with date as input(bkpf-budat)&lt;/P&gt;&lt;P&gt;to fetch belnr, bldat, budat, xblnr,awkey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. them i ve to fetch data from &lt;STRONG&gt;ekbz&lt;/STRONG&gt; with date as input to fetch&lt;/P&gt;&lt;P&gt;ebeln, budat, belnr, bewtp( m or f).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. i select from bseg , for all entries in it_bkpf&lt;/P&gt;&lt;P&gt;where belnr = it_bkpf-belnr, &lt;/P&gt;&lt;P&gt;to fetch belnr, buzei,buzid( f or t), dmbtr, lifnr, matnr ok&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;my requirement is like that,&lt;/P&gt;&lt;P&gt;1. when it_bkpf-awkey1(which is truncated by excluding its last 4 digit) will match it_ekbz-belnr(bewtp = 'M'), and it will be &lt;STRONG&gt;sapinvoice no(field ekbz-belnr)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;i ve done it successfully,using  &lt;STRONG&gt;read table it_ekbz wirh key belnr = it_bkpf-awkey1&lt;/STRONG&gt; logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bt the other ekbz-belnr that dont matches with bkpf-awkey1 and ekbz-bewtp = 'F'.&lt;/P&gt;&lt;P&gt;sd be Grn No(ekbz-belnr), bt the fact is bkpf-akkey1 dont matches with ekbz-belnr,&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;mind that bkpf-gjahr = ekbz-ghajr wont applicable here&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;how can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 11:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-related-minor-prob/m-p/5028624#M1169793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-03T11:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: code related minor prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-related-minor-prob/m-p/5028625#M1169794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajdeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Partially understood your question, I think you are having some problem when you try to execute the third scenario of your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is some problem with the use of the Internal table 'IT_BKPF' obtained in the first query in using at the third scenario, I mean at the time of querying BSEG, then do it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Try to declare some other internal table with same fields except the data type for awkey.&lt;/P&gt;&lt;P&gt;2) Here in this new Internal table use the respective field's  data type which is present in the BSEG.&lt;/P&gt;&lt;P&gt;3) populate that new internal table before you execute the third select statement on BSEG.&lt;/P&gt;&lt;P&gt;4) This reduces your shordump due to incosistencies in the data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution assumed to be suitable if there is a short dump because of the inconsisten in the datatypes of the different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashikanth. D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 17:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-related-minor-prob/m-p/5028625#M1169794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-03T17:18:39Z</dc:date>
    </item>
  </channel>
</rss>

