Application Development and Automation 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: 
Read only

Re:BAPI_SHIPMENT_CREATE

Former Member
0 Likes
1,417

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.

7 REPLIES 7
Read only

former_member404244
Active Contributor
0 Likes
1,145

Hi,

check the below thread.

Regards,

Nagaraj

Read only

Former Member
0 Likes
1,145

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^

Read only

0 Likes
1,145

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.

Read only

0 Likes
1,145

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

Read only

0 Likes
1,145

Hi,

Earlier if any body has used ,Please send me the input parameters for this BAPI.

Regards,

Skumar.

Read only

0 Likes
1,145

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

Read only

0 Likes
1,145

Naga,

Thanks for your reply.I will let you know, if i get any output for this BAPI.

Regards,

Skumar.