2010 May 03 10:30 AM
Hello All,
I am in SAP ecc6 environment.
I have to create an individual outbound shipment which would process the sending of an outbound IDOC SHPMNT05.
I have found two function/Bapi SD_SHIPMENT_CREATE
And BAPI_SHIPMENT_CREATE.
Whatu2019s the better function/bapi to create the shipment ? The difference between this functions ?
And creating shipment with one of this functions will process the sending of the outbound IDOC like in transaction VT01N (with right customizing) ?
Or itu2019s better to do a call transaction ?
I u2018ve tried to create a shipment using function SD_SHIPMENT_CREATE
I have filled the following parameters :
The function finds the delivery but nothing is done and I have got no error message.
i don't understand why creation of shipment is not made.
is it better/easier to use bapi BAPI_SHIPMENT_CREATE ?
Has Anybody an example ?
call function 'SD_SHIPMENT_CREATE'
exporting
i_vttk_tplst = I_TPLST
i_vttk_shtyp = I_SHTYP
i_vttk_tknum = '0000000000'
I_VTTK_TDLNR =
I_VTTK_ROUTE = I_ROUTE
I_VTTK_EXTI1 =
I_VTTK_EXTI2 =
I_VTTK_SIGNI =
I_VTTK_TPBEZ =
I_PLTER_REG = I_PLTER_REG
I_PLTER_LBG = I_PLTER_LBG
I_PLTER_LEN = I_PLTER_LEN
I_PLTER_ABF =
I_PLTER_TBG =
I_PLTER_TEN =
I_OPT_STDIS = 'X'
I_OPT_STERM =
I_EXTNO =
IMPORTING
E_VTTKVB = E_VTTKVB
E_ERROR_DELIVERY = E_ERROR_DELIVERY
tables
i_ship_deliv = i_ship_deliv
e_vttpvb = e_vttpvb
E_VTRLK =
E_VTRLP =
E_VTTSVB =
E_VTSPVB =
E_VBPAVB =
E_SADRVB =
E_VTFAVB =
EXCEPTIONS
WRONG_SHIPMENT_TYPE = 1
WRONG_PLANNING_POINT = 2
WRONG_ROUTE = 3
WRONG_CARRIER = 4
DATE_INVALID = 5
TIME_INVALID = 6
WRONG_DATE_SEQUENCE = 7
WRONG_TIME_SEQUENCE = 8
CARRIER_DELETE_FLAG = 9
CARRIER_BLOCK_CENTRAL_POSTING = 10
CARRIER_BLOCK_CENTRAL_PURCHASE = 11
CARRIER_BLOCK_PURCHASE_QUALITY = 12
CARRIER_BLOCK_GOODS_RECEIPT = 13
EXTERNAL_NUMBER_INVALID = 14
SHIPMENT_BLOCKED = 15
DUPLICATE_SHIPMENT_NUMBER = 16
OTHERS = 17
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Else.
Commit work.
Endif.
Thanks a lot for your answers
Regards
MY
2010 May 03 2:22 PM
Hello All,
i have found : i use BAPI_CREATE_SHIPMENT with right parameters.
MY