07-07-2006 8:22 AM
Hi,
I'm trying to test how to use BAPI_HU_DELETE. But when I tested it, I always get the "Processing of HUs for selected objects not possible" message. Can anyone tell me how to resolve this problem or other way to delete a HU remotely?
07-07-2006 8:35 AM
Please provide the message details like message type, id and number
-Kiran
07-07-2006 8:42 AM
Hi Kiran,
The meesage type is "E", id is "HUFUNCTIONS" and number is "261".
Thanks + Regards
Golden
07-07-2006 8:44 AM
go to se91. enter hufunctions in the message class and 261 in the message number. Display and read the ong text of the message. this will give u some pointers.
I will try 2 investigate further...
-Kiran
07-07-2006 8:55 AM
Hi Kiran,
Thanks for your reference. Rrom the long text of the message, I got "Processing of handling units for inbound and outbound deliveries, orders, and shipments is not possible. Process the handling unit in the relevant document-processing mode."
Does this mean that we can't delete some HU belonging to a devlivey through this BAPI?
Thanks + Regards
Golden
07-07-2006 9:11 AM
Please go through the BAPI documentation. R u setting the right impot parameters.
Functionality
Deleting a handling unit.
The handling unit that is identified by the HUKEY import parameter is
deleted.
Special case: If the handling unit that is to be deleted is itself the
contents of a higher-level handling unit (in other words, it has been
packed into another HU), it is only deleted if the import indicator
"IfPacked" is set.
If the handling unit contains other lower-level handling units, you can
use the import indicator "WithLowerHUs" to dictate whether the system
should delete the entire sub-hierarchy. If this indicator is not set,
the lower-level handling units are unpacked.
Example
Deleting a container (key = KEY1) that contains a pallet (key = KEY2):
Example 1:
Import parameter: hukey-hu_exid = 'KEY1'
WithLowerHus = Space
=> The pallet is unpacked and the container-HU is deleted.
Example 2:
Import parameter: hukey-hu_exid = 'KEY1'
WithLowerHus = 'X'
=> Both the pallet and the container are deleted.
Example 3:
Import parameter: hukey-hu_exid = 'KEY2'
IfPacked = 'X'
=> The pallet is deleted.
07-07-2006 9:15 AM
Hi Kiran,
Thanks for your quick response. In fact, I've got this message from the internal document. It seems that we can't delete a HU directly while we must do this in the documents that it's assigned to.
Thanks + Regards
Golden
07-07-2006 8:43 AM
Hello,
May be the HU which u have gave for testing would be the sub HU. for that u have give the Main Hu also.
Try with the Tcode LM19/Lm22 in the debug mode and check the parameters to the BAPI.
Reward points if it is useful.
Regards,
Vasanth
07-07-2006 8:48 AM
Hi Vasanth,
Can you explain your first words in detail?
I tried your given Tcode but I got "has no profile definition".
Thanks + Regards
Golden