Application Development 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: 

Error while creating a sales order BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Hi All,

I am using the BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order.

I am passing all the required fields and also the rejection code at the item level.

Also I am using a variant configuration material and hence ai am filling the VC config tables.

When I execute this BAPI it is giving me the error 'Item 000010's configuration can no longer be changed' although configuration is maintained for this material.

When I try the same case with no rejection code and with VC configuration, the sales order is created.

When I try the same case again with rejection code and NO VC configuration, the sales order is created.

When I maintain both the rejection code and VC configuration I am getting the error.

Does anyone have any idea what is causing this error or I am supposed to populate any flag in ORDER_ITEMS_INX to get this correctly.

Any answers will be greatly apppreciated!

Thanks

Sandeep

1 REPLY 1

Former Member
0 Kudos

Sandeep,

There are a few SAP Notes that you should investigate, some of which you may have already seen. First, I'd suggest you look at [Note 481102|https://service.sap.com/sap/support/notes/481102] and its three related Notes: [774346|https://service.sap.com/sap/support/notes/774346], [550431|https://service.sap.com/sap/support/notes/550431], [366265|https://service.sap.com/sap/support/notes/366265].

If these Notes do not help then check if [Note 1099414|https://service.sap.com/sap/support/notes/1099414] has been applied in your system. If it has been applied, then [Note 1116144|https://service.sap.com/sap/support/notes/1116144] might solve your issue. If neither of these two notes are applied, then it could be that they both need to be applied. However, if both notes are already applied, then you may want to consider opening a customer message with SAP. Since these two SAP Notes are relatively new, it makes me think that you might have discovered a related error that has not been reported to SAP yet.

Best Regards,

Jamie