<?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: Batch for a material in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468093#M1743264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bastin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I tried this query and loop, But it is not fetching....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 09:56:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-06T09:56:13Z</dc:date>
    <item>
      <title>Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468091#M1743262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is sam here and i have a prob while printing a smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to display material number and also the relevant batch for the material. I have taken batch from MCHB table.&lt;/P&gt;&lt;P&gt;The problem is for a material there are one and more than one batches. If there are more than one batch for the material, then iam able to pick only the first or last batch. How can i pick all the batches which are relevent to that material&amp;nbsp; with the condition where unrestricted stock is more than zero "clabs &amp;gt; '0'.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468091#M1743262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-06T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468092#M1743263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt;"&gt;Dear &lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" href="https://answers.sap.com/people/samuel.dennis" id="jive-59556844472379741220676" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;Samuel Dennis&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt;"&gt;y can't u use select statement and loop here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt;"&gt;see the below code for your reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt;"&gt;&lt;SPAN class="L0S52"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;it_mchb &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;mchb &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'trebuchet ms', geneva; font-size: 10pt;"&gt;&lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;mchb &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;CORRESPONDING &lt;SPAN class="L0S52"&gt;FIELDS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_mchb &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;p_matnr &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;clabs &amp;gt; &lt;SPAN class="L0S33"&gt;'0'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 10pt; font-family: 'trebuchet ms', geneva;"&gt;loop at it_mchb into wa_mchb&amp;nbsp;&amp;nbsp; . " pass this to main window or whatever it is,based on ur requirement,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 10pt; font-family: 'trebuchet ms', geneva;"&gt;endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 10pt; font-family: 'trebuchet ms', geneva;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;Bastin.G&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468092#M1743263</guid>
      <dc:creator>bastinvinoth</dc:creator>
      <dc:date>2013-05-06T09:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468093#M1743264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bastin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I tried this query and loop, But it is not fetching....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468093#M1743264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-06T09:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468094#M1743265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;STRONG style="font-family: 'trebuchet ms', geneva; background-color: #ffffff; color: #333333;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/people/samuel.dennis" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Samuel Dennis&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not fetching ? really&lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1434/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; in my case here its working fine&lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1434/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fm &lt;STRONG&gt;CONVERSION_EXIT_MATN1_INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;before select query ,,pass your material number to that fm and then pass to select query.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let me know if any issues.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bastin.G&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 10:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468094#M1743265</guid>
      <dc:creator>bastinvinoth</dc:creator>
      <dc:date>2013-05-06T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468095#M1743266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel ,&lt;/P&gt;&lt;P&gt;You are using table or templates ?&lt;/P&gt;&lt;P&gt;If using Table then within data tab,do not forget to write it_tab &amp;amp; wa_tab (your table name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gourav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 10:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468095#M1743266</guid>
      <dc:creator>gouravkumar64</dc:creator>
      <dc:date>2013-05-06T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468096#M1743267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly look below code, if I am wrong somewhere then plz revert back on this post..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt;: it_mchb &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; mchb &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;HEADER&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;LINE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; * &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; mchb &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&lt;/SPAN&gt; CORRESPONDING &lt;SPAN class="L1S52"&gt;FIELDS&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; it_mchb &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; matnr = p_matnr &lt;SPAN class="L1S52"&gt;AND&lt;/SPAN&gt; clabs &amp;gt; &lt;SPAN class="L1S33"&gt;'0'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;SORT&lt;/SPAN&gt; it_mchb &lt;SPAN class="L1S52"&gt;BY&lt;/SPAN&gt; matnr year&amp;nbsp; &lt;SPAN class="L1S52"&gt;ASCENDING&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S31"&gt;" for getting first batch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S31"&gt;* or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S31"&gt;*SORT it_mchb BY&amp;nbsp; matnr year DESCENDING.&amp;nbsp;&amp;nbsp; " for getting last batch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;LOOP&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;AT&lt;/SPAN&gt; it_mchb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;AT&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;NEW&lt;/SPAN&gt; matnr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "here you fatch your batch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDAT&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;ENDLOOP&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks / Himanshu Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 11:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468096#M1743267</guid>
      <dc:creator>himanshu_gupta13</dc:creator>
      <dc:date>2013-05-06T11:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468097#M1743268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 03:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468097#M1743268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-07T03:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468098#M1743269</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;&amp;nbsp;&amp;nbsp; I have i have given the internal table name also... but still not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 03:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468098#M1743269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-07T03:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch for a material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468099#M1743270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bastin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The issue has been solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 05:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-for-a-material/m-p/9468099#M1743270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-20T05:43:28Z</dc:date>
    </item>
  </channel>
</rss>

