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 numbers.

Former Member
0 Likes
1,222

Hi all, I am trying to create sales order using standard BAPI "BAPI_SALESORDER_CREATEFROMDAT2". My problem is that i can´t create the serial numbers to a position of sales order. This can do from the transaction va01 menu extras ->technical objects. Someone can help me?. Can be created the serial numbers of the positions of the sales order with this bapi ? if this is not possible, ¿some function exists to do it?

kind regards.

5 REPLIES 5
Read only

Former Member
0 Likes
883

Hi,

See the below link....

You may get some idea.

www.sap-img.com/fu036.htm

Regards

Mudit

Read only

0 Likes
883

Thank you,

but i need inform two or more serial number to a item of sales order. like via transaction va01 menu extras ->technical objects. There, you can asociate varios serial numbers (technical objets) to a item of sales order.

In example that you send me, object is associated to level of head of the sales order. What I need is to associate various objects to a item of the sales order.

I do not find the form to do it with this bapi.

kind regards

Read only

0 Likes
883

Hi Elena,

Did you get any solution to this problem of updating serial number in the sales order line item? Please help us. We are facing the same issue.

thanks

Ram

Read only

Former Member
0 Likes
883

Hello,

Yes it will create the sales order serial number automatically when the bapi executes with out any errors.

In the BAPI the importing variable must be of type

y_v_sorder TYPE bapivbeln-vbeln,

this y_v_sorder contains the value.

Read only

Former Member
0 Likes
883

Hi,

Not sure what exactly ur issue is regarding?

i've used BAPI_SALESORDER_CREATEFROMDATA which works fine.

U just have to provide order header data, and it creates order w/o any problem.

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDATA'

EXPORTING

order_header_in = order_header

IMPORTING

salesdocument = i_vbeln

sold_to_party = order_soldto

ship_to_party = order_shipto

return = i_return

TABLES

order_items_in = order_items

order_partners = order_partner

EXCEPTIONS

OTHERS = 1.

Regards,

Amit