‎2007 Oct 15 8:51 AM
Hi,
I would like to know the exact input parameters for 'BAPI_SHIPMENT_CREATE'.
Please let me know, If any body have idea on this.
Reward points will be there.
Regards,
Skumar.
‎2007 Oct 15 8:53 AM
‎2007 Oct 15 9:15 AM
hi
good
check out this code
Check the SAP Standard Program 'SDVTTK01'
this program uses 'BAPI_SHIPMENT_CREATE'
CALL FUNCTION 'BAPI_SHIPMENT_CREATE'
EXPORTING
HEADERDATA = HEADERDATA
IMPORTING
SHIPMENTGUID = SHIPMENTGUID
TRANSPORT = OBJECT-KEY-TRANSPORT
TABLES
ADDRESS = ADDRESS
HDUNHEADER = HDUNHEADER
HDUNITEM = HDUNITEM
RETURN = RETURN
ITEMONSTAGE = ITEMONSTAGE
STAGEDEADLINE = STAGEDEADLINE
STAGEDATA = STAGEDATA
ITEMDATA = ITEMDATA
HEADERDEADLINE = HEADERDEADLINE
EXCEPTIONS
OTHERS = 01.
reward point if helpful,.
thanks
mrutyun^
‎2007 Oct 15 10:50 AM
Nagaraj/Tripathy,
Thanks for your reply.Earlier when i tried to create the shupment. Bapi FM
was returning messages as follows
ID Message
BM No measurement unit is assigned to ISO-Code SEC
BM Specify at least 1 unit
Regards,
Skumar.
‎2007 Oct 15 10:53 AM
Hi,
It seems there is some problem with ur data which u r passing....please try to give some other data and test it.
Regards,
Nagaraj
‎2007 Oct 15 11:01 AM
Hi,
Earlier if any body has used ,Please send me the input parameters for this BAPI.
Regards,
Skumar.
‎2007 Oct 15 11:06 AM
Hi,
This function module creates a new shipment based on the data supplied in the ERP System.
The global data for the shipment must be specified in structure HEADERDATA. To create a shipment, the system needs to know the shipment type. The shipment number is optional and is taken from the appropriate number range and returned if it was not specified explicitly. The transportation planning point is also optional and can be determined based on Customizing settings.
Global dates for the shipment (start of shipment, start of loading, and so on) can be supplied by table HEADERDEADLINE. Which deliveries should be assigned to the shipment needs to be specified in table ITEMDATA. The data for the shipment stages is taken from table STAGEDATA. gelesen. Dates can also be supplied for each stage (table STAGEDEADLINE). Because not all deliveries necessarily need to have the same starting point and destination, the deliveries are assigned to stages using table ITEMONSTAGE. The addresses of the stage starting points and destinations can be specified in detail from table ADDRESS. Tables HDUNHEADER and HDUNITEM let you inform the shipment that the deliveries should be packed and which shipping units should be used.
After the function module is called, table RETURN contains all the log entries generated during the process.
also check the Function module LE_TRA_MAP_APO_TO_LES.in this fm the fm "bapi_shipment_create" is used .
also check the FM "IDOC_INPUT_SHIPMENT_CREATEFROM".
Reward if helpful.
Regards,
Nagaraj
‎2007 Oct 15 12:28 PM
Naga,
Thanks for your reply.I will let you know, if i get any output for this BAPI.
Regards,
Skumar.