Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Handling Units Creation with BAPI

Former Member
0 Likes
5,974

Hi Friends

I want to create handling units in SAP ECC with Out Delivery in the background.

Once Outbound Delivery is created.Handling units to be assigned to the Delivery and packing should be done.

I came to know below SAP Standard BAPI's . Please help to advice input values for BAPI to create Handling units and assign them to delivery .

*BAPI :

BAPI_HU_CREATE

BAPI_HU_CHANGE_HEADER

WS_DELIVERY_UPDATE*

Thanks in Advance

SR

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,128

Hi Friends

Please help on this requirement. <removed by moderator>

Thanks

SR

Edited by: Thomas Zloch on Sep 10, 2011 10:45 PM

10 REPLIES 10
Read only

Former Member
0 Likes
4,129

Hi Friends

Please help on this requirement. <removed by moderator>

Thanks

SR

Edited by: Thomas Zloch on Sep 10, 2011 10:45 PM

Read only

0 Likes
4,128

Hi

Try using the BAPI BAPI_HU_CREATE

http://www.se80.co.uk/sapfms/b/bapi/bapi_hu_create.htm

Shiva

Read only

madhu_vadlamani
Active Contributor
0 Likes
4,128

Hi Ravi,

Check with BAPI BAPI_HU_CREATE.Check and tell if need help.

Regards,

Madhu.

Read only

0 Likes
4,128

Hi Madhu

I tried to create Handling Unit with BAPI_HU_CREATE and is showing Handling Unit no after BAPI execution . But I can not find Handling Unit no in VEKP table .

Could you please let me know input value handling creation and packing and assigning to Delivery document.

Thanks in Advance.

SR

Read only

0 Likes
4,128

Hi Ravi,

Are you getting any error after execution.if suppose the return messages are successful then run bapi_transaction_commit.Then only that will save in data base.Check the documentation once.Check in vepo.

Regards,

Madhu.

Edited by: madhurao123 on Sep 10, 2011 3:03 PM

Edited by: madhurao123 on Sep 10, 2011 3:04 PM

Read only

0 Likes
4,128

Thanks Madhu

I created handling units and packed material successfully with BAPI_HU_CREATE & BAPI_HU_PACK.

Please advice input parameters for WS_DELIVERY_UPDATE or other program to assign already created handling units to outbound delivery.

Thanks in Advance.

SR

Read only

0 Likes
4,128

Hi Ravi,

Please check the links.

.

Check OSS 541204 and 27485

Regards,

Madhu.

Edited by: madhurao123 on Sep 11, 2011 4:27 PM

Read only

0 Likes
4,128

Hi Madhu

That link does not give any information for assigning already created handling units to outbound delivery.

Please help

Thnaks

Ravi

Read only

0 Likes
4,128

Hi

Try using the FM 'SD_DELIVERY_UPDATE_PACKING'.


DATA: it_verko TYPE TABLE OF verko,
      ls_verko TYPE verko,
      it_verpo TYPE TABLE OF verpo,
      it_prot TYPE TABLE OF prott,
      lv_vbeln TYPE likp-vbeln,
      lv_exidv TYPE vekp-exidv.
CONSTANTS: cn_exidv TYPE vekp-exidv VALUE '00000000001000095812',  "using constants for just a test
                   cn_vbeln TYPE likp-vbeln VALUE '0090000669'.                      "using constants for just a test

lv_vbeln = cn_vbeln.
lv_exidv = cn_exidv.

REFRESH: it_prot, it_verpo.
SELECT SINGLE exidv vhilm FROM vekp INTO CORRESPONDING FIELDS OF ls_verko
      WHERE exidv EQ lv_exidv.
APPEND ls_verko TO it_verko.

CALL FUNCTION 'SD_DELIVERY_UPDATE_PACKING'
  EXPORTING
    delivery            = cn_vbeln
    commit              = 'X'
    synchron            = 'X'
  TABLES
    verko_tab           = it_verko
    verpo_tab           = it_verpo
    prot                = it_prot
  EXCEPTIONS
    update_not_possible = 1
    OTHERS              = 2
.

[Update Outbound Delivery| http://www.sapfans.com/forums/viewtopic.php?f=13&t=352300];

Shiva

Read only

0 Likes
4,128

Hi Shiva

I tried to assign handling units to outbound delivery with FM 'SD_DELIVERY_UPDATE_PACKING'

But system is giving the error message :

There is already a handling unit 199999990000005517 posted for GR without stock

Message no. HUSELECT005

Diagnosis

Handling unit 199999990000005517 already exists in the system with the status 'Posted for GI without stock information (at a non-HU storage location)'.

Procedure

Check whether the existing handling unit can be deleted or assign a new number to the current handling unit to ensure that both handling units can be clearly identified.

Please help to resolve.

Thanks

Ravi