<?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 queries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116041#M1510441</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;GM_CODE can be as per your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is maintained in SAP Table T158G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system it's like as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01     MB01&lt;/P&gt;&lt;P&gt;02     MB31&lt;/P&gt;&lt;P&gt;03     MB1A&lt;/P&gt;&lt;P&gt;04     MB1B&lt;/P&gt;&lt;P&gt;05     MB1C&lt;/P&gt;&lt;P&gt;06     MB11&lt;/P&gt;&lt;P&gt;07     MB04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;03     MB1A =&amp;gt; It's for Goods Issue&lt;/P&gt;&lt;P&gt;04     MB1B=&amp;gt;for transfer Posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It entirely depends on yuor requirement that what GM_code need to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 11:05:34 GMT</pubDate>
    <dc:creator>pramodu</dc:creator>
    <dc:date>2010-06-29T11:05:34Z</dc:date>
    <item>
      <title>BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116034#M1510434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019m using the BAPI: BAPI_GOODSMVT_CREATE for Goods movement . &lt;/P&gt;&lt;P&gt;1.	Will this BAPI changes even the storage location?&lt;/P&gt;&lt;P&gt;2.	Do I need write explicit u2018commit worku2019 statement in my program to save the changes done through BAPI_GOODSMVT_CREATE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to make the goods movement and also to change the storage location. Could you pls tell how can I proceed further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Harsha Ramaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 09:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116034#M1510434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T09:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116035#M1510435</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;look at this &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;and bapi to change storage location is &lt;/P&gt;&lt;P&gt;'BAPI_OUTB_DELIVERY_CHANGE'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 09:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116035#M1510435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T09:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116036#M1510436</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;This BAPI doesn't change storage location.  You have to call commit work after calling the bapi.&lt;/P&gt;&lt;P&gt;See the BAPI Documentation regarding transaction control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Transaction control is not implemented. The calling program therefore has to execute 
