Identification of activity 'Close' in transaction CJ02

Hi,
I want to implement a check to be perfomed uisng BADi 'WORKBREAKDOWN_UPDATE (BUS2054)' when a WBS Element is being closed (Menu path: Transaction code -CJ02, Specify WBS Element no. & enter the screen, Now select a WBS Element & branch to menu path : Edit -Status- Close).
I need a clue /method to identify this event/ command 'Close' in transaction CJ02.
Looking forward to quick help.
Thanks,
Rajesh G. Kothari

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

Similar Messages

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

    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

    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

  • Short dump with the transaction CJ02

    Hello, this is my first thread in the forum. I hope to solve my problem.
    It is necesary to say you that my english is very poor, is not so good. Sorry for that.
    When i use the transaction CJ02 to finish or close a project, appears an error when i save it. The steps are the followings:
    1- Run the transaction CJ02 with a WBS element
    2- Mark the line of the WBS element
    3- Select then button Settlement rule
    4- Fill 4 items in the next screen to distribution rules (the % is 100)
    5- Back with green arrow
    6- Fill the field Cost Center Req
    7- Save
    After a few seconds appears the dump:
    <b>ABAP runtime errors    MESSAGE_TYPE_X
           Occurred on     20.11.2006 at 11:07:09
    >> Short dump has not been completely stored. It is too big.
    The current application triggered a termination with a short dump.
    Error analysis
    Short text of error message:
    Nested call of PERFORM ON COMMIT:
    Long text of error message:
    Diagnosis
         During processing of a routine called using PERFORM ... ON COMMIT,
         the system attempted to call PERFORM ... ON COMMIT again. Nesting
         of this is not allowed.
    System Response
    Procedure
         The program indicated after "Caller:" must be changed. This is the
         program that calls the routine indicated after "Form:" during
         COMMIT processing. This routine is part of the program indicated
         after
         "Program:".
    Procedure for System Administration
    Technical information about the message:
    Message classe...... 00
    Number.............. 081
    Variable 1.......... " "
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "
    How to correct the error
    If the error is in one of your own ABAP programs or an SAP program that
    you have modified, try to correct it.
    If the error occurred in a non-modified SAP program, you may be
    able to find a solution in the SAP note system.
    If you have access to the note system yourself, use the following
    search criteria:
    "MESSAGE_TYPE_X"
    "SAPMSSY0 " or "SAPMSSY0 "
    "%_ORDER_FORM_FOR_ROLLBACK"</b>
    There are several notes that apparently solve the problem with support packages that are applied in our system (for example 397011 or 614553). Inthis case our system is updated.
    Can you help me please.
    Thanks
    Gabriel.-

    Hi
    Are you really sure https://websmp101.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=397011&_NLANG=E
    is applied correctly ?
    Try downloading with snote and see if it gets marked 'not relevant',
    ( are you on release 4.6 ? )
    Given the nature of the problem ( and the fact that this issue is known ) , the best seems log an OSS support request
    rgds
    Dirk

  • Activity Group or Transaction Group

    Hi
    We are using the activity groups to define the activity control action for particular tolerance level in budget availability control.
    Where is the defintion of activity group or transaction group is done ?
    regards
    Amal

    The transaction groups are standard/fixed as delivered by SAP. I don't think you can add your own transaction groups.Available groups should cover what ever is subjected to Availability Control.
    Enter activity group ++  to define the tolerance limits for all activity groups.
    Regards
    Sreenivas
    Pls close the post if satisfied.

  • Modify initial screen of transaction cj02

    hello everyone,
    i need to modify the first screen of the transaction CJ02, in case of having a preject definition and wbs element, i need to have two more fields .so there is a way to do this.
    please help.

    I don't think there exit a screen exit to have new fields, but other option is to create new custom screen (copy of initial screen) and call the CJ01 second screen from your custom one.
    cheers

  • Close a transaction through ABAP program without user log off.

    Hi,
    I have to write an ABAP program that will check if a particular transaction (for example tcode VA01) is running than it must close the transaction.
    Please give me your inputs or sample code if possible.
    Thanks for your suggestions.
    --Sanjay

    Sanjay,
      Check with this how much it is going to help you out..
    PARAMETERS: p_user LIKE sy-uname.
    DATA: gt_user_info TYPE TABLE OF /sdf/user_context,
          wa_uinfo LIKE /sdf/user_context.
    START-OF-SELECTION.
      CALL FUNCTION '/SDF/MON_USER_MEMORY'
        TABLES
          modes = gt_user_info.
      CHECK NOT gt_user_info IS INITIAL.
      LOOP AT gt_user_info INTO wa_uinfo WHERE uname EQ p_user.
        IF wa_uinfo-tcode = 'VA01'.
          CALL FUNCTION 'TRANSACTION_ABORT'
            EXPORTING
              transaction_id = transaction_id
            EXCEPTIONS
              OTHERS         = 1.
         EXIT.
        ENDIF.
      ENDLOOP.
    Regards,
    CK

  • Texts from Activity to Subsequent Transactions

    Subsequent transaction can either be a Lead  or Opportunity or Activity itself.
    Activity and Lead transactions have different Text Det Procedures with different Text Types.
    Requirement is Text should get transferred from one Text Type  of Activity to another Text Type of Subsequent Transactions.
    Can someone guide..immediately.
    Edited by: Venkat Chalapati on Mar 26, 2008 3:14 PM
    Edited by: Venkat Chalapati on Mar 26, 2008 4:32 PM

    hi venkat
    depending upon your requirement i will advise you to use
    access sequence for text description instead of action
    because using the action you can create follow up transaction type
    and yes this requirement is easily possible too .
    for example your original trsanction is Lead and using qulaification levels in conditrions you can trigger any follow up transaction
    like ig qulaification level is cold then activity is triggered,your requirement is also same.
    but still it will get complex using the action
    so try using access sequence for text determination.
    best regards
    ashish

  • JDev3.1, BC4J, handleCommit(): never closes the transaction in stateful mode

    Hello.
    I'm writing a JSP client which reads data from a ViewObject and edits records of the same ViewObject, through the EditCurrentRecord data web bean.
    If I set my application as "IsStateLessRuntime=true" in the .properties file, every time the handleCommit() function is called (inside the EditCurrentRecord class), there is an immediate commit on the database.
    But if I set my application as "isStateLessRuntime=false" (that is, statful), the handleCommit() function posts records "in memory", but I can't figure how to write data on my Oracle database. I think I have to "close the transaction" or something else, but I don't know what.
    It should be better if I could run my application in Stateful mode, since I have to work with commits and possible rollbacks, after checking my data.
    Thank you to Jdeveloper Team who helps us!

    I answer myself, I found a solution. I post it in case this could be helpful to someone.
    When I want to commit changes to database, I have to call:
    getApplicationFromContext().getTransaction().commit();
    I wrote this as a function in my class "myEditCurrentRecord" which extends EditCurrentRecord data web bean.
    The final code is:
    public void commit()
    getApplicationFromContext().getTransaction().commit();
    This works... maybe is there another solution?

  • Urgent : Screen exit for transaction CJ02

    Hi Gurus,
    I need to add a user defined field at project definition level for transaction CJ02, CJ01 and CJ03.
    Is there a screen exit or some other way to do this ?
    Please reply, points waiting for helpful answers

    Hi Abhishek,
    You can user <b>user-exit CNEX0006</b> to add custom fields at project definition level. We are working in 4.6C and we have added almost 25 custom fields at WBS element level using CNEX0007. I am sure you can use CNEX0006 to add custom fields at project definition level.
    I do not know which SAP version you are working in but if you are working on 4.6C  or lower, there is not BADI available.
    If you are working on 4.7 or above, then there might be BADI available for this purpose. But i do not know about that.
    Let me know if you have any question.
    Regards,
    RS

  • Business  Object for Transaction CJ02

    Helllo friends,
    can anyone tell me the business object for the transaction CJ02 ?
    I need to trigger the workflow when WBS element's status chagnes to release.
    Thank u for your help.
    Romanch

    hi Argahdip,
    BUS2054 is the BO that I was looking for.
    Thanks,
    Romanch

  • Create new child accounts under an active account with transactions

    Hi experts,
    I've searched on the forums but could't get to a definitive conclusion.
    Is there a way to create new child accounts under an active account with transactions?
    I have an account 6226 with transactions.
    The customer would like to divide this account in 4 new accounts:
    62261, 62262, 62263, 62264.
    B1 gives an error when I try to change the account to title which is undestandable but I imagine that should be a way to do this beacause with time the customers needs can change...
    Thanks everyone!

    Hi,
    Welcome you post on the forum.
    B1 has only one level for active account. You can get the definitive conclusion that it is not possible to have child active account.
    Thanks,
    Gordon

  • OEBH is stuck at activity Close Blanket - Eligible

    Hi Experts!
    I am facing issue when Terminating a Blanket sales agreement, the sales agreement is terminated from the front end but when I check the workflow for OEBH, the worklow is waiting at activity 'Close Blanket - Eligible' with the status of activity as NOTIFIED. Can anyone please guide me on how to handle this so that the workflow donot get stuck on this activity and proceeds further.
    Best regards
    Himanshu

    Hello,
    Look at Extend The Expiration Date For Closed Non-Active Expired BSA Blanket Sales Agreement [ID 1394888.1], maybe workflow want notified user which is not active.
    Regards,
    Luko

  • Transaction CJ02 - levels upload

    Hi All,
    I can create the records by using the Bapi_project_maintain at level 1 only. But I am looking to create the WBS elements to be created at diffenent levels like 1 , 2 , 3 and 4. Which can be seen in the Transaction Cj02 while creating the WBS elements manually.
    Can any one help me how to pass the parametes of Levels in the Bapi.
    or after creating the Wbselements as level 1 first , can we update to other levels..?
    Thanks for the help in advance.
    Regards
    Ramakrishna

    Hi,
    You need to fill the WBS hierarchy properly specifying up, down, left and right for every WBS element. For eg:
    A
    |
    A1-----A2
    |
    A11
    WBS-UP-DOWN-LEFT-RIGHT
    A -
    A1
    A1-----A---A11--
    A2
    A2-----A--
    A1
    A11-----A1
    Hope this helps.
    Regards
    Edited by: Shrikant Rakate on Apr 16, 2008 4:35 PM

  • PO Active/Close indicator

    Dear All,
    I am using ME2L T-code in order to view POs by vendors and analyse Quantities to be Invoiced and delivered.
    The report has many columns in the layout and one of them is Deletion indicator column, showing whether the PO is deleted, not deleted, or blocked.
    Is there in the report column showing the PO Active/Close status? or if not, is there other T-code which displays POs with possibility to see Active/Close indicator.
    Thanks in advance.

    Active means PO is still in use, in other words there are some GRs still to be made until PO is automatically closed and moved to Closed Status. in this case when All GRs are made it is easy to identify whether PO is closed or Active by comparing total GR amounts with PO amount.
    But sometimes PO is closed manually, is there any indicator, or PO is not closed manually?

  • Looking for a sort of "activity code" in transactions ME51N/ME52N/ME53N

    Hi all experts, got an - I hope - interesting question to ask you.
    I have an user exit that is executed on every step done in creation/modify of a Purchase requisition. In this code (custom), executed from the transactions ME51(n)/ME52(n) and ME53(n) there's something like:
    GET PARAMETER ID 'BAN' FIELD r_banfn. "Purchase Requisition number
    GET PARAMETER ID 'BFC' FIELD r_frgab. "Release strategy
    r_banfn should contain the number of the purchase requisition I'm working on. So far, so good.
    The problem is that if in ANY transaction I press the New Document button, I can notice in debug that r_banfn contains the number of the purchase requisition that WAS active before pressing the "create new" button.
    That's not good because that r_banfn value is then used to some checks, and should then be blank in case of creation of a new purchase requisitions.
    I'm then asking you if there's a way in my user exit to distinguish between the two cases, which are:
    -1- I'm modifying an existing purchase requisition (so, the field in r_banfn IS correct);
    -2- I'm CREATING a new document (so, r_banfn value is NOT correct and should be set to blank).
    This distinction must be coded into the previously cited user exit and should affect ME51(n), ME52(n) and ME53(n), from which the user can either create a new RdA or modify an existing one.
    We tried to manage the situation as follow, but without success:
    IF NOT r_banfn IS INITIAL.
      CALL FUNCTION 'ENQUEUE_EMEBANE'
           EXPORTING
                banfn          = r_banfn
           EXCEPTIONS
                foreign_lock   = 1
                system_failure = 2
                OTHERS         = 3.
      IF sy-subrc NE 0.
    * Can't lock --> means I'm actually working in modify mode on it
    * leave it as is
      ELSE.
    * locked --> that means I'm not working on this purchase requisition
    * first dequeue the locked purchase req, then set r_banfn to blank.
        CALL FUNCTION 'DEQUEUE_EMEBANE'
             EXPORTING
                  banfn = r_banfn.
    *   clear the variable -> I'm in CREATE mode.
        CLEAR r_banfn.
      ENDIF.
    ENDIF.
    The code is quite self-explaining but doesn't work because it seems that the "enqueue" phase goes ok even tho we're working on modification on the purchase requisition.
    I'm guessing if there's a sort of "activity code" (create? modify? view?) I can catch @ runtime to solve this task.
    Thanks in advance, as usual
    Matteo
    Edited by: Matteo Montalto on Mar 19, 2009 5:15 PM
    Sorry, I edited the title in order to make it more explicative. :-P

    >
    Hi Sandipan, sorry for the late, I tried to manage this task but without success.
    The user exit I'm working on in EXIT_SAPLBBPK_001.
    FUNCTION EXIT_SAPLBBPK_001.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IM_BBPDECDATA) LIKE  BBPDECDATA STRUCTURE  BBPDECDATA
    *"     VALUE(IV_MANU_PROF) TYPE  MANPRC OPTIONAL
    *"  CHANGING
    *"     VALUE(CH_PROFILE) LIKE  T160EX-EPROFILE
      INCLUDE ZXBBPU04.
    ENDFUNCTION.
    It includes ZXBBPU04, in which I have to understand if I'm working on a Purch. requisition in MODIFY mode or in CREATE mode.

Maybe you are looking for