<?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: Problem with MBLNR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106649#M982058</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;if u want latest record then sort the data based on fiscal year and then use delete adjacent duplicates statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 06:29:40 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2008-07-01T06:29:40Z</dc:date>
    <item>
      <title>Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106647#M982056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a~mblnr&lt;/P&gt;&lt;P&gt;         a~ebeln&lt;/P&gt;&lt;P&gt;         a~matnr&lt;/P&gt;&lt;P&gt;         a~menge&lt;/P&gt;&lt;P&gt;         a~bwtar&lt;/P&gt;&lt;P&gt;         a~meins&lt;/P&gt;&lt;P&gt;         a~werks      &lt;/P&gt;&lt;P&gt;   from mseg as a&lt;/P&gt;&lt;P&gt;   inner join mkpf as b&lt;/P&gt;&lt;P&gt;   on  a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr and&lt;/P&gt;&lt;P&gt;       a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;  into corresponding fields of table it_mseg_header&lt;/P&gt;&lt;P&gt;  where&lt;/P&gt;&lt;P&gt;  a~WERKS = p_werks&lt;/P&gt;&lt;P&gt;  and b~mblnr = s_mblnr&lt;/P&gt;&lt;P&gt;  and a~matnr  in s_matnr&lt;/P&gt;&lt;P&gt;  and a~BWART = '101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a plant,mblnr and matnr in the selection screen which are all mandatory in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above select query works fine in all the cases except when the same MBLNR gets repeated in two different fiscal years say 2005 and 2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a mblnr gets repeated in two different fiscal years it is behaving weirdly even thoug we have validated with the fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose,if I am running the report for a plant XYZ1 it is picking the data for the plant ABC1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;MBLNR-1234&lt;/P&gt;&lt;P&gt;Plant-ABC1&lt;/P&gt;&lt;P&gt;Fiscal year-2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MBLNR 1234&lt;/P&gt;&lt;P&gt;Plant-XYZ1&lt;/P&gt;&lt;P&gt;Fiscal year-2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is picking the 2005 data in the plant ABC1 instead of 2008 data in the plant XYZ1 even though we had validated with plant.Can anyone let me know where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106647#M982056</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-07-01T06:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106648#M982057</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;The internal table it_mseg_header is not contains field mjahr ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106648#M982057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T06:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106649#M982058</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;if u want latest record then sort the data based on fiscal year and then use delete adjacent duplicates statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106649#M982058</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-07-01T06:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106650#M982059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also faced this kind of issue , u need to pass MJAHR in this cases.No other way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106650#M982059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T06:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106651#M982060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;In where condition you given that &lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;a~WERKS = p_werks    &lt;/P&gt;&lt;P&gt;and b~mblnr = s_mblnr &amp;lt;------ It most probably select option .&lt;/P&gt;&lt;P&gt;and a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;and a~BWART = '101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please do it like this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a~WERKS = p_werks    &lt;/P&gt;&lt;P&gt;and b~mblnr in s_mblnr &lt;/P&gt;&lt;P&gt;and a~matnr in s_matnr&lt;/P&gt;&lt;P&gt;and a~BWART = '101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Subhankar Garani on Jul 1, 2008 8:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106651#M982060</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-07-01T06:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106652#M982061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gautam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MBLNR 1234&lt;/P&gt;&lt;P&gt;Plant ABC1&lt;/P&gt;&lt;P&gt;Fiscal year 2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MBLNR 1234&lt;/P&gt;&lt;P&gt;Plant XYZ1&lt;/P&gt;&lt;P&gt;Fiscal year 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen I gave plant as XYZ1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I had already given Plant in the where condition how come it is picking the data from plant ABC1.This is happening only when the MBLNR gets repeated in two diff fiscal years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Derez&lt;/P&gt;&lt;P&gt;I haven't taken fiscal year in the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106652#M982061</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-07-01T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106653#M982062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subhankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it is parameter only.&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 06:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106653#M982062</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-07-01T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MBLNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106654#M982063</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;Kiran, why you use table MKPF unless use its fields ?&lt;/P&gt;&lt;P&gt;Why not to do so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mblnr&lt;/P&gt;&lt;P&gt;ebeln&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;menge&lt;/P&gt;&lt;P&gt;bwtar&lt;/P&gt;&lt;P&gt;meins&lt;/P&gt;&lt;P&gt;werks&lt;/P&gt;&lt;P&gt;from mseg into corresponding fields of table it_mseg_header&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;WERKS = p_werks&lt;/P&gt;&lt;P&gt;and mblnr = s_mblnr&lt;/P&gt;&lt;P&gt;and matnr in s_matnr&lt;/P&gt;&lt;P&gt;and BWART = '101'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-mblnr/m-p/4106654#M982063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T07:15:12Z</dc:date>
    </item>
  </channel>
</rss>

