Skip to Content
author's profile photo Former Member
Former Member

BAPI_HU_CREATE is not updating VEKP

Hi all,

I need to Pack Deliveries. So I am using BAPI_HU_CREATE to create Handling Units with my own External Handling Unit Identification number(HU_EXID). It is generating an Internal number(HU_ID) but not updating in VEKP table. so I used commit after that but still not woking. Please give me your suggestions.

My code is :

wa_header-PACK_MAT = 'XXXX'.

CALL FUNCTION 'BAPI_HU_CREATE'

EXPORTING

HEADERPROPOSAL = WA_HEADER

IMPORTING

HUHEADER = WA_HUHEADER

HUKEY = WA_HUKEY

TABLES

RETURN = LT_RETURN.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = C_X.


Thanks in advance.


Regards,

Raghu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 16, 2014 at 09:44 AM

    Check the help for that bapi, you are missing INIT_STATUS

    Example

    Example 1:

    Creating a non-assigned handling unit with packaging material PALLET with a "Planned HU" physical status:

    HEADERPROPOSAL: pack_mat = 'PALETTE'
    hu_status_init = 'A'.

    Example 2:

    Following access of the above method (example 1), the return parameter HUKEY returns the ID of the handling unit that was created in the KEY = ID1 field. To pack the handling unit that was just created in another handling unit, call up the BAPI_HU_CREATE method again with the following import parameters:

    IHEADERPROPOSAL: pack_mat = 'CONTAINER'
    ITEMPROPOS AL: hu_item_type = '3'

    lower_level_key = ID1

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.