Skip to Content
0
Former Member
Oct 29, 2015 at 12:27 PM

Project User status update

795 Views

Hello experts - I am using the following BAPI's inorder to update the project user status.

CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

CALL FUNCTION 'BAPI_BUS2001_SET_STATUS'

CALL FUNCTION 'BAPI_PS_PRECOMMIT'

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

I am getting subrc 0 after execution of CALL FUNCTION 'BAPI_BUS2001_SET_STATUS' , But getting a dump in BAPI_PS_PRECOMMIT 😔.

From ST22 , I could see the pointer is on the redline .

The termination occurred in ABAP program "SAPLPS_BAPI", in "CHK_PRECOMMIT".The main program was "RS_TESTFRAME_CALL".

FORM chk_precommit.

DATA: chk_precommit_ok TYPE c,
chk_error type c.

CALL FUNCTION 'PS_FLAG_GET_GLOBAL_FLAGS'
IMPORTING
e_precommit_ok = chk_precommit_ok
e_error = chk_error.

IF chk_precommit_ok = space.
* Precommit wurde noch nicht aufgerufen.
MESSAGE x030(cnif_pi).
ELSEIF chk_precommit_ok <> 'Y'.
* Precommit wurde nicht erfolgreich durchlaufen.
MESSAGE x033(cnif_pi).
elseif not chk_error is initial.
* At least one single BAPI failed
MESSAGE x056(cnif_pi).
ENDIF.

Any idea on how to get rid of this ?

Thanks,

Arun.