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

BAPI_SALESORDER_CREATEFROMDAT2 and serial number.

Former Member
0 Likes
1,033

Hi all,

I am creating sales orders using the FM ‘BAPI_SALESORDER_CREATEFROMDAT2 ‘

I want to create the Sales order with serial number.

For batch number, I am mapping file field with BAPISDITM-BATCH.

But for serial number, there is no field available.

Appreciate, if any suggestions, how to pass the serial number to BAPI_SALESORDER_CREATEFROMDAT2 .

Thanks.

Regards,

Meenakshi.

Hi all,

I am creating sales orders using the FM ‘BAPI_SALESORDER_CREATEFROMDAT2 ‘

I want to create the Sales order with serial number.

For batch number, I am mapping file field with BAPISDITM-BATCH.

But for serial number, there is no field available.

Appreciate, if any suggestions, how to pass the serial number to BAPI_SALESORDER_CREATEFROMDAT2 .

Thanks.

Regards,

Meenakshi.

4 REPLIES 4
Read only

Former Member
0 Likes
726

Hi meenkashi,

Where is the serial number field on the screen of sales order?

If its input enabled field then definitely one of the bapi structure shld have that field.

If it is populated automatically then we need to search for some other alternative.

Meanwhile i will try to check out some sales order but if u knw abt the tab and field on the screen then reply.

Regards,

Swapnil.

Read only

0 Likes
726

Hi Swapnil,

Thanks for reply.

In sales order, When we select the item and click on

Extras => Technical Objects, we get the serial number.

Regards,

Meenakshi.

Read only

Former Member
0 Likes
726

Hi Meenakshi,

Did you find a way to put the serial numbers on the Sales Order?Is there a function module which can be used?

Please let me know...I am trying to do the same too

Read only

0 Likes
726

Hi,

We cann't use the FM 'BAPI_SALESORDER_CREATEFROMDAT2' as here we can't pass serial number and also we can't use parameter 'EXTENSIONIN' of this FM as serial number is not from VBAK, VBAP, VBEP.

I recorded the BDC for transaction VA01 and it's working for creating sales order with serial ordres.

So , only solution is - go for BDC .

Regards,

Meenakshi.