<?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/3204458#M763905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, 349 is not "unrestricted to QI", it is "blocked to QI". Check with your functional person to get the correct movement type or the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 22:13:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-10T22:13:08Z</dc:date>
    <item>
      <title>BAPI_GOODSMVT_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204451#M763898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   I have a requirement where I need to use the BAPI "BAPI_GOODSMVT_CREATE" to post stock from unrestricted to QI (using batch movement 349). All I have is a material number and a batch number. Can you please help me in using this BAPI? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks verymuch in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Venky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 20:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204451#M763898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T20:05: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/3204452#M763899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears to be well documented. Have you checked that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 20:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204452#M763899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T20:07:38Z</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/3204453#M763900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes Rob..I was able to write the code but Iam getting the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Error in function Goods movement not possible with mvmt type 349'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mchb, mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_matnr like mchb-matnr,&lt;/P&gt;&lt;P&gt;            p_werks like mchb-werks,&lt;/P&gt;&lt;P&gt;            p_charg like mchb-charg,&lt;/P&gt;&lt;P&gt;            p_lgort like mard-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of gmhead.&lt;/P&gt;&lt;P&gt;        include structure bapi2017_gm_head_01.&lt;/P&gt;&lt;P&gt;data: end of gmhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of gmcode.&lt;/P&gt;&lt;P&gt;        include structure bapi2017_gm_code.&lt;/P&gt;&lt;P&gt;data: end of gmcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of mthead.&lt;/P&gt;&lt;P&gt;        include structure bapi2017_gm_head_ret.&lt;/P&gt;&lt;P&gt;data: end of mthead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 100.&lt;/P&gt;&lt;P&gt;        include structure bapi2017_gm_item_create.&lt;/P&gt;&lt;P&gt;data: end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of errmsg occurs 10.&lt;/P&gt;&lt;P&gt;        include structure bapiret2.&lt;/P&gt;&lt;P&gt;data: end of errmsg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wmenge like iseg-menge,&lt;/P&gt;&lt;P&gt;      errflag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_labst like mard-labst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-material = p_matnr.&lt;/P&gt;&lt;P&gt;itab-plant = p_werks.&lt;/P&gt;&lt;P&gt;itab-batch = p_charg.&lt;/P&gt;&lt;P&gt;itab-stge_loc = p_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single labst from mard&lt;/P&gt;&lt;P&gt;       into v_labst&lt;/P&gt;&lt;P&gt;       where matnr = p_matnr&lt;/P&gt;&lt;P&gt;       and   werks = p_werks&lt;/P&gt;&lt;P&gt;       and   lgort = p_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gmhead-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;gmhead-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;gmhead-pr_uname = sy-uname.&lt;/P&gt;&lt;P&gt;gmcode-gm_code = '02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-move_type = '349'.&lt;/P&gt;&lt;P&gt;  itab-mvt_ind    = 'F'.&lt;/P&gt;&lt;P&gt;  itab-entry_qnt  = v_labst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*endloop.&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             = gmhead&lt;/P&gt;&lt;P&gt;    GOODSMVT_CODE               = gmcode&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TESTRUN                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GOODSMVT_HEADRET            = mthead&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIALDOCUMENT            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATDOCUMENTYEAR             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    GOODSMVT_ITEM               = itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GOODSMVT_SERIALNUMBER       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RETURN                      = errmsg&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear errflag.&lt;/P&gt;&lt;P&gt;loop at errmsg.&lt;/P&gt;&lt;P&gt;  if errmsg-type eq 'E'.&lt;/P&gt;&lt;P&gt;    write:/'Error in function', errmsg-message.&lt;/P&gt;&lt;P&gt;    errflag = 'X'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    write:/ errmsg-message.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if errflag is initial.&lt;/P&gt;&lt;P&gt;  commit work and wait.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    write:/ 'Error in updating'.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    write:/ mthead-mat_doc, mthead-doc_year.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform upd_sta.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 21:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204453#M763900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T21:57:49Z</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/3204454#M763901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked the long text for the message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 22:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204454#M763901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T22:02:27Z</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/3204455#M763902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you were to do this online, which transaction (other than MIGO), would you use? Depending on that you will have to decide the GM_CODE. Not all goods movements are possible using this BAPI. Also some movement types are configured as automatic postings and you cannot use BAPI for such movements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 22:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204455#M763902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T22:06:18Z</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/3204456#M763903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Goods movement not possible with mvmt type 349"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error mssg I found in the "return" table (errmsg-message) of the BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 22:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204456#M763903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T22:08:02Z</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/3204457#M763904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There will be a message id and number with the error. Can you see what these are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 22:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204457#M763904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T22:11:38Z</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/3204458#M763905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, 349 is not "unrestricted to QI", it is "blocked to QI". Check with your functional person to get the correct movement type or the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 22:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204458#M763905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T22:13:08Z</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/3204459#M763906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Venky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this rather sounds like an application error. Are you sure that movement type 389 (or whatever this was...) can be used in your system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you debug where this error is raised? This might help you to limit the root cause of your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 22:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204459#M763906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T22:14:28Z</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/3204460#M763907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found out that the movement type is actually 322 and not 349. The transaction they use id ZMIGO (copied from MIGO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest me what would be the next step? Can I still use the same BAPI? or do u suggest me to go for a BDC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Venky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 18:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204460#M763907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T18:49:53Z</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/3204461#M763908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it..thanks all for the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 18:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204461#M763908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T18:56:42Z</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/3204462#M763909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 18:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create/m-p/3204462#M763909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T18:57:05Z</dc:date>
    </item>
  </channel>
</rss>

