Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Project User status update

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.

Tags:
Former Member
replied

Read  1901102 - Short dump MESSAGE_TYPE_X , this error is usually raised when sequence of call is not correct.

Hint: Also look at returned table E_RESULT too for more information than single record in RETURN parameter (this is not a table parameter  in BAPI_BUS2001_SET_STATUS definition)

Regards,

Raymond

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question