BAPI_SHIPMENT_CHANGE - update shiping with a new delivery?

Question: I can't get this BAPI to work.
I only want to add a delivery to the shipment.

**************************************
DATA: w_headerdata TYPE bapishipmentheader,
w_headerdataaction TYPE bapishipmentheaderaction,
w_transport LIKE bapishipmentids-shipmentnum.

DATA: t_itemdata LIKE bapishipmentitem OCCURS 0 WITH HEADER LINE,
t_itemdataaction LIKE bapishipmentitemaction OCCURS 0 WITH HEADER LINE,
t_hdunheader LIKE bapishipmenthdunheader OCCURS 0 WITH HEADER LINE,
t_hdunheaderaction LIKE bapishipmenthdunheaderaction OCCURS 0 WITH HEADER LINE,
t_hdunitem LIKE bapishipmenthdunitem OCCURS 0 WITH HEADER LINE,
t_hdunitemaction LIKE bapishipmenthdunitemaction OCCURS 0 WITH HEADER LINE,
t_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.

w_headerdata-shipment_num = p_tknum.
w_headerdataaction-shipment_num = 'X'.
*
t_itemdata-delivery = p_vbeln.
t_itemdata-itenerary = '0001'.
APPEND t_itemdata.

t_itemdataaction-delivery = 'X'.
t_itemdataaction-itenerary = 'X'.
APPEND t_itemdataaction.
*

CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
EXPORTING
headerdata = w_headerdata
headerdataaction = w_headerdataaction
* TECHNCONTROL =
TABLES
itemdata = t_itemdata
itemdataaction = t_itemdataaction
return = t_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = t_return.

Does anyone have a code example?

Please advise, Dude

Answer:
I have the same question, I want to add delivery to a shipment with this BAPI.

How can I use it ?

Thanks a lot
Copyright ?2007 - 2008 www.jt77.com