<?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: Need help... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767626#M331663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use function module &amp;lt;b&amp;gt;BAPI_MATERIAL_GET_DETAIL&amp;lt;/b&amp;gt; to get the details of a material.&lt;/P&gt;&lt;P&gt;This function module accepts only one material, so in your case you need loop for all materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another function module which gives material details is &amp;lt;b&amp;gt;SPP01_MATERIAL_DETAILS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 20:47:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-29T20:47:07Z</dc:date>
    <item>
      <title>Need help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767625#M331662</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;  Can any one tell me how to display data for different materials using a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie If i enter around 10 materials, then it should display the details of all the 10 materials using a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 20:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767625#M331662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T20:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767626#M331663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use function module &amp;lt;b&amp;gt;BAPI_MATERIAL_GET_DETAIL&amp;lt;/b&amp;gt; to get the details of a material.&lt;/P&gt;&lt;P&gt;This function module accepts only one material, so in your case you need loop for all materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another function module which gives material details is &amp;lt;b&amp;gt;SPP01_MATERIAL_DETAILS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 20:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767626#M331663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T20:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767627#M331664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinay,&lt;/P&gt;&lt;P&gt;    But in the function module BAPI_MATERIAL_GET_DETAIL it is displaying data for a single material but my question is how to display the data for more than 10 materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display the data for more than 10 materials?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for ur reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 20:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767627#M331664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T20:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767628#M331665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop the function module BAPI_MATERIAL_GET_DETAIL and in loop append the Material details to some internal table.  After coming out of the loop, the internal table has 10 materials and u can display them from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Shylesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 20:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767628#M331665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T20:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767629#M331666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shylesh,&lt;/P&gt;&lt;P&gt;   Can u provide me the code for the logic that you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raj Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 21:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767629#M331666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767630#M331667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ztest1 MESSAGE-ID z1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mara.&lt;/P&gt;&lt;P&gt;types: begin of t_matnr,&lt;/P&gt;&lt;P&gt;        matnr type matnr,&lt;/P&gt;&lt;P&gt;       end of t_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_matnr type t_matnr occurs 0.&lt;/P&gt;&lt;P&gt;data: w_matnr type t_matnr.&lt;/P&gt;&lt;P&gt;data: imat_gen type table   of BAPIMATDOA with header line.&lt;/P&gt;&lt;P&gt;data: imat_gen1 type table of BAPIMATDOA with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: p_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at p_matnr.&lt;/P&gt;&lt;P&gt;append p_matnr-low to it_matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_matnr into w_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      MATERIAL              = w_MATNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PLANT                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     VALUATIONAREA         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     VALUATIONTYPE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      MATERIAL_GENERAL_DATA = IMAT_GEN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        RETURN                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MATERIALPLANTDATA     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MATERIALVALUATIONDATA =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; imat_gen1 = imat_gen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  append imat_gen to imat_gen1.&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;Loop at imat_gen1.&lt;/P&gt;&lt;P&gt; write: imat_gen1-MATL_TYPE.&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;&lt;/P&gt;&lt;P&gt;Here, the Internal table imat_gen1 has the ten records.  This is an sample program. You have to change this as per your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shylesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 22:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/1767630#M331667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T22:14:39Z</dc:date>
    </item>
  </channel>
</rss>

