<?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 to update delivery note in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092020#M101036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. Your suggestion has given me a lead and I will try to fit this logic in my program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again &lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2005 16:53:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-12T16:53:29Z</dc:date>
    <item>
      <title>BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092011#M101027</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;Is there any BAPI available with which we can update a delivery note and also if possible do PGI using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case there are separate BAPI's for both the processes that will do for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 11:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092011#M101027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092012#M101028</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;  Check the fm 'RV_DELIVERY_POST_GI_VIEW', this might be of help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 11:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092012#M101028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T11:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092013#M101029</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;Do you know any other FM for this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 12:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092013#M101029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092014#M101030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at function group V50R_CREA.&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, 12 Dec 2005 15:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092014#M101030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T15:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092015#M101031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;WS_DELIVERY_UPDATE&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;WS_DELIVERY_UPDATE_2&amp;lt;/b&amp;gt; ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following sample code works for Automatic PGI of an existing delivery. Use this as a basis and code for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
  DATA: ls_vbkok LIKE vbkok,
        lv_error_pgi TYPE xfeld,
        lt_prot LIKE prott OCCURS 0 WITH HEADER LINE,
        lwa_prot like prott.

  ls_vbkok-vbeln_vl = &amp;lt;your Delivery Note number&amp;gt;.
  ls_vbkok-wabuc = c_true.

  CALL FUNCTION 'WS_DELIVERY_UPDATE'
    EXPORTING
      vbkok_wa                           = ls_vbkok
      synchron                           = c_true
*         NO_MESSAGES_UPDATE                 = ' '
      commit                             = c_true
      delivery                           = &amp;lt;your Delivery Note number&amp;gt;
*         UPDATE_PICKING                     = ' '
*         NICHT_SPERREN                      = ' '
*         IF_CONFIRM_CENTRAL                 = ' '
*         IF_WMPP                            = ' '
*         IF_GET_DELIVERY_BUFFERED           = ' '
*         IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
*         IF_DATABASE_UPDATE                 = '1'
*         IF_NO_INIT                         = ' '
*         IF_NO_READ                         = ' '
*         IF_ERROR_MESSAGES_SEND_0           = 'X'
*         IF_NO_BUFFER_REFRESH               = ' '
*         IF_NO_MES_UPD_PACK                 = ' '
*       IMPORTING
*         EF_ERROR_ANY_0                     =
*         EF_ERROR_IN_ITEM_DELETION_0        =
*         EF_ERROR_IN_POD_UPDATE_0           =
*         EF_ERROR_IN_INTERFACE_0            =
     ef_error_in_goods_issue_0          = lv_error_pgi
*         EF_ERROR_IN_FINAL_CHECK_0          =
   TABLES
*         VBPOK_TAB                          =
     prot                               = lt_prot[]
*         VERKO_TAB                          =
*         VERPO_TAB                          =
*         VBSUPCON_TAB                       =
*         IT_VERPO_SERNR                     =
*         IT_PACKING                         =
*         IT_PACKING_SERNR                   =
*         IT_REPACK                          =
*         IT_HANDLING_UNITS                  =
*         ET_CREATED_HUS                     =
            .

  IF NOT lt_prot[] IS INITIAL.
    READ TABLE lt_prot WITH KEY msgty = 'E'.
    IF sy-subrc EQ 0.
****Errors Exist 
***      Goods Issue Failed
    ENDIF.
  ELSE.
***    Goods Issue posted sucessfully
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&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;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 15:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092015#M101031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092016#M101032</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;Thanks for this information Rob. &lt;/P&gt;&lt;P&gt;However, do you have any idea how the FM "BAPI_DELIVERYPROCESSING_EXEC" works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone know how this FM works please let me know &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 15:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092016#M101032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092017#M101033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u have any idea if I will be able to update tne header of a delivery note for which the PGI has already been done. I want to replace a BDC program and want the following operations:&lt;/P&gt;&lt;P&gt;1) PGI a delivery if not PGIed &lt;/P&gt;&lt;P&gt;2) Update the header information &lt;/P&gt;&lt;P&gt;3)do not do PGI on those which have been PGIed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 15:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092017#M101033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T15:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092018#M101034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the documentation. If that doesn't help, let us know.&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, 12 Dec 2005 15:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092018#M101034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092019#M101035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can as long as the field is available in the structure VBKOK. See ls_vbkok in my eariler post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whatever is available in VBKOK you can change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, You can determine whether a delivery is PGIed or not by looking at LIKP-WADAT_IST and then set WABUC in VBKOK structure accordingly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Read delivery header first&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM likp WHERE vbeln EQ &amp;lt;your del. number&amp;gt;.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Check whether delivery is PGIed or not and set for automatic PGI&lt;/P&gt;&lt;P&gt;IF likp-wadat_ist IS INITIAL.&lt;/P&gt;&lt;P&gt;  ls_vbkok-wabuc = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Set all header fields you want to change&lt;/P&gt;&lt;P&gt;ls_vbkok-&amp;lt;fieldname&amp;gt; = ...&lt;/P&gt;&lt;P&gt;ls_vbkok-&amp;lt;fieldname&amp;gt; = ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Finally call WS_DELIVERY_UPDATE_2&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;&amp;lt;b&amp;gt;Varun, Please do not forget to award points to helpful answers and close the post if the problem has been solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 15:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092019#M101035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI to update delivery note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092020#M101036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. Your suggestion has given me a lead and I will try to fit this logic in my program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again &lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 16:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-update-delivery-note/m-p/1092020#M101036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T16:53:29Z</dc:date>
    </item>
  </channel>
</rss>

