Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Short dump in Bapi 'BAPI_BUS2001_SET_STATUS'

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

Hi,

I am changing the status for the top level only. The short dump is coming after that also.

Abhishek

0 Kudos

Abhishek,

That BAPI is for Proj Defn, you need to use BAPI_BUS2054_SET_STATUS for WBS.

Regards