<?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: Material inventory function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228614#M138611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this FM &amp;lt;b&amp;gt;MB_PHYSICAL_INVENTORY&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Perhaps it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2006 14:44:37 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2006-03-15T14:44:37Z</dc:date>
    <item>
      <title>Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228607#M138604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;I have to create a z-program that fill all screen of transaction MI02 from an internal table. So I create a material inventory document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I proceded? Is better calling transaction MI02 or exists a funcion module that fill all item of materila inventory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 14:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228607#M138604</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-14T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228608#M138605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI gILBERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE BAPI TO FILL THE MATERIAL INVENTORY DATA FROM INTERNAL TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE BAPI IS&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;BAPI_GOODSMVT_CREATE&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFER THE SAMPLE PROGRAM IN &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm&lt;/A&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;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 14:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228608#M138605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228609#M138606</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 BAPI_MATPHYSINV_CREATE_MULT or MB_PHYSICAL_INVENTORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;James Gaddis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2006 14:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228609#M138606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-14T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228610#M138607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for BAPI name... but I don't know if are the right FM. I have to implement the functionality of the MI31 transaction. I have to create a inventory document, I have to insert the quantities of materials and I have to confirm it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What (one or more) FM I have to use?&lt;/P&gt;&lt;P&gt;All the data of material code and quantity are in an internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 14:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228610#M138607</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-15T14:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228611#M138608</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 to use this Fm 'MB_SELECT_MAT_PHYSINV_STD'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 14:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228611#M138608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228612#M138609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this FM I didn't find where insert the quantity of material that I inventored&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 14:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228612#M138609</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-15T14:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228613#M138610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I misunderstood your question.&lt;/P&gt;&lt;P&gt;Actually that FM is to get the data based on selection screen similar to MI31 transaction.&lt;/P&gt;&lt;P&gt;So you already got data to post in mi02 transaction, then why dont you use BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 14:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228613#M138610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228614#M138611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this FM &amp;lt;b&amp;gt;MB_PHYSICAL_INVENTORY&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Perhaps it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 14:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228614#M138611</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-03-15T14:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228615#M138612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seem good. Where can I find a documentation on the use of MB_PHYSICAL_INVENTORY F.M.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228615#M138612</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-15T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228616#M138613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at SAP Notes &amp;lt;b&amp;gt;314208&amp;lt;/b&amp;gt; or you can browse SAP Notes with search term 'MB_PHYSICAL_INVENTORY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 15:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228616#M138613</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-03-15T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228617#M138614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gilbert and Ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a point of emphasis, MB_PHYSICAL_INVENTORY was suggested by me in my March 14 reply above.  Hope it works for you Gilbert.  Let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- James Gaddis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 16:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228617#M138614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-15T16:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228618#M138615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. What is BDC?&lt;/P&gt;&lt;P&gt;My work is:&lt;/P&gt;&lt;P&gt;1) I have a file excel with material inventory (code and quantity)&lt;/P&gt;&lt;P&gt;2) I have to create a program that load data file in an internal table (ok)&lt;/P&gt;&lt;P&gt;3) I have to fill automatic the fields of transaction MI31 with werks, lgort and other header data&lt;/P&gt;&lt;P&gt;4) I have to fill automatic the fields (item) with code and quantity of material inventory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 08:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228618#M138615</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-17T08:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228619#M138616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gilbert&lt;/P&gt;&lt;P&gt; you can use BDC for that you have to record the transactiion in SHDB by entering the required fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this you can do this in two ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one is convert the excel file into intetnal table and the other the save the excel file as tab delimited text file and upload it into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am posting the sample code for the two methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXCEL:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  UPLOAD_EXCEL no standard page heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data Declaration&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;data: itab like alsmex_tabline occurs 0 with header line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Has the following format:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            Row number   | Colum Number   |   Value&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            ---------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i.e.     1                 1             Name1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              2                 1             Joe&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: Begin of t_record,&lt;/P&gt;&lt;P&gt;    name1 like itab-value,&lt;/P&gt;&lt;P&gt;    name2 like itab-value,&lt;/P&gt;&lt;P&gt;    age   like itab-value,&lt;/P&gt;&lt;P&gt;    End of t_record.&lt;/P&gt;&lt;P&gt;DATA: it_record type standard table of t_record initial size 0,&lt;/P&gt;&lt;P&gt;      wa_record type t_record.&lt;/P&gt;&lt;P&gt;DATA: gd_currentrow type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection Screen Declaration&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;PARAMETER p_infile like rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START OF SELECTION&lt;/P&gt;&lt;P&gt; call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            filename                = p_infile&lt;/P&gt;&lt;P&gt;            i_begin_col             = '1'&lt;/P&gt;&lt;P&gt;            i_begin_row             = '2'  "Do not require headings&lt;/P&gt;&lt;P&gt;            i_end_col               = '14'&lt;/P&gt;&lt;P&gt;            i_end_row               = '31'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            intern                  = itab&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;            upload_ole              = 2&lt;/P&gt;&lt;P&gt;            others                  = 3.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e010(zz) with text-001. "Problem uploading Excel Spreadsheet&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort table by rows and colums&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort itab by row col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get first row retrieved&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table itab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set first row retrieved to current row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_currentrow = itab-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Reset values for next row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if itab-row ne gd_currentrow.&lt;/P&gt;&lt;P&gt;      append wa_record to it_record.&lt;/P&gt;&lt;P&gt;      clear wa_record.&lt;/P&gt;&lt;P&gt;      gd_currentrow = itab-row.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case itab-col.&lt;/P&gt;&lt;P&gt;      when '0001'.                              "First name&lt;/P&gt;&lt;P&gt;        wa_record-name1 = itab-value.&lt;/P&gt;&lt;P&gt;      when '0002'.                              "Surname&lt;/P&gt;&lt;P&gt;        wa_record-name2 = itab-value.&lt;/P&gt;&lt;P&gt;      when '0003'.                              "Age&lt;/P&gt;&lt;P&gt;        wa_record-age   = itab-value.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  append wa_record to it_record.&lt;/P&gt;&lt;P&gt;*!! Excel data is now contained within the internal table IT_RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display report data for illustration purposes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_record into wa_record.&lt;/P&gt;&lt;P&gt;    write:/     sy-vline,&lt;/P&gt;&lt;P&gt;           (10) wa_record-name1, sy-vline,&lt;/P&gt;&lt;P&gt;           (10) wa_record-name2, sy-vline,&lt;/P&gt;&lt;P&gt;           (10) wa_record-age, sy-vline.&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;TAB-DELIMITED:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZBDCAPPL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: V_DATA(132) lower case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of record OCCURS 0,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MATNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MATNR_001(018),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MBRSH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MBRSH_002(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MTART&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MTART_003(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: XFELD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        KZSEL_01_004(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MAKTX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MAKTX_005(040),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MEINS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MEINS_006(003),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: MATKL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        MATKL_007(009),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: SPART&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SPART_008(002),&lt;/P&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = 'D:\ABAP\material.txt'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&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;  CHECK_BOM                     = ' '&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                      = RECORD&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&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;kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 08:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228619#M138616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T08:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228620#M138617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you got the data in internal table from excel file &lt;/P&gt;&lt;P&gt;with lgort,werks,quantity etc.&lt;/P&gt;&lt;P&gt;And with this data you want to create Material Inventory with transaction MI01 right?&lt;/P&gt;&lt;P&gt;If this is correct then you have to record the transaction MI01 using transaction SHDB.Then u can loop throug your internal table and post your data to transaction MI01, so that it creates Material inventory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 09:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228620#M138617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228621#M138618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but where I insert the quantities of my inventory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228621#M138618</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-17T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228622#M138619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi glibert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For inserting quantities you have to use transaction MI10 not mi01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  PERFORM open_group.
  i = 0.
  LOOP AT lt_header WHERE chbx1 = 'X'.
    CONCATENATE lt_header-datum1+6(2) lt_header-datum1+4(2)
 lt_header-datum1(4) INTO d2
     SEPARATED BY '.'.
    CONCATENATE lt_header-datum+6(2) lt_header-datum+4(2)
 lt_header-datum(4) INTO d1
    SEPARATED BY '.'.

