Hello guys,
I'm trying to update some REFX objects (contracts) by removing the master data lock (stat I0065). In 2012 I used function STATUS_CHANGE_INTERN for it and everything worked fine. Now I have the same coding like then, but the update does not work anymore, it just did not remove the master lock data.
The function was updated by SAP in 07/2013. Is there anything new what does not work anymore or where is the problem?
My coding is:
* Aufheben der Sperre
gs_status_int-stat = 'I0065'.
gs_status_int-inact = 'X'.
APPEND gs_status_int TO gt_status_int.
* Sperre löschen
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
check_only = p_test
objnr = gs_contract-objnr
TABLES
status = gt_status_int
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
* Im Echtlauf Update der DB
IF p_test EQ space.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = gs_return.
ENDIF.
btw with function STATUS_CHANGE_INTERN_VB everything works!
Where is the problem?
Thanks a lot.
Regards
Michael