<?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: Create Goods Movement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677219#M1099949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Tables&lt;/P&gt;&lt;P&gt;it_goods_mvt_header-pstng_date      = sy-datum.&lt;/P&gt;&lt;P&gt;it_goods_mvt_header-doc_date        = sy-datum.&lt;/P&gt;&lt;P&gt;it_goods_mvt_header-pr_uname        = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an internal table called it_intbasc it's work area is wa_intbasc, this table contains the items to be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-material       = wa_intbasc-        it_goodsmvt_item-plant          = 'PP10&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-stge_loc       = 'C001'.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-batch          = wa_intbasc-charg.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-move_type      = '101'. "(gestión stocks)&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-entry_qnt      = wa_intbasccant_pzas.    it_goodsmvt_item-po_pr_qnt      = wa_intbasc-cant_kg.     it_goodsmvt_item-po_item        = lv_item. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-orderid        = wa_intbasc-aufnr.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-order_itno     = lv_item. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-MVT_IND        = 'F'. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-MOVE_REAS      = 0. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-quantity          = wa_intbasc-cant_pzas.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-base_uom          = 'CJ'. "Unidad de     APPEND it_goodsmvt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-matdoc_itm    = lv_item.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-quantity_pme  = wa_intbasc-cant_pzas.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-base_uom_pme  = 'CJ'.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-entry_qnt_pme = wa_intbasc-cant_kg.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-entry_uom_pme  = 'KG'.&lt;/P&gt;&lt;P&gt; APPEND it_goodsmvt_item_cwm.&lt;/P&gt;&lt;P&gt; lv_item = lv_item + 10.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the CALL FUNCTION&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   = it_goods_mvt_header&lt;/P&gt;&lt;P&gt;          goodsmvt_code     = c_goodsmvt_code ("2" ASSIGNED)&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          goodsmvt_headret  = it_goodsmvt_headret&lt;/P&gt;&lt;P&gt;          materialdocument  = it_material_document&lt;/P&gt;&lt;P&gt;          matdocumentyear   = it_matdocumentyear&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          goodsmvt_item     = it_goodsmvt_item&lt;/P&gt;&lt;P&gt;          goodsmvt_item_cwm = it_goodsmvt_item_cwm&lt;/P&gt;&lt;P&gt;          return            = it_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2008 01:59:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-22T01:59:45Z</dc:date>
    <item>
      <title>Create Goods Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677217#M1099947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xprts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to make a good movemente input troughout the BAPI_GOODSMVT_CREATE. This for fabrication orders, i've sent the info that the documentation of this bapi displays, but i've allways receive the following message : "|Order [NUMBER] not found or not permitted for goods movement". But this order number it's a right fabrication order, then if use the migo the proccess of saving the movement does'nt return any error message. Could anybody hpl me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnxs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 01:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677217#M1099947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T01:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Goods Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677218#M1099948</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;Could you paste the values which you are passing in to the BAPI along with the field names....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you should pass exactly the field length of the order number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the field length is 10 and order number is 20000,then you should pass it as 0000020000.&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;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 01:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677218#M1099948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T01:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Goods Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677219#M1099949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Tables&lt;/P&gt;&lt;P&gt;it_goods_mvt_header-pstng_date      = sy-datum.&lt;/P&gt;&lt;P&gt;it_goods_mvt_header-doc_date        = sy-datum.&lt;/P&gt;&lt;P&gt;it_goods_mvt_header-pr_uname        = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've an internal table called it_intbasc it's work area is wa_intbasc, this table contains the items to be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-material       = wa_intbasc-        it_goodsmvt_item-plant          = 'PP10&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-stge_loc       = 'C001'.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-batch          = wa_intbasc-charg.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-move_type      = '101'. "(gestión stocks)&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-entry_qnt      = wa_intbasccant_pzas.    it_goodsmvt_item-po_pr_qnt      = wa_intbasc-cant_kg.     it_goodsmvt_item-po_item        = lv_item. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-orderid        = wa_intbasc-aufnr.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-order_itno     = lv_item. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-MVT_IND        = 'F'. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-MOVE_REAS      = 0. &lt;/P&gt;&lt;P&gt;it_goodsmvt_item-quantity          = wa_intbasc-cant_pzas.&lt;/P&gt;&lt;P&gt;it_goodsmvt_item-base_uom          = 'CJ'. "Unidad de     APPEND it_goodsmvt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-matdoc_itm    = lv_item.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-quantity_pme  = wa_intbasc-cant_pzas.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-base_uom_pme  = 'CJ'.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-entry_qnt_pme = wa_intbasc-cant_kg.&lt;/P&gt;&lt;P&gt; it_goodsmvt_item_cwm-entry_uom_pme  = 'KG'.&lt;/P&gt;&lt;P&gt; APPEND it_goodsmvt_item_cwm.&lt;/P&gt;&lt;P&gt; lv_item = lv_item + 10.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the CALL FUNCTION&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   = it_goods_mvt_header&lt;/P&gt;&lt;P&gt;          goodsmvt_code     = c_goodsmvt_code ("2" ASSIGNED)&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          goodsmvt_headret  = it_goodsmvt_headret&lt;/P&gt;&lt;P&gt;          materialdocument  = it_material_document&lt;/P&gt;&lt;P&gt;          matdocumentyear   = it_matdocumentyear&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          goodsmvt_item     = it_goodsmvt_item&lt;/P&gt;&lt;P&gt;          goodsmvt_item_cwm = it_goodsmvt_item_cwm&lt;/P&gt;&lt;P&gt;          return            = it_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 01:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677219#M1099949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T01:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create Goods Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677220#M1099950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you missed this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lt_return TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry actually i want to reply to your other thread but i replied here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 02:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677220#M1099950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T02:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Goods Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677221#M1099951</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;As I said earlier, just check if you are passing the exact values...I mean..the order number....just add the prefix 0's and check...The code looks ok to me.&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;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 02:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677221#M1099951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T02:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Goods Movement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677222#M1099952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the function of the data element of aufnr to convert it, the problem was solved, thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 02:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-goods-movement/m-p/4677222#M1099952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T02:24:53Z</dc:date>
    </item>
  </channel>
</rss>

