<?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 mov 309 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012804#M79268</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;I'm not sure about movement type 309, I can explain how the BAPI behaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill the header details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    gt_header-pstng_date = g_date.&lt;/P&gt;&lt;P&gt;    gt_header-header_txt = gt_upload-bktxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*item details&lt;/P&gt;&lt;P&gt;    gt_item-material = gt_upload-matnr.&lt;/P&gt;&lt;P&gt;    gt_item-plant  = gt_upload-werks.&lt;/P&gt;&lt;P&gt;    gt_item-stge_loc = gt_upload-lgort.&lt;/P&gt;&lt;P&gt;    gt_item-move_type = '201'.&lt;/P&gt;&lt;P&gt;    gt_item-costcenter = gt_upload-kostl.&lt;/P&gt;&lt;P&gt;    gt_item-gr_rcpt = gt_upload-kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement code&lt;/P&gt;&lt;P&gt;   gt_code-gm_code ='03'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. GM_Code 01: Goods receipt for purchase order&lt;/P&gt;&lt;P&gt;2. GM_Code 02: Goods receipt for production order&lt;/P&gt;&lt;P&gt;3. GM_Code 03: Goods issue&lt;/P&gt;&lt;P&gt;4. GM_Code 04: Transfer posting&lt;/P&gt;&lt;P&gt;5. GM_Code 05: Other goods receipts&lt;/P&gt;&lt;P&gt;6. GM_Code 06: Reversal of goods movements&lt;/P&gt;&lt;P&gt;7. GM_Code 07: Subsequent adjustment to a subcontract order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      goodsmvt_header       = gt_header&lt;/P&gt;&lt;P&gt;      goodsmvt_code         = gt_code&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      goodsmvt_item         = gt_item&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     goodsmvt_serialnumber = gt_sno&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      return                = gt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2005 14:32:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-08T14:32:19Z</dc:date>
    <item>
      <title>BAPI_GOODSMVT_CREATE mov 309</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012802#M79266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i really need help on this. I'm trying to perform a 309 movement (from one good or material to another) and i have no idea on how to do this with BAPI_GOODSMVT_CREATE since it only receives as parameters a header, the movement, and that table of items on wich the movement will be performed, but in 309 i need the goods or materials to be moved to another specific good or material and i don't know how to tell that to the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 14:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012802#M79266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-08T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE mov 309</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012803#M79267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

* Structures for BAPI
data: goodsmvt_header   like bapi2017_gm_head_01.
data: goodsmvt_code like bapi2017_gm_code.
data: goodsmvt_headret like bapi2017_gm_head_ret.
data: goodsmvt_item like bapi2017_gm_item_create
                       occurs 1 with header line.
data: return like bapiret2 occurs 0.


 goodsmvt_header-pstng_date = sy-datum.
  goodsmvt_code-gm_code = '06'.                             " MB11


* Add "309" movement to table.
  clear goodsmvt_item.

  move '309' to goodsmvt_item-move_type     .
  move from_material  to goodsmvt_item-material.
  move to_material   to goodsmvt_item-move_mat.


  move menge  to goodsmvt_item-entry_qnt.
  move meins  to goodsmvt_item-entry_uom.

  move from_plant to goodsmvt_item-plant.
  move to_plant to goodsmvt_item-move_plant.  



  move from_location to goodsmvt_item-stge_loc.
  move to_location to goodsmvt_item-move_stloc.
  append goodsmvt_item.


  call function 'BAPI_GOODSMVT_CREATE'
       exporting
            goodsmvt_header  = goodsmvt_header
            goodsmvt_code    = goodsmvt_code
       importing
            goodsmvt_headret = goodsmvt_headret
            materialdocument = retmatdoc
       tables
            goodsmvt_item    = goodsmvt_item
            return           = return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 14:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012803#M79267</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-08T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE mov 309</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012804#M79268</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;I'm not sure about movement type 309, I can explain how the BAPI behaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill the header details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    gt_header-pstng_date = g_date.&lt;/P&gt;&lt;P&gt;    gt_header-header_txt = gt_upload-bktxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*item details&lt;/P&gt;&lt;P&gt;    gt_item-material = gt_upload-matnr.&lt;/P&gt;&lt;P&gt;    gt_item-plant  = gt_upload-werks.&lt;/P&gt;&lt;P&gt;    gt_item-stge_loc = gt_upload-lgort.&lt;/P&gt;&lt;P&gt;    gt_item-move_type = '201'.&lt;/P&gt;&lt;P&gt;    gt_item-costcenter = gt_upload-kostl.&lt;/P&gt;&lt;P&gt;    gt_item-gr_rcpt = gt_upload-kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement code&lt;/P&gt;&lt;P&gt;   gt_code-gm_code ='03'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. GM_Code 01: Goods receipt for purchase order&lt;/P&gt;&lt;P&gt;2. GM_Code 02: Goods receipt for production order&lt;/P&gt;&lt;P&gt;3. GM_Code 03: Goods issue&lt;/P&gt;&lt;P&gt;4. GM_Code 04: Transfer posting&lt;/P&gt;&lt;P&gt;5. GM_Code 05: Other goods receipts&lt;/P&gt;&lt;P&gt;6. GM_Code 06: Reversal of goods movements&lt;/P&gt;&lt;P&gt;7. GM_Code 07: Subsequent adjustment to a subcontract order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      goodsmvt_header       = gt_header&lt;/P&gt;&lt;P&gt;      goodsmvt_code         = gt_code&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      goodsmvt_item         = gt_item&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     goodsmvt_serialnumber = gt_sno&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      return                = gt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 14:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012804#M79268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-08T14:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE mov 309</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012805#M79269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please remember to award points for helpful answers and mark as solved, if your problem is solved.  Thanks.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 16:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012805#M79269</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-08T16:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE mov 309</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012806#M79270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich, your reply solved my problem although i used code 04 instead of 06, thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2005 21:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-mov-309/m-p/1012806#M79270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-08T21:04:17Z</dc:date>
    </item>
  </channel>
</rss>

