I have problem with changing order items type in implementation badi order_save.
To do it, first I have to change system item status to 'open', then change item type and set previous system status again. (because there is a blockade).
To change system status I'm using CRM_STATUS_CHANGE_INTERN_VB and BAPI_TRANSACTION_COMMIT.
After that I'm trying to change item type with use CRM_ORDER_MAINTAIN.
However CRM_ORDER_MAINTAIN 'don't see' changes of CRM_STATUS_CHANGE_INTERN_VB.
I know that both functions works good singly:
If I first manually change system status, and then call CRM_ORDER_MAINTAIN it works good.
If I call both function system status are changed but item type don't.
Maybe I have to refresh samehow database between both function callings?
Or do you have any other ideas?