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

Similar Messages

  • How i can find out number of transaction code created in last 6 month

    Dear Friends,
    How i can find out number of transaction code created in last 6 month and last used date for each transaction code.
    System - ECC 5.0
    Plz help.
    Thanks,
    Regards,
    Sachin

    Hi,
    As per your query you can find out the list of t-code not to use in last time details in suim t-code.
    Anil

  • How to know what CBO programs uses transaction codes

    Hello Everyone,
    How to know what CBO programs uses transaction codes?
    Thanks for the help!

    Hi,
    Please clarify your question ....
    for e.g. give program name

  • How to identify active ABAP objects in the HR R/3 System?

    Hi
    We are in process of doing assessment on HR 4.6C to ECC 6. I need to identify the active abap objects ( Reports/FM's etc. ) in the sytem.  Appreciate if some one can suggest me how to look into the system.
    Rgds
    Peddi

    Try the Transaction code se95.
    Regards,
    Ravi Kanth Talagana

  • I have activated the standard datasource in r/3? how to identify active?

    Hi All,
    i have activated the standard datasource in r/3 ? and i have replicated the same in the bw system and in the source system of r/3 i have replicated it and i can find the data source there ? but how to identify whether the datasource is active in the bw system or not ?
    i cant see a tick mark on the data source does it determine it is active?
    Pls guide me on this?
    thanks
    Pooja

    Hi all,
    I am working on 3.5
    And where can i find the datasource is green or not? it is not assigned to the source system i can identify it?
    i am not able to rightclik on the datasource and see the active version.
    When i right click on the data source i can see this option:
    1. assign infosource
    2. maintain datasource in the source system etc?
    Thanks
    Pooja

  • How to Identify Last  Command Issued by user??

    Hi Everybody,
    I need to create a form in which the current state of the form depends upon the last command issued by the user.
    Suppose if user clicks 'delete record' or 'insert record' or 'enter-query' or something else.
    So, how to identify the last event executed by the user.
    Any suggestions...
    Thx in advance,
    Raj

    You can write something into a Form parameter in the POST-INSERT/UPDATE/Query triggers.
    Then you can check the value of this parameter when needed.

  • How to execute a report using a transaction code?

    Hi team,
    I am new in ABAP and I want to do a very simple report and then call this report using a transaction code.
    Steps:
    1) create the report (SE38)
       the report is: Z_DEMO
    2) generate a transaction code for this report (SE93)
       note: the transaction code is ZDEMO
    3) call the transaction generated on step 2
    When I execute the report using SE38, everythig is ok and the records are inserted in my table zdemo2.
    But when I call my transaction ZDEMO there is no insertion. Why?
    The report ask for parameters and then fowards me to SAP's main menu.
    Thanks,
    Walter.
    The report is:
    REPORT  Z_DEMO.
    tables: zdemo2.
    parameters:
            nombre like zdemo2-nombre,
            edad like zdemo2-edad.
    data:
          begin of tabla occurs 0,
            nombre like zdemo2-nombre,
            edad like zdemo2-edad,
          end of tabla.
    zdemo2-nombre = nombre.
    zdemo2-edad = edad.
    insert zdemo2.

    Hi,
    While creating the transaction for your program
    1>Make sure u give the program name and screen number
    2>Important thing is a option "GUI SUPPORT"
    Check all the checkboxes or atleast SAPGUI for Windows to ensure that the Code runs in SAP GUI.
    Thank you.

  • How to know which sub process(function) transaction codes belong to.

    Greetings all,
    I would like to know transaction codes belong to which sub process on SAP system.
    For example, MD04 belongs to 'MQ-MRP-R/3-MRP', SE38 belongs to 'IT-PRO-R/3-Programming'..something like that.
    Is there any way to check the definition on the system instead of just guessing by the function?
    Thank you very much in advance.
    Best regards,
    Miki Komatsu

    Hi,
    As per your query you create profile as per your requirment like PP,MM,FI,CO,SD etc and assign complete module. Here you will find all the related t-code which is belong to specific module.
    Anil

  • How to identify active layer in Visual Composer 7.0

    Hi Experts,
    I am using a model with several layers and a link tree navigation control.
    Is there a way to find out on which of the layers the user currently is?
    For example: If the user opens Tab 3 can I then get the information tab = 3?
    I need this for guard conditions and for a button to open a hyperlink where the url depends on the layer.
    Sincerely
    Markus

    Hi Markus
    Instead of using the Navigation Control "Link Tree" I would set Navigation Control to "None" and model your own navigation with a form view containing buttons to navigate between layers.  You can then use a Data Store with a field called "Tab" and default value Tab1.  When you trigger the event to navigate to other tabs update the Data Store field Tab with the target tab value.  You can then base guard conditions etc. on the Tab value in the Data Store.
    Hope this helps
    Adam

  • How to run a command line window from code?

    In an application I need to run a dll file with a few arguements. These arguements can be given in the command line window. The execution of the dll file will return a string that i need to get (for the parsing etc).
    1. How can I open a command line window from the Java code?
    2. How to run commands on it?
    3. How to get the results of the commands from the command line into my program?

    In an application I need to run a dll file with a few
    arguements. These arguements can be given in the
    command line window. The execution of the dll file
    will return a string that i need to get (for the
    parsing etc).
    A dll is used by other programs. It is not possible to run it from the command line.

  • How to read notes data in FBV3 transaction code

    Hi Experts,
    When i go to Tcode FBV3 parked vendor invoice i have tab notes along with workflow, tax, withholding tax tabs. Notes contains  item long text, my requriement is i need to get this data into my report, i have tried but i couldn't able to get the details like Text Name, Language, Text ID and Text Object to pass it to READ_TEXT function module. Kindly suggest how to read this notes data.
    Regards,
    Sridhar

    Sorry, but this issue is not Asset Accounting.

  • How to get active user data using vba code in excel

    Start with this script: http://community.spiceworks.com/scripts/show/1572-list-user-info-in-excel
    Then add an extra line to get the msDS-UserAccountDisabled attribute, or test for it in an If/Else block.

    Could you please help me to get only active user details from active directory using vba code.
    Any help would be immensely appreciated.
    Thanks in advance
    This topic first appeared in the Spiceworks Community

  • How to read the long text in Transaction Code : VA02 at runtime??????

    Hi,
    I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
    If any body has soluntion, please provide me. I would really be  greatfull if any body provide the solution.
    Deepak Kumar
    E-Mail: [email protected]

    Hi Sudheer,
    Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
    Couuld you send me some sample code? I would appreciate if you reply at the earliest.
    Deepak Kumar.

  • How to remove the negative stocks in transaction code MB51

    hi experts,
    i have this problem, when i display this material 12345 in MB51 there is a movement type 601 created in it. now when we are processing a customized program the report that was displayed does not match with the actual stocks because of this negative qty. the material document was created 3 years ago.. please help what is the procedure that i will do in order to correct the report and remove the -value in MB51.
    thank you very muhc in advance.

    Dear Ysabella Bautista
    Can you please let me know whether MB51 shows the correct quantity when compared to physical stock ??  Why I am asking is that you had indicated that in customized programme, the report was showing wrongly which may be due to some wrong coding problem.
    Also on your comments "remove the -value in MB51", please note that since this TCode is a standard one, 100% guarantee that the system shows ONLY correct value.  This is my opinion !!!!!!
    thanks
    G. Lakshmipathi

  • 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

