<?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/BAPI to delete assignments as VL02n in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492200#M1746238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try the BAPI 'BAPI_HU_DELETE_FROM_DEL'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2013 14:08:33 GMT</pubDate>
    <dc:creator>former_member196490</dc:creator>
    <dc:date>2013-06-27T14:08:33Z</dc:date>
    <item>
      <title>Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492199#M1746237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my program I have a requirement to delete assignment which is done through VL02n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the steps followed:&lt;/P&gt;&lt;P&gt;1. Enter the outbound delivery no. in VL02n&lt;/P&gt;&lt;P&gt;2. Click on Pack button&lt;/P&gt;&lt;P&gt;3. In Pack Material tab, select all Handling Units and click Delete assignment button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want this functionality to be written in my program. I debugged and found the FM V51P_DELETE_RELATIONSHIP.&lt;/P&gt;&lt;P&gt;Following is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'V51P_DELETE_RELATIONSHIP'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if_control&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_hus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_venum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "table which contains all the Internal HU number associated with the delivery&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_new_hus&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_hus&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_messages &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_messages&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fatal_error &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;But this doesn't help. Is there any other steps that are supposed to be followed after this or should I use a different FM?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Please give inputs on this...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492199#M1746237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492200#M1746238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try the BAPI 'BAPI_HU_DELETE_FROM_DEL'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492200#M1746238</guid>
      <dc:creator>former_member196490</dc:creator>
      <dc:date>2013-06-27T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492201#M1746239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply. BAPI_HU_DELETE_FROM_DEL will delete the Handling Units, but to my requirement Handling units need to be only deassigned from the delivery.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492201#M1746239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492202#M1746240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;'V51P_DELETE_RELATIONSHIP'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if_control&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;'X'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_hus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;lt_venum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "table which contains all the Internal HU number associated with the delivery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_new_hus&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;lt_hus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; et_messages &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;lt_messages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fatal_error &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is the above code giving some error? If not then maybe changes would be happening but not getting written to DB, so try calling BAPI_TRANSACTION_COMMIT after this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 17:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492202#M1746240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-27T17:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492203#M1746241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code populates lt_messages with message "Handling unit&amp;nbsp; is packed - only entire HUs can be reassigned" for all the HUs (but sy-subrc = 0).The same error I get while doing manually through VL02n also, but I can still go back and save the changes which results in all the handling units getting deassigned from the delivery. &lt;/P&gt;&lt;P&gt;I have BAPI_TRANSACTION_COMMIT too after this, but no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 10:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492203#M1746241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-01T10:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492204#M1746242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am afraid that you cannot achieve this requirement with BAPI because BAPIs simulate the transaction behavior and if you cannot do directly via transaction then BAPIs would also fail to do so. May be you need to check some configuration which might be preventing you deassigning. This is just a guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 17:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492204#M1746242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-01T17:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492205#M1746243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ankit for the suggestion. Let me check the configuration and see if that is the issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 07:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492205#M1746243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-03T07:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492206#M1746244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever solve this issue?&lt;/P&gt;&lt;P&gt;I have the same requirement and have the same error: &lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Handling unit &amp;amp;1 is packed - only entire HUs can be reassigned in FM. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;This is the same error that comes in VL02N but in the standard it shows the error and then REMOVES the assignments. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernanda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 16:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492206#M1746244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-14T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492207#M1746245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, check this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/3684769" title="https://scn.sap.com/thread/3684769"&gt;Function Modules to Unassign HU from a Outbound... | SCN&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 14:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492207#M1746245</guid>
      <dc:creator>former_member41806</dc:creator>
      <dc:date>2015-12-03T14:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module/BAPI to delete assignments as VL02n</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492208#M1746246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RajaRajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try to use 'BAPI_HU_CHANGE_HEADER'? I used this function module to assign HU to delivery, so I'm pretty sure that it should work for unassignment as well (try to clear PACK_MAT_OBJ and PACK_MAT_OBJ_KEY in HUCHANGED structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kirill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 17:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-bapi-to-delete-assignments-as-vl02n/m-p/9492208#M1746246</guid>
      <dc:creator>kirill_smirnov</dc:creator>
      <dc:date>2015-12-03T17:16:07Z</dc:date>
    </item>
  </channel>
</rss>

