Sales order creation error with reference to quote using BAPI

My user created a quote with an irregular line number like 10/15/20/30. When creating a sales order with reference to this quote using bapi BAPI_SALESORDER_CREATEFROMDAT2, It will prompt an error that the material in item 000020 cannot be modified. I debug the standard program and find that the codes of bapi and va01 are inconsistent. When bapi is executed, 15 lines will be modified to 20 lines.But everything works fine with VA01. Is there any way or notes to fix this problem?

Scroll to Top