<?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: How to call function BAPI_GOODSMVT_CREATE ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967699#M68897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm moving the own stock to vendor consignment stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the goods movement item structure?&lt;/P&gt;&lt;P&gt;where can I find it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh. I got it in the tables of the function. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what is GM_CODE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Macy Lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Macy Lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2005 03:57:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-12T03:57:09Z</dc:date>
    <item>
      <title>How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967697#M68895</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;I want to create a material document by calling the function BAPI_GOODSMVT_CREATE&lt;/P&gt;&lt;P&gt;I don't know what to pass although I know I have to export something (GOODSMVT_HEADER and GOODSMVT_CODE) in my ABAP. But what should I actually pass to the function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 03:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967697#M68895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T03:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967698#M68896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you pass to this BAPI is dependent on what movement you want to do. There is excellent documentation associated with it, please go through it. You need to pass goods movement item structure apart from the structures you already identified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 03:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967698#M68896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T03:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967699#M68897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm moving the own stock to vendor consignment stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the goods movement item structure?&lt;/P&gt;&lt;P&gt;where can I find it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh. I got it in the tables of the function. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what is GM_CODE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Macy Lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Macy Lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 03:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967699#M68897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T03:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967700#M68898</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 with this&lt;/P&gt;&lt;P&gt;data : gt_header like bapi2017_gm_head_01 ,&lt;/P&gt;&lt;P&gt;       gt_code like bapi2017_gm_code,&lt;/P&gt;&lt;P&gt;       gt_item like bapi2017_gm_item_create occurs 0,   &lt;/P&gt;&lt;P&gt;       gt_sno like bapi2017_gm_serialnumber occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gt_code-gm_code ='03'.  "goods issue&lt;/P&gt;&lt;P&gt;In the header pass the posting date, header text etc...&lt;/P&gt;&lt;P&gt;and in the line item populate material, plant, storage location, movement type.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF necessary pass the serial number in the gt_sno table  &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;P&gt;      goodsmvt_serialnumber = gt_sno&lt;/P&gt;&lt;P&gt;      return                = gt_return.&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;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 05:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967700#M68898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T05:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967701#M68899</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 used to determine whether is goods issue, transfer posting or Goods receipt for purchase order like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   GM code  01: Goods receipt for purchase order&lt;/P&gt;&lt;P&gt;   GM_Code 02: Goods receipt for production order&lt;/P&gt;&lt;P&gt;   GM_Code 03: Goods issue&lt;/P&gt;&lt;P&gt;   GM_Code 04: Transfer posting&lt;/P&gt;&lt;P&gt;   GM_Code 05: Other goods receipts&lt;/P&gt;&lt;P&gt;   GM_Code 06: Reversal of goods movements&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>Fri, 12 Aug 2005 05:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967701#M68899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T05:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967702#M68900</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;I can call the function and finally got the material doc. and material doc. year.&lt;/P&gt;&lt;P&gt;but when I use MB03 to display the material doc with the doc year, the material doc is not found. what's wrong with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 08:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967702#M68900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T08:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to call function BAPI_GOODSMVT_CREATE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967703#M68901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Macy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for that is you didn't do a commit after your bapi call. If the call to the BAPI is successful, do another call right after that to the BAPI&lt;/P&gt;&lt;P&gt;'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing this through SE37, then you need to do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initial screen of SE37, in the menu choose 'Function Module'&lt;DEL&gt;&amp;gt;'Test'&lt;/DEL&gt;&amp;gt;'Test Sequences'. This will allow you to enter more than one function module in sequence. Enter 'BAPI_GOODSMVT_CREATE' first and then enter 'BAPI_TRANSACTION_COMMIT'. Once you execute the sequence, you should be able to see the material document in MB03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward and close, if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2005 18:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-function-bapi-goodsmvt-create/m-p/967703#M68901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-12T18:21:40Z</dc:date>
    </item>
  </channel>
</rss>

