<?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: Enter Good Movement -  MB11 Batch Input or BAPI ?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035752#M85099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample of the coding....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Structures for BAPI
data: gdsmt_header   like bapi2017_gm_head_01.
data: gdsmt_code like bapi2017_gm_code.
data: gdsmt_headret like bapi2017_gm_head_ret.
data: gdsmt_item like bapi2017_gm_item_create occurs 1 with header line.
data: return like bapiret2 occurs 0.
data: retmatdoc like bapi2017_gm_head_ret-mat_doc.


* Setup BAPI header data.
  gdsmt_header-pstng_date = sy-datum.
  gdsmt_header-doc_date = sy-datum.
  gdsmt_code-gm_code = '06'.                                " MB11

* Write 262 movement to table.
  clear gdsmt_item.
  move '262'         to gdsmt_item-move_type.
  move i_resb-matnr  to gdsmt_item-material.
  move p_bdmng      to gdsmt_item-entry_qnt.
  move i_resb-meins to gdsmt_item-entry_uom.
  move i_resb-werks to gdsmt_item-plant.
  move i_resb-lgort to gdsmt_item-stge_loc.
  move i_afko-aufnr to gdsmt_item-orderid.
  append gdsmt_item.

* Determine cost center 
    move '0000041430' to gdsmt_item-costcenter.

  append gdsmt_item.

* Call goods movement BAPI
  call function 'BAPI_GOODSMVT_CREATE'
       exporting
            goodsmvt_header  = gdsmt_header
            goodsmvt_code    = gdsmt_code
       importing
            goodsmvt_headret = gdsmt_headret
            materialdocument = retmatdoc
       tables
            goodsmvt_item    = gdsmt_item
            return           = return.


&lt;/CODE&gt;&lt;/PRE&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>Mon, 10 Oct 2005 15:24:40 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-10-10T15:24:40Z</dc:date>
    <item>
      <title>Enter Good Movement -  MB11 Batch Input or BAPI ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035749#M85096</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 need to mass migrate stocks using MB11.&lt;/P&gt;&lt;P&gt;is there any BAPI for creating Good Movement?&lt;/P&gt;&lt;P&gt;I am planning to USE LSMW batch input.&lt;/P&gt;&lt;P&gt;I am looking for other alternatives like BAPI's.&lt;/P&gt;&lt;P&gt;if anyone worked on it, pls let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I promise to reward the replies &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 15:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035749#M85096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T15:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Enter Good Movement -  MB11 Batch Input or BAPI ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035750#M85097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you look into this BAPI - BAPI_GOODSMVT_CREATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 15:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035750#M85097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T15:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Enter Good Movement -  MB11 Batch Input or BAPI ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035751#M85098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is a BAPI.  BAPI_GOODSMVT_CREATE.&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>Mon, 10 Oct 2005 15:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035751#M85098</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-10T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enter Good Movement -  MB11 Batch Input or BAPI ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035752#M85099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample of the coding....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Structures for BAPI
data: gdsmt_header   like bapi2017_gm_head_01.
data: gdsmt_code like bapi2017_gm_code.
data: gdsmt_headret like bapi2017_gm_head_ret.
data: gdsmt_item like bapi2017_gm_item_create occurs 1 with header line.
data: return like bapiret2 occurs 0.
data: retmatdoc like bapi2017_gm_head_ret-mat_doc.


* Setup BAPI header data.
  gdsmt_header-pstng_date = sy-datum.
  gdsmt_header-doc_date = sy-datum.
  gdsmt_code-gm_code = '06'.                                " MB11

* Write 262 movement to table.
  clear gdsmt_item.
  move '262'         to gdsmt_item-move_type.
  move i_resb-matnr  to gdsmt_item-material.
  move p_bdmng      to gdsmt_item-entry_qnt.
  move i_resb-meins to gdsmt_item-entry_uom.
  move i_resb-werks to gdsmt_item-plant.
  move i_resb-lgort to gdsmt_item-stge_loc.
  move i_afko-aufnr to gdsmt_item-orderid.
  append gdsmt_item.

* Determine cost center 
    move '0000041430' to gdsmt_item-costcenter.

  append gdsmt_item.

* Call goods movement BAPI
  call function 'BAPI_GOODSMVT_CREATE'
       exporting
            goodsmvt_header  = gdsmt_header
            goodsmvt_code    = gdsmt_code
       importing
            goodsmvt_headret = gdsmt_headret
            materialdocument = retmatdoc
       tables
            goodsmvt_item    = gdsmt_item
            return           = return.


&lt;/CODE&gt;&lt;/PRE&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>Mon, 10 Oct 2005 15:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035752#M85099</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-10T15:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enter Good Movement -  MB11 Batch Input or BAPI ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035753#M85100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;con you try BAPI_GOODSMVT_CREATE&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;enzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 15:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035753#M85100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enter Good Movement -  MB11 Batch Input or BAPI ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035754#M85101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich&lt;/P&gt;&lt;P&gt;I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2005 15:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enter-good-movement-mb11-batch-input-or-bapi/m-p/1035754#M85101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-10T15:30:48Z</dc:date>
    </item>
  </channel>
</rss>

