‎2014 Jul 09 4:12 AM
hi,
experts ,I'm facing a problem when using BAPI_SALESORDER_CREATEFROMDAT2 to creat SO,I create a sale order with six items and one of the item has problem. It is possible for me to create the SO successfully with the the other three items ?
‎2014 Jul 09 10:23 AM
Hi,
When creating Sales Order with reference or without reference then you can do a test run and as per suggested by Maxim that if there is any issue with the particular line item then you can exclude that line and proceed to create order with the rest of the line items.
There is no such restriction that if there is error in the line item then you cannot create order with rest of the line items.
‎2014 Jul 09 6:15 AM
hi,
You can add as much items you can there will be no issue with that. The Sales Order will be created even with no items specified.
Regards,
Sivaganesh
‎2014 Jul 09 6:39 AM
Hi,
In the return parameters have you seen sales order created after commit.You can try and the same time correct the line item.
Regards,
Madhu.
‎2014 Jul 09 9:33 AM
hi Madhu,
After calling BAPI_SALESORDER_CREATEFROMDAT2 ,I only get the error message in return table parameters RETURN .and the error says that the last item contains error materal .The error message is enclosed in the attachment.
‎2014 Jul 09 10:05 AM
‎2014 Jul 09 10:25 AM
Hi,
You said you are trying one line item with wrong values. Is it allowing you to create. Are trying to create order directly in sap or from non sap system.
Regards,
Madhu.
‎2014 Jul 09 9:50 AM
Hi, you can symulate so before creating, use parameter TESTRUN = 'X', then check errors in RETURN
‎2014 Jul 09 10:23 AM
Hi,
When creating Sales Order with reference or without reference then you can do a test run and as per suggested by Maxim that if there is any issue with the particular line item then you can exclude that line and proceed to create order with the rest of the line items.
There is no such restriction that if there is error in the line item then you cannot create order with rest of the line items.
‎2014 Jul 09 10:31 AM
You need to check the material whether created under the sale order in material master data which metioned in your return internal table.
Thanks,
Yawa