Maybe you are looking for

  • Is there a way to get more trailer templates for iMovie on ipad?

    I don't have a mac, bot I love iMovies on the iPad. Is there a way to get more trailer templates? I noticed quite a few more on iMovie 11 and I just wanted to know if new ones would be made available for the iPad?

  • SOA database poller

    Hi All, I am using a DB poller to read records from the table. The problem is the DB poller picks the records randomly but I want it to process records by creation_date. Here is my configuration. <endpoint-activation portType="XX_ptt" operation="rece

  • Publish to repository Grayed out in IDT

    Hello All, I am unable to publish to repository in IDT. I undertand one needs to publish the connection first...but even its grayed out. I was told I have full access.Since i am new to IDT i may have missed to do something prior to publishing ? Any i

  • Mac Pro technical specifications optimized for Photoshop and Premier Pro, yet affordable

    I will replace my old desktop Mac Pro with a new one.  I am looking for advice for the appropriate configuration choices for the new Mac Pro for use with the most current versions of Photoshop and Premier Pro.  This has to be balanced with a budget b

  • Code for return from task flow

    Hi, I came across this TaskFlowUtils which contains utility methods related to task flow. Is there any method which will cause return from task Flow. I can't find the same. I do not want to return via Task Flow return activity. Regards, Nikhil