<?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: Using BAPI GoodsMovement.CreateFromData in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926317#M1149266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you would need to ensure you executed 'BAPI_TRANSACTION_COMMIT'.&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;&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2008 18:23:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-18T18:23:48Z</dc:date>
    <item>
      <title>Using BAPI GoodsMovement.CreateFromData</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926316#M1149265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to move a product from one storage location to another and I think the BAPI GoodsMovement.CreateFromData could be the right one for this purpose.&lt;/P&gt;&lt;P&gt;In The SAP Frontend I used the Transaktion MIGO - Goods Movement with these settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: Transfer Posting&lt;/P&gt;&lt;P&gt;Move Type: 301 (transfer plant to plant)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;[General]&lt;/P&gt;&lt;P&gt;Document Date: 19.12.2008&lt;/P&gt;&lt;P&gt;Posting Date: 19.12.2008&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;[From]&lt;/P&gt;&lt;P&gt;Material: XY_05&lt;/P&gt;&lt;P&gt;Plant: 1000&lt;/P&gt;&lt;P&gt;Stor. Loc.: 0002&lt;/P&gt;&lt;P&gt;Unit of Entry: 1 PC&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;[Dest]&lt;/P&gt;&lt;P&gt;Plant: 1000&lt;/P&gt;&lt;P&gt;Stor. Loc.: 0001&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;And everything Works fine using the Frontend.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'd like to do this using BAPI. So I opened the method GoodsMovement.CreateFromData and hit "Test/Run" (by the way, it's the first time I am working with BAPIs).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the section "Import Parameters" I entered:&lt;/P&gt;&lt;P&gt;[GOODSMVT_HEADER].PSTNG_DATE - 19.12.2008&lt;/P&gt;&lt;P&gt;[GOODSMVT_HEADER].DOC_DATE - 19.12.2008&lt;/P&gt;&lt;P&gt;[GOODSMVT_CODE].GM - 04 (-&amp;gt; Transfer Posting)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In "Tables":&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].MATERIAL - XY_05&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].PLANT - 1000&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].STGE_LOC - 0002&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].MOVE_TYPE - 301&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].ENTRY_QNT - 1&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].MOVE_MAT - XY_05&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].MOVE_PLANT - 1000&lt;/P&gt;&lt;P&gt;[GOODSMVT_ITEM].MOVE_STLOC - 0001&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;After executing I get an incremented Material-Document number in the section "Export parameters". But when I try to open the Material Document using transaction MB03, SAP says that this document doesn't exist. And actually there happend no transfer - every item is still on its old location.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;But the BAPI seems to work basically, because when I enter the quantity 6 to move, and there are just 4 items left, it fails and says that there are 2 items under.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I don't know why he doesn't change the values in the database. Maybe I need something like a commit?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 18:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926316#M1149265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T18:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI GoodsMovement.CreateFromData</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926317#M1149266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you would need to ensure you executed 'BAPI_TRANSACTION_COMMIT'.&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;&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 18:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926317#M1149266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T18:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI GoodsMovement.CreateFromData</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926318#M1149267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ok, thank you for your reply! But now, I got another problem... I released the GOODS_MOVEMENT_CREATE and BAPI_TRANSACTION_COMMIT function as  Web Services in one group. &lt;/P&gt;&lt;P&gt;But when I call the GOOD_MOVEMENT API first, and then BAPI_TRANSACTION_COMMIT afterwards as a different service, there will happen nothing. I think this is because I have only a stateless service. In my creation wizard for the Web Service I found no option to create a stateful service. &lt;/P&gt;&lt;P&gt;I found this thread &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6333562"&gt;&lt;/A&gt; , but I cannot follow his solution at the end. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way how I can commit my transaction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 14:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926318#M1149267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI GoodsMovement.CreateFromData</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926319#M1149268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this&lt;/P&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;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     02 - MB31 - Goods Receipts for Prod Order&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     03 - MB1A - Goods Issue&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     04 - MB1B - Transfer Posting&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     05 - MB1C - Enter Other Goods Receipt&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     06 - MB11&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Domain: KZBEW - Movement Indicator&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Goods movement w/o reference&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; B - Goods movement for purchase order&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; F - Goods movement for production order&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; L - Goods movement for delivery note&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; K - Goods movement for kanban requirement (WM - internal only)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; O - Subsequent adjustment of "material-provided" consumption&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; W - Subsequent adjustment of proportion/product unit material&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;report zbapi_goodsmovement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p-file like rlgrap-filename default&lt;/P&gt;&lt;P&gt;                                 'c:\sapdata\TEST.txt'.&lt;/P&gt;&lt;P&gt;parameters: e-file like rlgrap-filename default&lt;/P&gt;&lt;P&gt;                                 'c:\sapdata\gdsmvterror.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: xpost like sy-datum default sy-datum.&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: begin of pcitab occurs 100,&lt;/P&gt;&lt;P&gt;        ext_doc(10),           "External Document Number&lt;/P&gt;&lt;P&gt;        mvt_type(3),           "Movement Type&lt;/P&gt;&lt;P&gt;        doc_date(8),           "Document Date&lt;/P&gt;&lt;P&gt;        post_date(8),          "Posting Date&lt;/P&gt;&lt;P&gt;        plant(4),              "Plant&lt;/P&gt;&lt;P&gt;        material(18),          "Material Number&lt;/P&gt;&lt;P&gt;        qty(13),               "Quantity&lt;/P&gt;&lt;P&gt;        recv_loc(4),           "Receiving Location&lt;/P&gt;&lt;P&gt;        issue_loc(4),          "Issuing Location&lt;/P&gt;&lt;P&gt;        pur_doc(10),           "Purchase Document No&lt;/P&gt;&lt;P&gt;        po_item(3),            "Purchase Document Item No&lt;/P&gt;&lt;P&gt;        del_no(10),            "Delivery Purchase Order Number&lt;/P&gt;&lt;P&gt;        del_item(3),           "Delivery Item&lt;/P&gt;&lt;P&gt;        prod_doc(10),          "Production Document No&lt;/P&gt;&lt;P&gt;        scrap_reason(10),      "Scrap Reason&lt;/P&gt;&lt;P&gt;        upd_sta(1),            "Update Status&lt;/P&gt;&lt;P&gt;      end of pcitab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    filename                      = p-file&lt;/P&gt;&lt;P&gt;    filetype                      = 'DAT'&lt;/P&gt;&lt;UL&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;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = pcitab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;endif.&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 = '01'.   "01 - MB01 - Goods Receipts for Purchase Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at pcitab.&lt;/P&gt;&lt;P&gt;  itab-move_type  = pcitab-mvt_type.&lt;/P&gt;&lt;P&gt;  itab-mvt_ind    = 'B'.&lt;/P&gt;&lt;P&gt;  itab-plant      = pcitab-plant.&lt;/P&gt;&lt;P&gt;  itab-material   = pcitab-material.&lt;/P&gt;&lt;P&gt;  itab-entry_qnt  = pcitab-qty.&lt;/P&gt;&lt;P&gt;  itab-move_stloc = pcitab-recv_loc.&lt;/P&gt;&lt;P&gt;  itab-stge_loc   = pcitab-issue_loc.&lt;/P&gt;&lt;P&gt;  itab-po_number  = pcitab-pur_doc.&lt;/P&gt;&lt;P&gt;  itab-po_item    = pcitab-po_item.&lt;/P&gt;&lt;P&gt;  concatenate pcitab-del_no pcitab-del_item into itab-item_text.&lt;/P&gt;&lt;P&gt;  itab-move_reas  = pcitab-scrap_reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write:/ itab-material, itab-plant, itab-stge_loc,&lt;/P&gt;&lt;P&gt;          itab-move_type, itab-entry_qnt, itab-entry_uom,&lt;/P&gt;&lt;P&gt;          itab-entry_uom_iso, itab-po_number, itab-po_item,&lt;/P&gt;&lt;P&gt;                                              pcitab-ext_doc.&lt;/P&gt;&lt;P&gt;endloop.&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;/UL&gt;&lt;P&gt;    goodsmvt_headret            = mthead&lt;/P&gt;&lt;UL&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;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;P&gt;    perform upd_sta.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM UPD_STA                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ........                                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form upd_sta.&lt;/P&gt;&lt;P&gt;  loop at pcitab.&lt;/P&gt;&lt;P&gt;    pcitab-upd_sta = 'X'.&lt;/P&gt;&lt;P&gt;    modify pcitab.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      filename                      = p-file&lt;/P&gt;&lt;P&gt;      filetype                      = 'DAT'&lt;/P&gt;&lt;UL&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;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      data_tab                      = pcitab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 6&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2008 12:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-goodsmovement-createfromdata/m-p/4926319#M1149268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-25T12:56:08Z</dc:date>
    </item>
  </channel>
</rss>

