<?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 BAPI_GOODSMVT_CREATE - Batch Expiry Date...... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607109#M272434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Im,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this BAPI to post a goods movement from one location to another in the same plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The stock is being posted to a specific Batch.  When I do this the material document gets created okay and the stock moves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the batch expiry date is not updating.  The stock I'm moving has a later expiry date than the current date.  If I do this manually in MIGO it works fine and updates the batch expiry date with the later date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this or know of a work around ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 13:23:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T13:23:00Z</dc:date>
    <item>
      <title>BAPI_GOODSMVT_CREATE - Batch Expiry Date......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607109#M272434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Im,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this BAPI to post a goods movement from one location to another in the same plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The stock is being posted to a specific Batch.  When I do this the material document gets created okay and the stock moves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the batch expiry date is not updating.  The stock I'm moving has a later expiry date than the current date.  If I do this manually in MIGO it works fine and updates the batch expiry date with the later date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this or know of a work around ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 13:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607109#M272434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE - Batch Expiry Date......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607110#M272435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to pass the expiry date to the parameter:&lt;/P&gt;&lt;P&gt;GOODSMVT_ITEM-EXPIRYDATE.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 13:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607110#M272435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_GOODSMVT_CREATE - Batch Expiry Date......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607111#M272436</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 am populating the item data like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Populate item data&lt;/P&gt;&lt;P&gt;  LOOP AT i_items_trans.&lt;/P&gt;&lt;P&gt;    CLEAR ibapigm_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*- Convert the matnr backto 18 char form (External)&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        input            = i_items_trans-matnr&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        output           = i_items_trans-matnr&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        number_not_found = 1&lt;/P&gt;&lt;P&gt;        length_error     = 2&lt;/P&gt;&lt;P&gt;        OTHERS           = 3.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ibapigm_item-material   = i_items_trans-matnr.&lt;/P&gt;&lt;P&gt;    ibapigm_item-plant      = x_user-werks.&lt;/P&gt;&lt;P&gt;    ibapigm_item-stge_loc   = x_user-lgort.&lt;/P&gt;&lt;P&gt;    ibapigm_item-move_type  = '101'.   "Goods Receipt&lt;/P&gt;&lt;P&gt;    ibapigm_item-mvt_ind    = 'B'.     "Goods Movement for PO&lt;/P&gt;&lt;P&gt;    ibapigm_item-po_number  = i_items_trans-ebeln.&lt;/P&gt;&lt;P&gt;    ibapigm_item-po_item    = i_items_trans-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ibapigm_item-gr_rcpt    = sy-uname.&lt;/P&gt;&lt;P&gt;    ibapigm_item-quantity   = i_items_trans-ktmng.&lt;/P&gt;&lt;P&gt;    ibapigm_item-base_uom   = i_items_trans-meins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ibapigm_item-entry_qnt  = i_items_trans-ktmng.&lt;/P&gt;&lt;P&gt;    ibapigm_item-entry_uom  = i_items_trans-meins.&lt;/P&gt;&lt;P&gt;    ibapigm_item-batch      = i_items_trans-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND ibapigm_item.&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;Header data like: &lt;/P&gt;&lt;P&gt;  MOVE: sy-datum TO bapigm_head-pstng_date,&lt;/P&gt;&lt;P&gt;        sy-datum TO bapigm_head-doc_date,&lt;/P&gt;&lt;P&gt;        sy-uname TO bapigm_head-pr_uname,&lt;/P&gt;&lt;P&gt;        v_mblnr  TO bapigm_head-ref_doc_no,&lt;/P&gt;&lt;P&gt;        con_bfwms_bestand TO bapigm_head-ext_wms.&lt;/P&gt;&lt;P&gt;*- Document Header Text&lt;/P&gt;&lt;P&gt;  IF NOT v_bktxt IS INITIAL.&lt;/P&gt;&lt;P&gt;*- Preceed "INV=" to the Invoice number entered&lt;/P&gt;&lt;P&gt;    CONCATENATE 'INV='(003) v_bktxt INTO v_bktxt &lt;/P&gt;&lt;P&gt;    SEPARATED BY space.&lt;/P&gt;&lt;P&gt;    bapigm_head-header_txt = v_bktxt.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MOVE gmcode_01 TO bapigm_code-gm_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And calling the BAPI as:&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  = bapigm_head&lt;/P&gt;&lt;P&gt;      goodsmvt_code    = bapigm_code&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      goodsmvt_headret = bapigm_headret&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      goodsmvt_item    = ibapigm_item&lt;/P&gt;&lt;P&gt;      return           = ibapigm_ret.&lt;/P&gt;&lt;P&gt;*- Commit on Success&lt;/P&gt;&lt;P&gt;  IF NOT bapigm_headret-mat_doc IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Havent faced any problem so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you populate &amp;lt;b&amp;gt;EXPIRYDATE&amp;lt;/b&amp;gt; in  structure &amp;lt;b&amp;gt;BAPI2017_GM_ITEM_CREATE&amp;lt;/b&amp;gt;? If yes, see in debugging, whatz happening to this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 13:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-goodsmvt-create-batch-expiry-date/m-p/1607111#M272436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T13:29:02Z</dc:date>
    </item>
  </channel>
</rss>

