<?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: Error in BAPI_GOODSMVT_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802709#M914587</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 don't want program. i am already having it. i want to know the solution for the bapi return error which i stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2008 08:49:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-22T08:49:36Z</dc:date>
    <item>
      <title>Error in BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802706#M914584</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 am doing a goods reversal from production order using movement type 262 in BAPI_GOODSMVT_CREATE. For the qty not yet produce i want to reverse the components. Every thing working fine except&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the discontinued component and follow on component in a production order i am getting only the follow on component to reverse.&lt;/P&gt;&lt;P&gt;but when i pass through bapi it returns the discontinued component with error as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow-on component = HWXC019-03357-0000REVA&lt;/P&gt;&lt;P&gt;discontinued comp   = HWXC139-01004-0000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am passing the follow-on component but gets the error with discontinued component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-E   ID-M7  NUMBER-022&lt;/P&gt;&lt;P&gt;MESSAGE-RE Quantity moved exceeded by 5.00 EA : HWXC139-01004-0000 8120 SM20 08&lt;/P&gt;&lt;P&gt;MESSAGE_V1	RE Quantity moved&lt;/P&gt;&lt;P&gt;MESSAGE_V2	5.00&lt;/P&gt;&lt;P&gt;MESSAGE_V3	EA&lt;/P&gt;&lt;P&gt;MESSAGE_V4	: HWXC139-01004-0000 8120 SM20 08&lt;/P&gt;&lt;P&gt;PARAMETER	GOODSMVT_ITEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those components without discontinuation indicator works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 08:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802706#M914584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T08:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802707#M914585</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;&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;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structures for BAPI &lt;/P&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;P&gt;Setup BAPI header data. &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;Write 551 movement to table &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;Determine cost center per plant &lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;Call goods movement BAPI &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 = 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;&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN! Please remember to award points for helpful answers and mark you post as solved when solved completely. 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;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 08:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802707#M914585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802708#M914586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE. &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;A href="http://www.4ap.de/abap/bapi_goodsmvt_create.php" target="test_blank"&gt;http://www.4ap.de/abap/bapi_goodsmvt_create.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 08:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802708#M914586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802709#M914587</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 don't want program. i am already having it. i want to know the solution for the bapi return error which i stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 08:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802709#M914587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-22T08:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802710#M914588</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;solved myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need to pass this parameter.&lt;/P&gt;&lt;P&gt; i_goodsmvt_item-res_type   = ichgcnt-rsart.&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, 04 Jul 2008 02:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-goodsmvt-create/m-p/3802710#M914588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T02:55:47Z</dc:date>
    </item>
  </channel>
</rss>

