on 02-13-2008 12:40 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.