<?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 to extract MM data... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216500#M134998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This weblog may be useful&lt;/P&gt;&lt;P&gt;/people/ted.teng/blog/2005/12/29/use-sql2005-to-connect-and-present-sap-on-sharepoint-business-scorecard-manager-150-part-iii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2006 04:27:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-02T04:27:00Z</dc:date>
    <item>
      <title>Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216499#M134997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody provide me with a sample code that extracts data from mara, makt, marc and outputs the abap report in a csv format. Then i need to upload it to the App. Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how can i get long description(Detailed Description of the Item), this I need in regards to the purchase order text.  I think I need to use Func. module Read_text, but I don't really know how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;eddie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: helpful answers will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2024 18:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216499#M134997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-03T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216500#M134998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This weblog may be useful&lt;/P&gt;&lt;P&gt;/people/ted.teng/blog/2005/12/29/use-sql2005-to-connect-and-present-sap-on-sharepoint-business-scorecard-manager-150-part-iii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 04:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216500#M134998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T04:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216501#M134999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_DISPLAY&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_GET_DETAIL&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_GETLIST&lt;/P&gt;&lt;P&gt;BAPI_PO_GETDETAIL&lt;/P&gt;&lt;P&gt;BAPI_PO_GETITEMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give u all details including long text.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 04:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216501#M134999</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-03-02T04:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216502#M135000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I need to do in terms of extracting MM data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently got an enhancement which deals with Catalog Options. This enhancement deals with an extraction report that will sit on the App. Server so that it can be taken from there and transferred to SRM.&lt;/P&gt;&lt;P&gt;I need to create a CSV file. I got a list of the following fields:&lt;/P&gt;&lt;P&gt;/CCM/ORDER_UNIT, &lt;/P&gt;&lt;P&gt;/CCM/PRICE, &lt;/P&gt;&lt;P&gt;/CCM/PRODUCT_GROUP, &lt;/P&gt;&lt;P&gt;/CCM/PRODUCT_ID, &lt;/P&gt;&lt;P&gt;/CCM/SHORT DESCRIPTION, &lt;/P&gt;&lt;P&gt;/CCM/BASE_UOM, &lt;/P&gt;&lt;P&gt;/CCM/LEAD_TIME, &lt;/P&gt;&lt;P&gt;/CCM/LONG_DESCRIPTION, &lt;/P&gt;&lt;P&gt;/CCM/MNFCTR_ID, &lt;/P&gt;&lt;P&gt;/CCM/MNFCTR_PART_NO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am told to get these fields out of Material Master tables. &amp;lt;b&amp;gt;I need to do an extract from R/3.&amp;lt;/b&amp;gt; The material types used are: &amp;lt;b&amp;gt;HAWA and NLAG&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;I'll be loading the deltas.&amp;lt;/b&amp;gt;Plus I need to set flags like deletion flags, update and create as well to keep track of materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to these fields, I also need a few where the values will be generated programatically. For example, there should be a PICTURE field where the value is a fixed URL, followed by the material ID, followed by a ".jpg" something like this: &amp;lt;b&amp;gt;www.yahoo.com/pictures/xyzpdq.jpg&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Category ID which will be of the form material ID followed by a "#" and a string: &amp;lt;b&amp;gt;xyzpdq#abcd06&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this data needs to be output in CSV format and this report needs to sit on the App. Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me out? I urgently need to know the process flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: Helpful answers will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 17:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216502#M135000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-03T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216503#M135001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi EDDIE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you got finished getting the details from the tables and store it in internal table. then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: v_data(132) like dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset v_data for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move itab to v_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset v_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group.&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;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 17:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216503#M135001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-03T17:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216504#M135002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harikishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, the process makes sense. But my question is: How would I generate the fields programatically, meaning, the URL and Category ID. They would have no source where the data would be coming from. AND should I make another internal table for them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, should I use BAPIs to get all this data or selection statements to extract this data? What would you recommend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eddie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2006 23:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216504#M135002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-03T23:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216505#M135003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi eddie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to use BAPI which are listed by vinod which will give you the details of the material.&lt;/P&gt;&lt;P&gt;then for the url and category you have to do it programarically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a internal table with material if , url and category id. then loop through the material detaisl internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at mat_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_table-matnr = mat-detail-matnr.&lt;/P&gt;&lt;P&gt;concatenate url_string '/' mat_detail-matnr '.jpg' into new_table-url.&lt;/P&gt;&lt;P&gt;concatenate mat_detail '#' 'abcded' into new_table-catid.&lt;/P&gt;&lt;P&gt;append new_table.&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;now you use this internal table.&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;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 02:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216505#M135003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-04T02:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216506#M135004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harikishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just wanted to recall the process to make it all clear for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i'll be getting all the material details from the BAPI and storing it in an internal table matl_detail. Then I will make another internal table new_table which will include mara-matnr also. i kinda don't get the part where u say "if url and category id". url and category is not coming from matl_detail right? and how should i declare url and category id in new_table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. I really appreciate ur help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eddie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2006 05:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216506#M135004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-05T05:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216507#M135005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: url(1000) ,&lt;/P&gt;&lt;P&gt;      catid(50) ,&lt;/P&gt;&lt;P&gt;      temp_dat(3000) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset v_data for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;clear temp_data .&lt;/P&gt;&lt;P&gt;concatenate 'http://yahoo.com/pictures/' itab-materialid '.jpg' into url .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate itab-materialid '#' 'xyzpdq#abcd06' into catid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate itab-field1 itab-field2 itab-field url catid into temp_data separated by ',' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer temp_data to v_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset v_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2006 05:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216507#M135005</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-05T05:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code to extract MM data...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216508#M135006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all. yes raja, thats what i was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you all for your help. Appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eddie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 00:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-extract-mm-data/m-p/1216508#M135006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T00:48:19Z</dc:date>
    </item>
  </channel>
</rss>

