<?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: BAPI_GOODSMVT_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278997#M495999</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;  there are a lot of threads with sample code related to your question...pl search the forum&lt;/P&gt;&lt;P&gt;&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;i believe gm_code should be 05 (Other goods receipts)...if manually done, then in what txn. code, it would be done, cross check this with the following or GMCODE Table T158G and give the gm_code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01 - MB01 - Goods Receipts for Purchase Order&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     02 - MB31 - Goods Receipts for Prod Order&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     03 - MB1A - Goods Issue&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     04 - MB1B - Transfer Posting&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     05 - MB1C - Enter Other Goods Receipt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 12:20:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-21T12:20:03Z</dc:date>
    <item>
      <title>BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278995#M495997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experrts,&lt;/P&gt;&lt;P&gt;I want to post a GR from workorder using above mentioned bapi. can anyone suggest me, which movement code i have to use and what are the mandatory values i have to pass to post the document sucessfully. If possible give me a example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards ,&lt;/P&gt;&lt;P&gt;James ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valuable answers will be rewarded .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 12:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278995#M495997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278996#M495998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some sample code from one of my programs, which does a 551 movement type. This should get you started. Just check the RETURN table for messages, they should tell you what you are missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structures for BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: gm_header  type bapi2017_gm_head_01.&lt;/P&gt;&lt;P&gt;  data: gm_code    type bapi2017_gm_code.&lt;/P&gt;&lt;P&gt;  data: gm_headret type bapi2017_gm_head_ret.&lt;/P&gt;&lt;P&gt;  data: gm_item    type table of&lt;/P&gt;&lt;P&gt;                   bapi2017_gm_item_create with header line.&lt;/P&gt;&lt;P&gt;  data: gm_return  type bapiret2 occurs 0.&lt;/P&gt;&lt;P&gt;  data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear: gm_return, gm_retmtd. refresh gm_return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setup BAPI header data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gm_header-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;  gm_header-doc_date   = sy-datum.&lt;/P&gt;&lt;P&gt;  gm_code-gm_code      = '06'.                              " MB11&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write 551 movement to table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear gm_item.&lt;/P&gt;&lt;P&gt;  move '551'        to gm_item-move_type     .&lt;/P&gt;&lt;P&gt;  move '000000000040001234' to gm_item-material.&lt;/P&gt;&lt;P&gt;  move '1'        to gm_item-entry_qnt.&lt;/P&gt;&lt;P&gt;  move 'EA'       to gm_item-entry_uom.&lt;/P&gt;&lt;P&gt;  move '0004'     to gm_item-plant.&lt;/P&gt;&lt;P&gt;  move '4000'     to gm_item-stge_loc.&lt;/P&gt;&lt;P&gt;  move '201'      to gm_item-move_reas.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Determine cost center per plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  case xresb-werks.&lt;/P&gt;&lt;P&gt;    when '0004'.&lt;/P&gt;&lt;P&gt;      move '0000041430' to gm_item-costcenter.&lt;/P&gt;&lt;P&gt;    when '0006'.&lt;/P&gt;&lt;P&gt;      move '0000041630' to gm_item-costcenter.&lt;/P&gt;&lt;P&gt;    when '0007'.&lt;/P&gt;&lt;P&gt;      move '0000041731' to gm_item-costcenter.&lt;/P&gt;&lt;P&gt;    when '0008'.&lt;/P&gt;&lt;P&gt;      move '0000041830' to gm_item-costcenter.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  append gm_item.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call goods movement BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            goodsmvt_header  = gm_header&lt;/P&gt;&lt;P&gt;            goodsmvt_code    = gm_code&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            goodsmvt_headret = gm_headret&lt;/P&gt;&lt;P&gt;            materialdocument = gm_retmtd&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            goodsmvt_item    = gm_item&lt;/P&gt;&lt;P&gt;            return           = gm_return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            wait = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 12:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278996#M495998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278997#M495999</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;  there are a lot of threads with sample code related to your question...pl search the forum&lt;/P&gt;&lt;P&gt;&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;i believe gm_code should be 05 (Other goods receipts)...if manually done, then in what txn. code, it would be done, cross check this with the following or GMCODE Table T158G and give the gm_code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01 - MB01 - Goods Receipts for Purchase Order&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     02 - MB31 - Goods Receipts for Prod Order&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     03 - MB1A - Goods Issue&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     04 - MB1B - Transfer Posting&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     05 - MB1C - Enter Other Goods Receipt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 12:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278997#M495999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T12:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278998#M496000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Movment type as 101 ,I think it will work for Work order as well ..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 12:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2278998#M496000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T12:22:42Z</dc:date>
    </item>
  </channel>
</rss>