the Commit Work itself after this method has been successfully called 
(in other words, if no errors were reported in the Return parameter).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 09:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116036#M1510436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116037#M1510437</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;The FM BAPI_GOODSMVT_CREATE also handles the Goods Transfer from one storage location to the other. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this pass the value to the Importing Parameter GM_CODE = 4 (Transfer Posting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM BAPI_COMMIT_WORK is used to commit the BAPI transaction explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 09:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116037#M1510437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T09:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116038#M1510438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019m not able to find u2018Importing Parameter GM_CODEu2019 in the bapi BAPI_GOODSMVT_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only find the following 4 parameters&lt;/P&gt;&lt;P&gt;1.	GOODSMVT_HEADER&lt;/P&gt;&lt;P&gt;2.	GOODSMVT_CODE&lt;/P&gt;&lt;P&gt;3.	TESTRUN&lt;/P&gt;&lt;P&gt;4.	GOODSMVT_REF_EWM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls guide meu2026. &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>Tue, 29 Jun 2010 10:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116038#M1510438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116039#M1510439</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;Please see below sample code I have used in my earlier developments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:l_head    type BAPI2017_GM_HEAD_01,&lt;/P&gt;&lt;P&gt;  l_code    type BAPI2017_GM_CODE,&lt;/P&gt;&lt;P&gt;  l_item    type BAPI2017_GM_ITEM_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--fill Header information&lt;/P&gt;&lt;P&gt;   l_head-PSTNG_DATE = sy-datum.&lt;/P&gt;&lt;P&gt;   l_head-DOC_DATE   = sy-datum.&lt;/P&gt;&lt;P&gt;   l_head-pr_uname   = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_BAPI2017_GM_CODE-gm_code  = '03'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Extract the data for which item has to be created and put into internal table i_mska&lt;/P&gt;&lt;P&gt;   then for each one fill item data as below&lt;/P&gt;&lt;P&gt;loop at pt_mska into l_mska.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_vbeln = l_mska-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_item-material       = l_mska-matnr.   "Article Nr&lt;/P&gt;&lt;P&gt;    l_item-plant          = l_mska-werks.   "Site&lt;/P&gt;&lt;P&gt;    l_item-stge_loc       = l_mska-lgort.   "Storage Location&lt;/P&gt;&lt;P&gt;    l_item-move_type      = c_bwart_231.    "Movement type&lt;/P&gt;&lt;P&gt;    l_item-stck_type      = space.          "Unrestricted&lt;/P&gt;&lt;P&gt;    l_item-spec_stock     = c_sobkz_e.      "Special Stock E&lt;/P&gt;&lt;P&gt;    l_item-entry_qnt      = l_mska-kalab.   "Quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform get_article_unit using l_mska-matnr&lt;/P&gt;&lt;P&gt;                          changing l_item-entry_uom&lt;/P&gt;&lt;P&gt;                                   l_item-entry_uom_iso.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_item-item_text      = sy-repid.&lt;/P&gt;&lt;P&gt;    l_item-move_mat       = l_mska-matnr.  &lt;/P&gt;&lt;P&gt;    l_item-move_plant     = l_mska-werks.  &lt;/P&gt;&lt;P&gt;    l_item-move_stloc     = l_mska-lgort.  &lt;/P&gt;&lt;P&gt;    l_item-val_sales_ord  = l_mska-vbeln.&lt;/P&gt;&lt;P&gt;    l_item-val_s_ord_item = l_mska-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append l_item to lt_item.&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; CALL FUNCTION 'BAPI_GOODSMVT_CREATE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      GOODSMVT_HEADER             = l_head&lt;/P&gt;&lt;P&gt;      GOODSMVT_CODE               = l_code&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      MATERIALDOCUMENT            = l_mblnr&lt;/P&gt;&lt;P&gt;      MATDOCUMENTYEAR             = l_mjahr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      GOODSMVT_ITEM               = lt_item&lt;/P&gt;&lt;P&gt;      RETURN                      = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if lt_return[] is initial.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PKUPADHYAY on Jun 29, 2010 12:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 10:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116039#M1510439</guid>
      <dc:creator>pramodu</dc:creator>
      <dc:date>2010-06-29T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116040#M1510440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks pramodh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here what is the value you are passing for GM_CODE, Either 3 or 4 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because, here my friend told we have to pass GM_CODE = 4 to update the storage location...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could you pls confirm me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 10:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116040#M1510440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116041#M1510441</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;GM_CODE can be as per your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is maintained in SAP Table T158G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system it's like as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01     MB01&lt;/P&gt;&lt;P&gt;02     MB31&lt;/P&gt;&lt;P&gt;03     MB1A&lt;/P&gt;&lt;P&gt;04     MB1B&lt;/P&gt;&lt;P&gt;05     MB1C&lt;/P&gt;&lt;P&gt;06     MB11&lt;/P&gt;&lt;P&gt;07     MB04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;03     MB1A =&amp;gt; It's for Goods Issue&lt;/P&gt;&lt;P&gt;04     MB1B=&amp;gt;for transfer Posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It entirely depends on yuor requirement that what GM_code need to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 11:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116041#M1510441</guid>
      <dc:creator>pramodu</dc:creator>
      <dc:date>2010-06-29T11:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116042#M1510442</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;The Importing Parameter GOODSMVT_CODE is nothing but your GM_CODE. You can ask your Functional consultant regarding the GM_CODE which you need to pass either 3 or 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transfer posting surely handles the Material movement from one storage location to the another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Refer to the FM Documentation for more clear information.&lt;/P&gt;&lt;P&gt;GM_CODE=3 can handle "Goods Issue without reference to a reservation" and "Goods Issue with reference to a reservation"&lt;/P&gt;&lt;P&gt;GM_CODE=4 is "Transfer Posting without reference to a reservation"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santosh Kumar Mukka.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: santosh kumar on Jun 29, 2010 4:49 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: santosh kumar on Jun 29, 2010 4:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 11:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-queries/m-p/7116042#M1510442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T11:18:23Z</dc:date>
    </item>
  </channel>
</rss>

