Short dump in Bapi 'BAPI_BUS2001_SET_STATUS'
We have written a LSMW to update the status of the WBS element to 'REL' status. For doing this, we are calling the BAPI 'BAPI_BUS2001_SET_STATUS' in the below steps:
1. CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
2. CALL FUNCTION 'BAPI_BUS2001_SET_STATUS'
3. CALL FUNCTION 'BAPI_PS_PRECOMMIT'
4. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
The problem is, during the first record run, the update is successful, but when it processes the second record of the file, the CALL FUNCTION 'BAPI_BUS2001_SET_STATUS' gives a DUMP with the below msg:
Exception condition "NOT_FOUND" raised.
Termination occurred in the ABAP program "SAPLCJDW" - in "CJDW_PRPS_GET".
The main program was "RBDAPP01 ".
Kindly help me resolve this problem.
thanks and regards