<?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_SHIPMENT_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650359#M879191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JACK,&lt;/P&gt;&lt;P&gt;      Get the deliveries assigned to a shipment using &lt;STRONG&gt;RV_SHIPMENT_VIEW&lt;/STRONG&gt;. Then use SD_DELIVERY_ASSIGN_TO_SHIPMENT to delete or assign delieveries. Then do a save using SD_SHIPMENTS_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is documentation associated with SD_DELIVERY_ASSIGN_TO_SHIPMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 15:02:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-17T15:02:06Z</dc:date>
    <item>
      <title>BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650358#M879190</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 trying to use BAPI_SHIPMENT_CHANGE to remove a delivery from a shipment.  The RETURN structure continually returns a message saying that the Shipment could not be changed.  Has anyone used this BAPI with any success?  Could you help me with the data structures?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried SD_DELIVERY_ASSIGN_TO_SHIPMENT and SD_SHIPMENTS_SAVE with no proper results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had to programmatically remove a delivery from a shipment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 14:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650358#M879190</guid>
      <dc:creator>jack_thelen</dc:creator>
      <dc:date>2008-04-17T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650359#M879191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JACK,&lt;/P&gt;&lt;P&gt;      Get the deliveries assigned to a shipment using &lt;STRONG&gt;RV_SHIPMENT_VIEW&lt;/STRONG&gt;. Then use SD_DELIVERY_ASSIGN_TO_SHIPMENT to delete or assign delieveries. Then do a save using SD_SHIPMENTS_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is documentation associated with SD_DELIVERY_ASSIGN_TO_SHIPMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 15:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650359#M879191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650360#M879192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help, that's not quite working though.  Here's the code I'm using.  I'm trying to remove all deliveries from the shipment, so I've left the I_DELIVERIES table blank...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Remove delivery from shipment
  SELECT SINGLE * FROM vttk WHERE tknum = l_ntknum.

  CALL FUNCTION 'RV_SHIPMENT_VIEW'
    EXPORTING
      shipment_number                   = vttk-tknum
      LANGUAGE                          = SY-LANGU
      OPTION_ITEMS                      = 'X'
    IMPORTING
      F_VTTKVB                          = xvttk
    TABLES
      F_VTTP                            = xvttp.


  CALL FUNCTION 'SD_DELIVERY_ASSIGN_TO_SHIPMENT'
    EXPORTING
      i_tknum                      = vttk-tknum
    TABLES
      c_xvttp                      = xvttp
      c_yvttp                      = yvttp
      c_xvtsp                      = xvtsp
      c_yvtsp                      = yvtsp
      i_deliveries                 = deliveries
      i_xtrlk                      = xtrlk
      i_xtrlp                      = xtrlp
      i_xvtts                      = xvtts
    CHANGING
      c_xvttk                      = xvttk.

  APPEND xvttk to xvttk_t.

  CALL FUNCTION 'SD_SHIPMENTS_SAVE'
    EXPORTING
      i_transaktionstyp            = 'V'
    TABLES
      i_xvttk                      = xvttk_t
      i_yvttk                      = yvttk_t
      i_xvttp                      = xvttp
      i_yvttp                      = yvttp.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See anything wrong?  It's having no effect on the shipment at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 15:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650360#M879192</guid>
      <dc:creator>jack_thelen</dc:creator>
      <dc:date>2008-04-17T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650361#M879193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure that xvttk has update flag UPDKZ = 'U':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;xvttk-updkz = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND xvttk TO xvttk_t.&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;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650361#M879193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650362#M879194</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´m trying to do the same, unassign deliveries from the shipment using this functions but it does not have any effect on the shipment. &lt;/P&gt;&lt;P&gt;I copied the same code as above, also updkz = 'U' but it does not works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 15:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650362#M879194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SHIPMENT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650363#M879195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing missing is COMMIT WORK after all those FMs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-shipment-change/m-p/3650363#M879195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-01T15:03:08Z</dc:date>
    </item>
  </channel>
</rss>

