<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174036#M461525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Did u checked the RETURN parameter. Check whether r there any errors.&lt;/P&gt;&lt;P&gt;then look for ur data to solve the errors and re run the program. It may helpful.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vamsi MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 17:36:07 GMT</pubDate>
    <dc:creator>former_member219399</dc:creator>
    <dc:date>2007-05-10T17:36:07Z</dc:date>
    <item>
      <title>bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174035#M461524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;  i m using 'bapi_goodsmvt_create' for transfer posinting. its giving me Document Number also. But the issue is , its not updating the records to tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried 'bapi_transaction_commit' bapi for posting data to tables. But its not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kan u guide me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Satya....u help needed urgently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 12:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174035#M461524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T12:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174036#M461525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Did u checked the RETURN parameter. Check whether r there any errors.&lt;/P&gt;&lt;P&gt;then look for ur data to solve the errors and re run the program. It may helpful.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vamsi MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 17:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174036#M461525</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2007-05-10T17:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_goodsmvt_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174037#M461526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structures for BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setup BAPI header data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write 551 movement to table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Determine cost center per plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call goods movement BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&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;DATA : V_HEADER_TXT LIKE X_GOODS_MVT_HEAD-HEADER_TXT.&lt;/P&gt;&lt;P&gt;DATA : X_GOODS_MVT_HEAD LIKE BAPI2017_GM_HEAD_01,&lt;/P&gt;&lt;P&gt;X_GOODS_MVT_CODE LIKE BAPI2017_GM_CODE,&lt;/P&gt;&lt;P&gt;IT_GOODS_MVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;IT_RETURN LIKE BAPIRET2 OCCURS 0&lt;/P&gt;&lt;P&gt;WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X_GOODS_MVT_HEAD-PSTNG_DATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;X_GOODS_MVT_HEAD-DOC_DATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;X_GOODS_MVT_HEAD-HEADER_TXT = V_HEADER_TXT.&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 = X_GOODS_MVT_HEAD&lt;/P&gt;&lt;P&gt;GOODSMVT_CODE = X_GOODS_MVT_CODE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MATERIALDOCUMENT = P_MATDOC&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;GOODSMVT_ITEM = IT_GOODS_MVT_ITEM&lt;/P&gt;&lt;P&gt;RETURN = IT_RETURN.&lt;/P&gt;&lt;P&gt;u need to call this fm if the above is successful&lt;/P&gt;&lt;P&gt;IF NOT P_MATDOC 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;V_BAPI_NO_ERR = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 17:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/2174037#M461526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T17:39:59Z</dc:date>
    </item>
  </channel>
</rss>

