2008 Oct 14 9:32 AM
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.
2008 Oct 14 9:46 AM
2008 Oct 14 12:59 PM
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
2010 Aug 24 4:48 PM
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
2008 Oct 14 9:47 AM
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.
2008 Oct 14 9:49 AM
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