Application Development 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: 

How to pack material (linked to a delivery) with BAPI_SHIPMENT_CHANGE ?

Former Member
0 Kudos

Hello All,

i would like to pack material into Handling Unit with the BAPI_SHIPMENT_CHANGE like in transaction VT02N

i have created my shipment with BAPi_SHIPMENT_CREATE : i see material with delivery reference in part of screen

"Material to ba packed" and my Handling Unit in part of screen "All existing Hus available for packing".

i want to pack the material into the Handling Unit but i don't know how to fill BAPI_SHIPMENT_CHANGE to pack the material.

is it possible with this bapi ?

Thanks a lot for your answers

Regards,

My

7 REPLIES 7

Former Member
0 Kudos

Hi My,

You can also use BAPI_HU_CREATE/CHANGE to pack.

create HU using the BAPI_HU_CREATE and assing it to the shipment with BAPI_HU_CHANGE adding the Object (04) and Object key (Shippment Number).

OR.

pass below values to BAPI_SHPMNT_CHANGE:

HDUNHEADER fields to be filled

VEKP-VENUM

VEKP-EXIDV

VEKP-BRGEW

VEKP-GEWEI

VEKP-BTVOL

VEKP-VOLEH

HDUNITEM fields to be filled

VEPO-VENUM

VEPO-VEPOS

VEPO-VBELN

VEPO-POSNR

VEPO-VEMNG

VEPO-VEMEH

VEPO-MATNR

VEPO-CHARG

--

Reddy

Edited by: V.V.Reddy on May 7, 2010 12:05 PM

0 Kudos

Hello Redy,

i have create my shipment with material and handling unit.

it's not possible to pack material with Handling unit after creation with another bapi/function ?

In which field/ status have i to precise that they have to be pack together ?

Thanks a lot

Regards

MY

0 Kudos

Hello

i think i make a mistake when i fill the tables :

i 'm going to try again but with which values have i to fill the actions table ? (i think i have to fill alsot these two tables :

IT_HUN_HDR_ACTION

IT_HUN_ITM_ACTION

and i don't understand the difference between these fields in table HDUNITEM ?

HDL_UNIT_INTO and HDL_UNIT_NO

HDL_UNIT_EXID_INTO and HDL_UNIT_EXID ?

i don't find a field like VEPO-VEPOS in table HDUNITEM ?

Thanks a lot

Regards,

MY

Edited by: MY on May 7, 2010 12:29 PM

Edited by: MY on May 7, 2010 12:31 PM

0 Kudos

> and i don't understand the difference between these fields in table HDUNITEM ?

> HDL_UNIT_INTO and HDL_UNIT_NO

> HDL_UNIT_EXID_INTO and HDL_UNIT_EXID ?

HDL_UNIT_EXID_INTO: ID of the Handling Unit into Which Goods Are Packed

HDL_UNIT_EXID: External Handling Unit Identification

Try without giving values to these fields

> i don't find a field like VEPO-VEPOS in table HDUNITEM ?

try with out the field

--

Reddy

0 Kudos

Hello Reddy

just a precision :

i 'm going to try again but with which values have i to fill the actions table ? (i think i have to fill also these two tables :

IT_HUN_HDR_ACTION

IT_HUN_ITM_ACTION

and i will fill with 'C' into the action fields table corresponding to the fields filled ?

and material (with a delivery reference) to pack will be packed into Handling unit ?

Regards,

Thanks a lot

My

0 Kudos

Hello

Finally i tried with BAPI_HU_CREATE :

Hu is well created

but when i want to assign it to shipment with bapi BAPI_HU_CHANGE_HEADER : i have an error :

In my case i am using the object key as "Packing" (04) - in which BAPI is not executing and displaying a message.

Thanks

regards

0 Kudos

Hi MY,

Did you find solution using BAPI_SHIPMENT_CHANGE.

Please share your findings with me.

Tahnks,

Akshay