09-23-2008 9:06 AM
Hi All,
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
Abhishek
09-23-2008 10:00 AM
Hi Abhishek,
Not aware about ur error, but 1 comment. If you set REL status to a WBS, the WBS below it get REL status automatically so if u r setting status for a hierarchy just set to top level.
Regards
09-23-2008 10:00 AM
Hi Abhishek,
Not aware about ur error, but 1 comment. If you set REL status to a WBS, the WBS below it get REL status automatically so if u r setting status for a hierarchy just set to top level.
Regards
09-23-2008 12:44 PM
Hi,
I am changing the status for the top level only. The short dump is coming after that also.
Abhishek
09-23-2008 3:21 PM
Abhishek,
That BAPI is for Proj Defn, you need to use BAPI_BUS2054_SET_STATUS for WBS.
Regards