<?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: Function Module or BAPI to update Delivery in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404751#M195482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;  I had also one case of updating the serial to the document, but its not the Delivery. It was the Sales order. I have worked with the function module SERNR_ADD_TO_AU which is internally using the function module what you are using i.e., SERNR_ADD_TO_DOCUMENT. I think the same function module I have used will work for ur scenario also. The following is the sample code for it:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'SERNR_ADD_TO_AU'
    EXPORTING
      sernr                 = w_sernr
      profile               = c_zd01
      material              = w_matnr
      quantity              = '1'
      document              = w_vbeln
      item                  = '00010'
      debitor               = fs_header-sap_ship_to
      vbtyp                 = 'C'
      sd_auart              = w_doc_type
      sd_postyp             = w_item_cat
    IMPORTING
      anzsn                 = w_anzsn
      zeilen_id             = w_zeile
      serial_commit         = w_serial_commit
    EXCEPTIONS
      konfigurations_error  = 1
      serialnumber_errors   = 2
      serialnumber_warnings = 3
      no_profile_operation  = 4
      OTHERS                = 5.
  IF sy-subrc eq 0.
    CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
    COMMIT WORK.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you know about all the parameters I am passing to the function module from the above code. If u require any info, u can msg again. &lt;/P&gt;&lt;P&gt;And one more thing, don't forget to have the call to the function module 'SERIAL_LISTE_POST_AU' amd commit work if the return code is 0. This is also mandatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note: Please don't forget to reward points if the message is helpful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2006 05:35:00 GMT</pubDate>
    <dc:creator>former_member186078</dc:creator>
    <dc:date>2006-07-27T05:35:00Z</dc:date>
    <item>
      <title>Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404745#M195476</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'm looking to identify two function modules or BAPI to update SD customer deliveries of finished goods. My immediate need is to update serial numbers in delivery and then PGI the delivery. Our inventory is serialized and as such I will be pull serial numbers from an external source to update serial number reqirements in the delivery document. My second need is identify a FM or BAPI that picks and packs a delivery. This is for a project we are doing with a third party logistics provider and as such we are running this in Inventory Managed storage locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 13:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404745#M195476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T13:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404746#M195477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trz with these fms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V50I                           Delivery BAPIs&lt;/P&gt;&lt;P&gt;BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system&lt;/P&gt;&lt;P&gt;BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries&lt;/P&gt;&lt;P&gt;BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System&lt;/P&gt;&lt;P&gt;BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries&lt;/P&gt;&lt;P&gt;BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V50R_CREA                      Create Delivery from Delivery Due List&lt;/P&gt;&lt;P&gt;BAPI_DELIVERYPROCESSING_EXEC   Delivery Processing: Deliver Preceding Document, Expand Delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 13:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404746#M195477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T13:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404747#M195478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the function module WS_DELIVERY_UPDATE for  pick, pack, update serial numbers &amp;amp; PGI functions of the delivery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2006 19:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404747#M195478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-23T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404748#M195479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the FM, I'll look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a sample ABAP code using this FM with error handling?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 16:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404748#M195479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404749#M195480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, my immediate is to update serial numbers on a delivery then PGI the delivery, the delivery will already be picked/packed from a WHSCON message DELVRY03 IDoc processing. Unfortunately this IDoc processing does not update serial numbers and PGI. So I'm writing an application to pull the serial numbers from the IDoc then update the delivery with the serials and PGI..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 18:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404749#M195480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-24T18:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404750#M195481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found FM SERNR_ADD_TO_DOCUMENT, anybody use this before? I can't find much on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 15:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404750#M195481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404751#M195482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;  I had also one case of updating the serial to the document, but its not the Delivery. It was the Sales order. I have worked with the function module SERNR_ADD_TO_AU which is internally using the function module what you are using i.e., SERNR_ADD_TO_DOCUMENT. I think the same function module I have used will work for ur scenario also. The following is the sample code for it:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'SERNR_ADD_TO_AU'
    EXPORTING
      sernr                 = w_sernr
      profile               = c_zd01
      material              = w_matnr
      quantity              = '1'
      document              = w_vbeln
      item                  = '00010'
      debitor               = fs_header-sap_ship_to
      vbtyp                 = 'C'
      sd_auart              = w_doc_type
      sd_postyp             = w_item_cat
    IMPORTING
      anzsn                 = w_anzsn
      zeilen_id             = w_zeile
      serial_commit         = w_serial_commit
    EXCEPTIONS
      konfigurations_error  = 1
      serialnumber_errors   = 2
      serialnumber_warnings = 3
      no_profile_operation  = 4
      OTHERS                = 5.
  IF sy-subrc eq 0.
    CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
    COMMIT WORK.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you know about all the parameters I am passing to the function module from the above code. If u require any info, u can msg again. &lt;/P&gt;&lt;P&gt;And one more thing, don't forget to have the call to the function module 'SERIAL_LISTE_POST_AU' amd commit work if the return code is 0. This is also mandatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note: Please don't forget to reward points if the message is helpful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 05:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404751#M195482</guid>
      <dc:creator>former_member186078</dc:creator>
      <dc:date>2006-07-27T05:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404752#M195483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;   Any update on the function modules and the method I suggested. I am also very much eager to know whether these are working for Delivery also or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2006 05:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404752#M195483</guid>
      <dc:creator>former_member186078</dc:creator>
      <dc:date>2006-07-29T05:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404753#M195484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking at SERNR_ADD_TO_ls and SERIAL_LISTE_POST_LS as these appear to be for the delivery note as opposed to _AU which is for the SD document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the FM call for the post FM you don't need to pass anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404753#M195484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404754#M195485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SERNR_ADD_TO_LS and SERIAL_LISTE_POST_LS appear to be working in that the serial numbers are being popped into the delivery however it appears that the delivery is being locked for as long as the application is running. Did you experience this? In my application I build a internal tables of deliveries and serial numbers to be update and then call these FM's to update the serial numbers as you have shown and then I write a simple list output to show error messages and so forth and for as long the list output is shown in the GUI the delivery is being locked for editing, like the FM is not let go until the application is exited. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 15:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404754#M195485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T15:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404755#M195486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jospeh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're on good way while using FM SERNR_ADD_TO_LS and SERIAL_LISTE_POST_LS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second function module you don't need to pass anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to make a commit work to avoid database error during synchronisation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly i think it's impossible to post GI at the same time , i work on this subject for 3 weeks and the system is not able to do the both think at the same time due to BATCH SPLIT possibility . Do you find any solution for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For IDOC processing, we call WS_DELIVERY_UPDATE FM twice times, 1 for update serial number, 1 for updating GI but in VL02N it's impossible to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bertrand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 09:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404755#M195486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T09:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404756#M195487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph&lt;/P&gt;&lt;P&gt;I need to do the same process&lt;/P&gt;&lt;P&gt;Creation of delivery, picking and post goods issue, which include serial numbers as well.&lt;/P&gt;&lt;P&gt;Can you tell me which fm u called for these processes please because nothing is working for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 09:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404756#M195487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T09:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404757#M195488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the solution to update serial number in delivery when posting goods movement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to implement 2 BADI for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, implement BADI based on LE_SHP_DELIVERY_PROC, in this badi, implement methods SAVE_DOCUMENT_PREPARE and SAVE_AND_PUBLISH_DOCUMENT.&lt;/P&gt;&lt;P&gt;The last method is necessary for set serial number without posting goods movement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In method SAVE_DOCUMENT_PREPARE you must update fields ANZSN for each item of the delivery . Bellow the code i wrote for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;* IT_DELIV is an attribute of the object &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and its type is LEDLV_OUTP_DBDATA-LIPS .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IT_SERNOS is an attribute of the object and type is &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LEDLV_OUTP_DBDATA-SERNO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF if_tcode = 'VL02N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      it_deliv = temp_xlips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT It_deliv assigning &amp;lt;deliv&amp;gt;.&lt;/P&gt;&lt;P&gt;         &amp;lt;deliv&amp;gt;-anzsn = &amp;lt;deliv&amp;gt;-lfimg.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Search all serial number set for this delivery &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'LE_SHP_DLVOUTP_SERNR_SELECT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          it_deliv_item         = it_deliv&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          et_sernos             = it_sernos&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          records_not_found     = 1&lt;/P&gt;&lt;P&gt;          records_not_requested = 2&lt;/P&gt;&lt;P&gt;          OTHERS                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT ct_xlikp ASSIGNING &amp;lt;likp&amp;gt; .&lt;/P&gt;&lt;P&gt;        LOOP AT ct_xlips ASSIGNING &amp;lt;lips&amp;gt; &lt;/P&gt;&lt;P&gt;             WHERE vbeln = &amp;lt;likp&amp;gt;-vbeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;In my case serial number is link with Batch Number&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;So i check that Batch is set , if not i don't update &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          CHECK NOT &amp;lt;lips&amp;gt;-charg IS INITIAL.&lt;/P&gt;&lt;P&gt;          CLEAR w_count.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Count how many serail number are set for the iteM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          LOOP AT it_sernos TRANSPORTING NO FIELDS&lt;/P&gt;&lt;P&gt;              WHERE vbeln = &amp;lt;lips&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;                AND posnr = &amp;lt;lips&amp;gt;-posnr.&lt;/P&gt;&lt;P&gt;            ADD 1 TO w_count.&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If current number of serial number set for the item&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is not equal to the count then update .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          CHECK &amp;lt;lips&amp;gt;-anzsn NE w_count.&lt;/P&gt;&lt;P&gt;          &amp;lt;lips&amp;gt;-anzsn = w_count.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then implement BADI based on LE_SHP_GOODSMOVEMENT. You only have one method available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find bellow the code i wrote for creating serial number, update delivery and make PGI right .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;* &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;In my case as i already said, serial number are &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;dependant of Batch number &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Search for all delivery using the same batch number to &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the last serial number .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from lips&lt;/P&gt;&lt;P&gt;    appending corresponding fields of table it_lips&lt;/P&gt;&lt;P&gt;    for all entries in xlips&lt;/P&gt;&lt;P&gt;    where charg  = xlips-charg&lt;/P&gt;&lt;P&gt;      and serail = xlips-serail&lt;/P&gt;&lt;P&gt;      and matnr  = xlips-matnr&lt;/P&gt;&lt;P&gt;      and charg  ne space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Search for all serial number link with thoses delivery &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_lips assigning &amp;lt;lips&amp;gt; .&lt;/P&gt;&lt;P&gt;    append &amp;lt;lips&amp;gt; to it_deliv_item.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'LE_SHP_DLVOUTP_SERNR_SELECT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      it_deliv_item         = it_deliv_item&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      et_sernos             = et_sernos&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      records_not_found     = 1&lt;/P&gt;&lt;P&gt;      records_not_requested = 2&lt;/P&gt;&lt;P&gt;      others                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at xlips assigning &amp;lt;xlips&amp;gt;.&lt;/P&gt;&lt;P&gt;    case &amp;lt;xlips&amp;gt;-charg .&lt;/P&gt;&lt;P&gt;      when space.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;No Batch for my item so Error message .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        message e065(vl) with &amp;lt;xlips&amp;gt;-posnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  The number of partial deliveries &amp;amp; has already been reached&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when others.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check that some serial number are missing for the item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        clear : w_cpt , loc_sernr .&lt;/P&gt;&lt;P&gt;        free it_serial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        loop at et_sernos transporting no fields&lt;/P&gt;&lt;P&gt;          where vbeln = &amp;lt;xlips&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;            and posnr = &amp;lt;xlips&amp;gt;-posnr .&lt;/P&gt;&lt;P&gt;          add 1 to w_cpt.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        check w_cpt &amp;lt; &amp;lt;xlips&amp;gt;-lfimg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At least one serial number is missing .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        w_dotimes = &amp;lt;xlips&amp;gt;-lfimg - w_cpt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        loc_sernr-charg = &amp;lt;xlips&amp;gt;-charg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Search for the last serial number &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        loop at it_lips assigning &amp;lt;lips&amp;gt;&lt;/P&gt;&lt;P&gt;           where charg = &amp;lt;xlips&amp;gt;-charg&lt;/P&gt;&lt;P&gt;             and matnr = &amp;lt;xlips&amp;gt;-matnr.&lt;/P&gt;&lt;P&gt;          loop at et_sernos assigning &amp;lt;sernos&amp;gt;&lt;/P&gt;&lt;P&gt;             where vbeln = &amp;lt;lips&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;               and posnr = &amp;lt;lips&amp;gt;-posnr.&lt;/P&gt;&lt;P&gt;            use_sernr = &amp;lt;sernos&amp;gt;-sernr.&lt;/P&gt;&lt;P&gt;            check use_sernr-cpt &amp;gt; loc_sernr-cpt.&lt;/P&gt;&lt;P&gt;            loc_sernr = use_sernr.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;creation of the new serial number .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        do w_dotimes times.&lt;/P&gt;&lt;P&gt;          add 1 to loc_sernr-cpt.&lt;/P&gt;&lt;P&gt;          append initial line to it_serial &lt;/P&gt;&lt;P&gt;               assigning &amp;lt;serial&amp;gt;.&lt;/P&gt;&lt;P&gt;          &amp;lt;serial&amp;gt;-sernr = loc_sernr.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        check not it_serial[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        w_qty = &amp;lt;xlips&amp;gt;-lfimg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;update delivery with all new serial number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'SERNR_ADD_TO_LS'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            profile               = &amp;lt;xlips&amp;gt;-serail&lt;/P&gt;&lt;P&gt;            material              = &amp;lt;xlips&amp;gt;-matnr&lt;/P&gt;&lt;P&gt;            quantity              = w_qty&lt;/P&gt;&lt;P&gt;            j_vorgang             = 'PMS8'&lt;/P&gt;&lt;P&gt;            document              = &amp;lt;xlips&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;            item                  = &amp;lt;xlips&amp;gt;-posnr&lt;/P&gt;&lt;P&gt;            debitor               = is_likp-kunnr&lt;/P&gt;&lt;P&gt;            vbtyp                 = is_likp-vbtyp&lt;/P&gt;&lt;P&gt;            bwart                 = '601'&lt;/P&gt;&lt;P&gt;          importing&lt;/P&gt;&lt;P&gt;            anzsn                 = &amp;lt;xlips&amp;gt;-anzsn&lt;/P&gt;&lt;P&gt;          tables&lt;/P&gt;&lt;P&gt;            sernos                = it_serial&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;            konfigurations_error  = 1&lt;/P&gt;&lt;P&gt;            serialnumber_errors   = 2&lt;/P&gt;&lt;P&gt;            serialnumber_warnings = 3&lt;/P&gt;&lt;P&gt;            no_profile_operation  = 4&lt;/P&gt;&lt;P&gt;            others                = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        call function 'SERIAL_LISTE_POST_LS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;           wait          = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;UPDATE of methods parameter to set the number of &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;serial number correct , if this part is not done then&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you will get error message in the posting but the &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;delivery is update correctly.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at ct_ximseg assigning &amp;lt;mseg&amp;gt;&lt;/P&gt;&lt;P&gt;          where vbeln = &amp;lt;xlips&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;            and posnr = &amp;lt;xlips&amp;gt;-posnr.&lt;/P&gt;&lt;P&gt;      &amp;lt;mseg&amp;gt;-anzsn = &amp;lt;xlips&amp;gt;-anzsn .&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  modify lips from table xlips.&lt;/P&gt;&lt;P&gt;  commit work and wait.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to rewards if this solve your trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bertrand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 10:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404757#M195488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T10:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404758#M195489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bertrand,&lt;/P&gt;&lt;P&gt;in my case I wont have to search for serial numbers,the serial numbers will be already be given, do i still have to implement the BADIs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to create delivery,picking and post gooods issue should i use the fm BAPI_DELIVERYPROCESSING_EXEC or smthing else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404758#M195489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404759#M195490</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;  I am using SERNR_ADD_TO_AU to update serial number to sales order. This function call is followed by call to SERIAL_POST_UPDATE_AU. Serial number does get created in sales order. But the problem is it wipes out the stock information in the serial master. This creates a problem when we have to post goods issue using that serial number in the corresponding delivery document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone run into similar problem? I would appreciate any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 21:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404759#M195490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T21:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404760#M195491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the DELVRY03 idoc with SHPCON message to accomplish what you are trying to do.  The serial numbers are sent in on the E1EDL11 segments, and we are setting the E1EDK18-QUALF value to PGI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Terri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Dec 2007 19:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404760#M195491</guid>
      <dc:creator>terri_walton2</dc:creator>
      <dc:date>2007-12-09T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404761#M195492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am calling FM SERNR_ADD_TO_ls and SERIAL_LISTE_POST_LS in sequence .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not update the delivery with the serial numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Sample code is below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sernos-sernr = p_sernr .&lt;/P&gt;&lt;P&gt;APPEND wa_sernos TO t_sernos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SERNR_ADD_TO_LS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   profile                     = 'S004'&lt;/P&gt;&lt;P&gt;    material                    = '80023UN01'&lt;/P&gt;&lt;P&gt;    quantity                    = '0'&lt;/P&gt;&lt;P&gt;    document                    = '0080835864'&lt;/P&gt;&lt;P&gt;    item                        = '000010'&lt;/P&gt;&lt;P&gt;    debitor                     = '10031801'&lt;/P&gt;&lt;P&gt;    vbtyp                       = 'J'&lt;/P&gt;&lt;P&gt;   serial_commit               = serial_commit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    sernos                      = t_sernos         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SERIAL_LISTE_POST_LS'            .&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something more that needs to be done??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ketan Nandrajog on Jul 1, 2008 4:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 14:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404761#M195492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T14:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404762#M195493</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 on 46C, and I am using WS_DELIVERY_UPDATE to creat an HU and pack the delivery. I seem to have the HU creation and packing working, however I cannot get this FM to update the serial numbers. I think I may be populating the wrong serial structures?? Not sure... Any help would be VERY much appreaciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 19:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404762#M195493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T19:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module or BAPI to update Delivery</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404763#M195494</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;The two function modules update tables SER01 with the delivery-id (in field SER01-LEIF_NO) in which record you find DER01-OBKNR.  Using that OBKNR in table OBJK-OBKNR will return OBJK-SERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good.  The field LIPS-ANZSN is not a serial number but the number of serial numbers of course.  This does not appear to be updated by the FMs listed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution will work except that you are updating LIPS directly which is a major no-no.  Do you know of any other means to update that field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some days later......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive found a FM that will solve the ANZSN problem  : 'L_SER_SAVE_ANZSN_IN_DELIVERY'.  It will post the nubmer of serial numbers in to LIPS-ANZSN. The delivery document needs to have been posted for this FM to work so you need to pick an enhancement after document save. For VL01(N) that will be program SAPMV50A,  Include id : FV50XF0B_BELEG_SICHERN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the  'SERNR_ADD_TO_LS'  and  'SERIAL_LISTE_POST_LS' worked then you will find an entry in table SER01.  The document number will be in SER01-LIEF_NR.  That same record will give you SER01-OBKNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SER01-OBKNR is the key field for table OBJK-OBKNR. That record will give you OBJK-SERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Philip Jones on May 4, 2011 12:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 11:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-bapi-to-update-delivery/m-p/1404763#M195494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-02T11:02:19Z</dc:date>
    </item>
  </channel>
</rss>

