cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify activity/ command 'CLOSE' in transaction code CJ02

Former Member
0 Kudos

Hi,

I need to implement a check in transaction code - CJ02 when

command 'CLOSE' is performed to close a WBS Element. This check is being planned to be implemented using BADi - WORKBREAKDOWN_UPDATE using 'AT_SAVE' method.

However I am unable to capture the command as 'sy-ucomm' is always 'BU' at the time of executing this method.

Request you to render necessary assistance in this regard. Even I can use any other USEREXITS that is getting called only during closing of WBS Element.

Steps for simulating/ understanding the problem are as below:

1. Use Transaction code - CJ02

2. Specify WBS Element no. - (as available in your system)

3. Press enter on selction screen & select a WBS Element & branch to

menu path : Edit -Status- Close

4. Pres 'Save'

At this stage in BADi - WORKBREAKDOWN_UPDATE (Business Add-In WBS Elements (BUS2054)) we need to identify this cooand 'CLOSE'.

It is unclear what ABAP code to be written to capture this

activity 'CLOSE'.

Looking forward to hear from you experts.

Best regards,

Rajesh G. Kothari

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Your solution is not relevant as :

1. I am closing WBSE using tcode - CJ02 (not using BAPIs as suggested by you).

2. WBSE has been given 'Close' command but 'CLSD' table is not yet updated in 'JEST' table as data is in memory at this stage. Hence JEST table can not be used.

I need some thing that can read 'CLOSE' command/ 'Close' system status from memory.

Hope this clarifies my requirement.

Regards,

Rajesh

Former Member
0 Kudos

Sorry, I'm helpless from here as it's too technical for me. Better post it in Abap forum.

Regards

Sreenivas

Former Member
0 Kudos

Hi Gurus'

Any body to help me out???

Srini - I am not getting any solution from ABAP Forum also.

Best regards,

Rajesh

Former Member
0 Kudos

I'm not an ABAPer but below are some inputs:

To check/identify if the status is set, goto table JEST, field STAT against the WBS OBJNR will be I0046 (Closed). Also field Status Inactive INACT which will be blank.

Also check FM-STATUS_CHECK

We have used below this sequence for changing the WBS status, thought it will be useful for you.

BAPI_PS_INITIALIZATION

BAPI_BUS2054_SET_STATUS (Here we pass the status)

BAPI_PS_PRECOMMIT

BAPI_TRANSACTION_COMMIT

Regards

Sreenivas