*    MOVE itab-datum1 TO d2.
*    MOVE itab-datum  TO d1.
    PERFORM bdc_dynpro      USING 'SAPMM07I' '0700'.
    PERFORM bdc_field       USING 'RM07I-ZLDAT'
                                   d1.
    PERFORM bdc_field       USING 'RM07I-BLDAT'
                                   d2.
    PERFORM bdc_field       USING 'IKPF-WERKS'
                                   lt_header-werks.
    PERFORM bdc_field       USING 'IKPF-LGORT'
                                   lt_header-lgort.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '/00'.

    LOOP AT lt_item WHERE status IS initial.
      IF i = maxpo.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=BU'.
        PERFORM bdc_transaction USING 'MI10'.
        i = 0.

        PERFORM bdc_dynpro      USING 'SAPMM07I' '0700'.
        PERFORM bdc_field       USING 'RM07I-ZLDAT'
                                       d1.
        PERFORM bdc_field       USING 'RM07I-BLDAT'
                                       d2.
        PERFORM bdc_field       USING 'IKPF-WERKS'
                                       lt_header-werks.
        PERFORM bdc_field       USING 'IKPF-LGORT'
                                       lt_header-lgort.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.

*        CONTINUE.
      ENDIF.

      PERFORM bdc_dynpro      USING 'SAPMM07I' '0731'.
