Skip to Content
0
Former Member
Jan 18, 2007 at 12:30 AM

Error while using BAPI_BUS2054_SET_STATUS to update WBS status

1387 Views

Hi All,

I am trying to set WBS status (system/user) from “CRTD” to “REL” using BAPI_BUS2054_SET_STATUS. Basically I am adding WBS to existing project. But I am getting short dump during 'BAPI_PS_PRECOMMIT'. My program sequence goes like this …

CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'

CALL FUNCTION 'BAPI_PS_PRECOMMIT'

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

CALL FUNCTION 'BAPI_BUS2054_GET_STATUS'

CALL FUNCTION 'BAPI_BUS2054_SET_STATUS'

CALL FUNCTION 'BAPI_PS_PRECOMMIT'

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

I could not use BAPI in order suggested

BAPI_PS_INITIALIZATION

BAPI_BUS2054_CREATE_MULTI

BAPI_BUS2054_GET_STATUS

BAPI_BUS2054_SET_STATUS (To set the status at WBS element level)

BAPI_PS_PRECOMMIT

In this sequence could not see newly created WBS when I call BAPI_BUS2054_GET_STATUS.

Any clue or suggestions welcome. Thanks in advance.

Regards,

Trim