<?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: Problem with BAPI_GOODSMVT_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651252#M1445019</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 using FMs &lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEQUEUE_ALL&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;after your bapi good movement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be this will help you solve the problem, as you were saying that problem is due to block on material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2010 15:48:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-24T15:48:20Z</dc:date>
    <item>
      <title>Problem with BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651250#M1445017</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;We need to create an Goods Receipt from an Outbound Delivery. We're using FM BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;P&gt;Sometimes the FM do the Goods Receipt, sometimes the FM returns the functional error "Stock in transit exceeded". &lt;/P&gt;&lt;P&gt;The problem is that when the FM returns the error, i attempt to do so by migo and it posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a commit work and the FM 'C14Z_WAIT_ON_COMMIT' before the excecution.&lt;/P&gt;&lt;P&gt;I think the problem could be that the material is blocked, or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Header data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  move ls_psibapi_header-fecha_f to: ls_header-pstng_date,&lt;/P&gt;&lt;P&gt;                                                             ls_header-doc_date.&lt;/P&gt;&lt;P&gt;  move i_delivery to ls_header-ref_doc_no.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Item data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at ls_psibapi_detail assigning &amp;lt;detail&amp;gt;.&lt;/P&gt;&lt;P&gt;    append initial line to lt_item assigning &amp;lt;item&amp;gt;.&lt;/P&gt;&lt;P&gt;    move: c_data_we-werks to &amp;lt;item&amp;gt;-plant,&lt;/P&gt;&lt;P&gt;                c_data_we-lgort to &amp;lt;item&amp;gt;-stge_loc,&lt;/P&gt;&lt;P&gt;                101 to &amp;lt;item&amp;gt;-move_type,&lt;/P&gt;&lt;P&gt;                &amp;lt;detail&amp;gt;-net_weight to &amp;lt;item&amp;gt;-entry_qnt,&lt;/P&gt;&lt;P&gt;                &amp;lt;detail&amp;gt;-umb_pn to &amp;lt;item&amp;gt;-entry_uom,&lt;/P&gt;&lt;P&gt;                i_delivery to &amp;lt;item&amp;gt;-deliv_numb_to_search,&lt;/P&gt;&lt;P&gt;                &amp;lt;detail&amp;gt;-pos to &amp;lt;item&amp;gt;-deliv_item_to_search,&lt;/P&gt;&lt;P&gt;                'B' to &amp;lt;item&amp;gt;-mvt_ind,&lt;/P&gt;&lt;P&gt;               &amp;lt;detail&amp;gt;-matnr to &amp;lt;item&amp;gt;-material.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;              check gt_batch is not initial.&lt;/P&gt;&lt;P&gt;              read table gt_batch assigning &amp;lt;batch&amp;gt; index 1.&lt;/P&gt;&lt;P&gt;              move &amp;lt;batch&amp;gt;-batch to &amp;lt;item&amp;gt;-batch.&lt;/P&gt;&lt;P&gt;  endloop.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Excecute&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            = ls_header&lt;/P&gt;&lt;P&gt;      goodsmvt_code                = '01'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     materialdocument             = e_mat_doc&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;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 15:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651250#M1445017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-24T15:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651251#M1445018</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;If you are able to post manually, then this should also work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling this BAPI, call BAPI_TRANSACTION_COMMIT exporting WAIT = 'X'. Check if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess problem is coming for STOs. In case of STOs first goods will be issued from supplying plant and the GR will be posted in the receiving plant. If GR qty at the receiving plant is more than GI qty at the supplying plant, this problem might occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ganga Bhavani R on Feb 24, 2010 9:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 15:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651251#M1445018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-24T15:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651252#M1445019</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 using FMs &lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEQUEUE_ALL&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;after your bapi good movement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be this will help you solve the problem, as you were saying that problem is due to block on material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 15:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651252#M1445019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-24T15:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651253#M1445020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link:[http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=17708&amp;amp;start=0&amp;amp;st=0&amp;amp;sk=t&amp;amp;sd=a]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 21:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651253#M1445020</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-24T21:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651254#M1445021</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'm having the same problem.&lt;/P&gt;&lt;P&gt;But even with bapi_transaction_comiit I don't get the document ready.&lt;/P&gt;&lt;P&gt;Anyway, how are we supossed to be sure that the document was processed ? Because when the bapi returns the error, how do you check the material document number ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 21:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-goodsmvt-create/m-p/6651254#M1445021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T21:39:54Z</dc:date>
    </item>
  </channel>
</rss>