*    PERFORM bdc_field       USING 'BDC_OKCODE'
*                                  '/00'.
      PERFORM bdc_field       USING 'ISEG-MATNR(01)'
                                     lt_item-matnr.
      PERFORM bdc_field       USING 'ISEG-CHARG(01)'
                                    lt_item-charg.
      PERFORM bdc_field       USING 'ISEG-BSTAR(01)'
                                    lt_item-bstar.
      PERFORM bdc_field       USING 'ISEG-ERFMG(01)'---&amp;gt; Quantity
                                     '0'.

      PERFORM bdc_field       USING 'ISEG-XNULL(01)'
                                    lt_item-xnull.
      i = i + 1.
    ENDLOOP.
*    PERFORM bdc_field       USING 'BDC_OKCODE'
*                                  '/00'.
    IF i &amp;lt; maxpo.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BU'.
    ENDIF.
    PERFORM bdc_transaction USING 'MI10'.
  ENDLOOP.
  PERFORM close_group.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above code for zero stock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228622#M138619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T10:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228623#M138620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use BAPI_PHYSINV_CREATE_ITEMS to create inventory document.&lt;/P&gt;&lt;P&gt;I fill import parameter HEAD with werks,lgort and dates.&lt;/P&gt;&lt;P&gt;I fill table ITEMS with 2 material codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After BAPI, return say me that is all ok and "inventory document 100000080 is create".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I chack it on MI03 transaction, but it say me that "100000080 document don't exits"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why!?!?!?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 14:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228623#M138620</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-17T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228624#M138621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the BAPI have you included&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will PERFROM the COMMIT_WORK for the database&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, 17 Mar 2006 15:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228624#M138621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T15:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228625#M138622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;It'a all right!&lt;/P&gt;&lt;P&gt;Mondoy I try to use BAPI_MATPHYSINV_COUNT to insert material quantity...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 15:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228625#M138622</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-17T15:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Material inventory function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228626#M138623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With BAPI BAPI_MATPHYSINV_CREATE and after COMMIT, I created the inventory document 100000090 on fiscal year 2006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction MI02 I can see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I try to use BAPI_MATPHYSINV_COUNT, with parameters&lt;/P&gt;&lt;P&gt;physinventory             = '100000090'&lt;/P&gt;&lt;P&gt;fiscalyear                = '2006'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it return me this error:&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;the invetory document 100000090 doesn't exist in fiscal year 2006.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2006 09:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-inventory-function-module/m-p/1228626#M138623</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-03-20T09:29:01Z</dc:date>
    </item>
  </channel>
</rss>

