Skip to Content
0
Former Member
May 13, 2013 at 10:21 AM

Error call 'BAPI_ALM_ORDER_MAINTAIN' release order

1081 Views

Hi,

I need to release a PM order with the BAPI:

BAPI_ALM_ORDER_MAINTAIN with the table T_METHODS

CLEAR T_METHODS.

T_METHODS-REFNUMBER = 1.

T_METHODS-OBJECTTYPE = 'HEADER'.

T_METHODS-METHOD = 'RELEASE'.

T_METHODS-OBJECTKEY = ORDERID.

APPEND T_METHODS.

CLEAR T_METHODS.

T_METHODS-REFNUMBER = 1.

T_METHODS-OBJECTTYPE = ''.

T_METHODS-METHOD = 'SAVE'.

T_METHODS-OBJECTKEY = ORDERID.

APPEND T_METHODS.

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

TABLES

IT_METHODS = T_METHODS

RETURN = MES.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

In result after COMMIT WORK it occurs error. I received letter in mail(SAP Business workplace) with the text :

"UPDATE_JEST:STATUS_INCONSISTENT: OBJNR: OR003300007364 STATUS: I0115"

Please help me,

regards

Vitaliy