<?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 Function module to upload  material consumption data from flat file. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849637#M360067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any function module/BAPI to upload the flat file for material consumption?&lt;/P&gt;&lt;P&gt;The structure of flat file contains MATNR,WERKS,DATUM,PERKZ,GSVBR,UNVBR as input fields.&lt;/P&gt;&lt;P&gt;Data to be uploade for consumption Tcode : MM02 -&amp;gt; mrp view1 -&amp;gt; additional data&lt;/P&gt;&lt;P&gt;-&amp;gt;check the consumption data.&lt;/P&gt;&lt;P&gt;I have FM mb_update_material_consumption as option but it is not solving purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 13:10:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-16T13:10:22Z</dc:date>
    <item>
      <title>Function module to upload  material consumption data from flat file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849637#M360067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any function module/BAPI to upload the flat file for material consumption?&lt;/P&gt;&lt;P&gt;The structure of flat file contains MATNR,WERKS,DATUM,PERKZ,GSVBR,UNVBR as input fields.&lt;/P&gt;&lt;P&gt;Data to be uploade for consumption Tcode : MM02 -&amp;gt; mrp view1 -&amp;gt; additional data&lt;/P&gt;&lt;P&gt;-&amp;gt;check the consumption data.&lt;/P&gt;&lt;P&gt;I have FM mb_update_material_consumption as option but it is not solving purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 13:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849637#M360067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T13:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload  material consumption data from flat file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849638#M360068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload a flat file(say an excel sheet) with all those fields u mentioned u can use the function module: 'GUI_UPLOAD'. &lt;/P&gt;&lt;P&gt;this shud work. coz i've used this Func mod to upload my excel file for a BDC report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to call the function module,i did it the follwing way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;     filename                     = w_file1&amp;lt;i&amp;gt;(this is the flat file name)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;     filetype                       =  ASC (for ascii values)&lt;/P&gt;&lt;P&gt;     has_field_separator     = '#'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH      =  0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE          = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR           = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT          = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = it_transfer&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     file_open_error                = 1&lt;/P&gt;&lt;P&gt;     file_read_error                 = 2&lt;/P&gt;&lt;P&gt;     no_batch                        = 3&lt;/P&gt;&lt;P&gt;     gui_refuse_filetransfer      = 4&lt;/P&gt;&lt;P&gt;     invalid_type                    = 5&lt;/P&gt;&lt;P&gt;     no_authority                   = 6&lt;/P&gt;&lt;P&gt;     unknown_error                = 7&lt;/P&gt;&lt;P&gt;     bad_data_format             = 8&lt;/P&gt;&lt;P&gt;     header_not_allowed         = 9&lt;/P&gt;&lt;P&gt;     separator_not_allowed     = 10&lt;/P&gt;&lt;P&gt;     header_too_long             = 11&lt;/P&gt;&lt;P&gt;     unknown_dp_error           = 12&lt;/P&gt;&lt;P&gt;     access_denied                = 13&lt;/P&gt;&lt;P&gt;     dp_out_of_memory          = 14&lt;/P&gt;&lt;P&gt;     disk_full                         = 15&lt;/P&gt;&lt;P&gt;     dp_timeout                     = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this. if useful,reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 04:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849638#M360068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T04:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload  material consumption data from flat file.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849639#M360069</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;Try using the BAPI BAPI_MATERIAL_SAVEDATA ..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 04:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-material-consumption-data-from-flat-file/m-p/1849639#M360069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T04:36:03Z</dc:date>
    </item>
  </channel>
</rss>

