RSR_OLAP_BADI Compute method is not trigerred

Hi there,
I have a problem with RSR_OLAP_BADI used for Virtual characteristics. I have defined the BADI based on the defention RSR_OLAP_BADI. I followed the following steps.
1-Created my implementation based on RSR_OLAP_BADI.
2-Created my virtual characteristics and added it to the rows of the query which is based on an infoset.
3- Added my Infoset to the fillters of the BADI and then added the attributes to the class generated. in the form P_CHA_Z0PA_IS02___F210, etc.
4-In the define method, I used a standard code which I copied and adjusted to fit my needs .
5- In the Compute method, I hardcoded the virtual chara value for testing in a statement such as
method IF_EX_RSR_OLAP_BADI~COMPUTE.
FIELD-SYMBOLS <FS_F210> TYPE ANY .
BREAK-POINT.
P_CHA_Z0PA_IS02___F210 = SY-DATUM.
<FS_F210> =  P_CHA_Z0PA_IS02___F210 .
endmethod.
Now, the problem is that when I execute the query and try to debug the BADI the system never breaks at the compute method as if it is not getting trigerred  but when i generate that query it does break at the define method. is there some step missing, is it possible that I should use an exit variable on the virtual chara so that it gets the compute method trigerred.
Please advise....and points are the least i can do to say thanks.
Cheers,
Jad

Issue resolved, the code in the define method was not correct and therefore the compute was not getting executed,
Regards,
Jad

Similar Messages

  • Virtual Key Figures in RSR_OLAP_BADI COMPUTE Method not recalculated

    Hi,
    Please clarify why is the COMPUTE METHOD of RSR_OLAP_BADI not always 
    triggered or executed.
    For instance, my query is drilled down by customer and
    material by default. Upon opening the query and after entering
    the appropriate selections, the virtual key figures that I have
    used in the query are correct .
    However, if i make any change to the query and run it in RSRT, the BADi method COMPUTE is not executed.
    Is this really the normal behavior of the said BADI? Why is
    it unstable?

    Hi Rohit,
    I have a similar problem the compute method is not trigerring and i am trying to debug it but it is not breaking at all, although when i generate from rsrt it breaks at a breakpoint of define method however i have defined another break at compute method but not breaking.
    I am using the infoobject inside the query but and tried to hard code it  for testing in the compute method but doesnt seem to be getting executed.
    Please help.
    Cheers,
    Jad

  • RSR_OLAP_BADI - Correct processed compute method results in "no app. data"

    Hi, iu2019m trying to impl. Virtual key figures using the badi RSR_OLAP_BADI
    Problem: Data which are correctly processed by the Compute method disappears and the query results in u201CNo applicable data foundu201D.
    By using debugging I can see that the code is processed both in the Define method and that a correct data record is passed and processed correctly by the Compute method where I calculate one additional vkf. u2013 but the query keep resulting in u201CNo applicable data foundu201D.
    Details
    I need the user to select two parameter values. This I let him enter into two info.obj PHPS_PT01  (variable QNIMPT01) and PHPS_PD01 (variable QNIMPD01) . It is my best understanding that there values are not passed to the db-query as they are defined by mode u201Cno-selectionu201D. The parameter values are passed to the Compute method via export/import to memory (database) u2013 this works. In the compute method are the two parameters used for a table-lookup to fetch a price. This works; debugger shows correct result in the c_s_data structure.
    BUT it all boils down to nothing as the query results in u201Cno applicable datau201D.
    Do you have any suggestions???
    BR/Flemming Rønhøj, Novozymes.
    Method: DEFINE
      CASE i_s_rkb1d-infocube.
        WHEN  'SPAC_C01M'.
          LOOP AT i_th_chanm_used INTO l_s_chanm_used.
            CASE l_s_chanm_used(5).
              WHEN 'PHPS_'.
                l_s_chanm-mode  = rrke_c_mode-no_selection.
                l_s_chanm-chanm = l_s_chanm_used.
                APPEND l_s_chanm TO c_t_chanm.
              WHEN OTHERS.
    the standard value
                l_s_chanm-mode  = rrke_c_mode-read.
                l_s_chanm-chanm = l_s_chanm_used.
                APPEND l_s_chanm TO c_t_chanm.
            ENDCASE.
    Method: COMPUTE
    METHOD IF_EX_RSR_OLAP_BADI~COMPUTE .
      FIELD-SYMBOLS:
        -knval.
        ENDIF.
      endif.
    ENDMETHOD.                    "IF_EX_RSR_OLAP_BADI~COMPUTE
    Variable handling in Include: ZXRSRU01
    case i_step .
      when 3. " only called once after entry
    Storage of simulation paramters in LUW memory for
    later retreival in BADI interface
    BADI: IF_EX_RSR_OLAP_BADI
    Impl: ZPRICE_SIM_01 Price simulation for SPAC_C01M - 01 (FMC3)
        READ TABLE i_t_var_range
        INTO loc_var_range
        WITH KEY vnam = 'QNIMPT01'.
        IF sy-subrc = 0.
          wa_itab-phps_pt01 = loc_var_range-low.
        ELSE.
          wa_itab-phps_pt01 = ''.
        ENDIF.
        READ TABLE i_t_var_range
        INTO loc_var_range
        WITH KEY vnam = 'QNIMPD01'.
        IF sy-subrc = 0.
          wa_itab-phps_dt01 = loc_var_range-low.
        ELSE.
          wa_itab-phps_dt01 = ''.
        ENDIF.
        APPEND wa_itab to itab.
        EXPORT tab = itab
          TO DATABASE indx(XY)
          FROM wa_indx
          ID  c_memory_phps_pt01.

    The problem is solved. It turned out that the none-selection vkf had to be re-filled in the compute section.
    BR/Flemming

  • I have a 16 year I support that lives in Haiti. He has a computer, but is not able to charge on a credit card.  If I purchase prepaid Itunes gift cards, is he able to set up a Itunes account and use these gift cards. That would be his only method of pay

    I have a 16 year I support that lives in Haiti. He has a computer, but is not able to charge on a credit card.  If I purchase prepaid Itunes gift cards, is he able to set up a Itunes account and use these gift cards. That would be his only method of pay

    Hi judifrom!
    I have some links for you that can help shed some light on the subject of gifting through iTunes and Apple IDs. The first can be found in this link:
    Gifting - Apple Store (U.S.)
    http://store.apple.com/us/help/gifting
    and the relevant information in that link can be found right here:
    Gift Cards and Certificates are valid for use only in the country in which they were purchased. Only residents of the U.S may redeem gift certificates purchased in the U.S.
    You can still help them set up an Apple ID without payment information so that they can download free items through the iTunes store though. The steps for performing that can be found in the following article:
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • RSR_OLAP_BADI -  initialization method

    We have created an  implementation using the RSR_OLAP_BADI. In the INITIALIZATION METHOD we are using the code shown below from one of the white papers. The code goes through the characteristics and key figures and finds there position in the table. That position is used in an ASSIGN statement in the COMPUTE METHOD so we can put a value in our virtual key figures. The code for characteristics works fine but the code for key figures does not.
    What we found in debug is that field VALUE_RETURNNM in  table I_TH_SFK does not contain a value for any of our key figures.
    Does anyone know how or where the table I_T_SFK is filled?
    Regards,
    Mike...
    **CODE:
    class cl_exm_im_rsr_olap_badi definition load.
    get field postions for characteristics in structure
      loop at i_th_sfc assigning <l_s_sfc>
      where user_exit ne rrke_c_mode-none.
    field name in structure is keyreturnnm
    name of the global variable
        concatenate 'P_CHA' <l_s_sfc>-chanm
            into l_global_name separated by '_'.
    fill the global variable
        unassign <l_global>.
        assign (l_global_name) to <l_global>.
        check <l_global> is assigned.
        <l_global> = cl_exm_im_rsr_olap_badi=>get_field_position_d(
        i_fieldnm = <l_s_sfc>-keyreturnnm
        i_s_data = i_s_data ).
      endloop.
    get field positions for key figures in structure
    loop at i_th_sfk assigning <l_s_sfk>
           where value_returnnm is not initial.
    name of the global variable
        concatenate 'P_KYF' <l_s_sfk>-kyfnm
            into l_global_name
            separated by '_'.
    fill the global variable
        unassign <l_global>.
        assign (l_global_name) to <l_global>.
        check <l_global> is assigned.
        <l_global> = cl_exm_im_rsr_olap_badi=>get_field_position_d(
                                           i_fieldnm = <l_s_sfk>-value_returnnm
                                           i_s_data  = i_s_data ).
      endloop.

    Fred,
    The reference to VALUE_RETURNNM is in the LOOP for Key Figures
    in methond INITIALIZE.
    get field positions for key figures in structure
    loop at i_th_sfk assigning <l_s_sfk>
    where value_returnnm is not initial.
    name of the global variable
    concatenate 'P_KYF' <l_s_sfk>-kyfnm
    into l_global_name
    separated by '_'.
    fill the global variable
    unassign <l_global>.
    assign (l_global_name) to <l_global>.
    check <l_global> is assigned.
    <l_global> = cl_exm_im_rsr_olap_badi=>get_field_position_d(
    i_fieldnm = <l_s_sfk>-value_returnnmi_s_data = i_s_data ).
    endloop.

  • RSR_OLAP_BADI for virtual characteristics not getting triggered!!!

    I am facing a strange problem and am a little pressed for time to solve the same. Any help/guidance related to this will be highly appreciated.
    I am working on BI 7.0. I have two implementations of the BADI RSR_OLAP_BADI for virtual characteristics,
    (1) say A, that we implemented as a proof of concept with filter as multiprovider M1
    (2) say B, that in implemented with filter as multiprovider M2
    Both were working fine and I was able to put breakpoints inside the code and debug whenever required. I had used it till last week and everything was fine.
    Today, I had to change implementation B due to a new requirement. So a new characteristic was added to M2 and the code in B was extended at appropriate places to fill this new virtual characteristic also. However, even though the change was successfully activated and the BADI looked fine, it was not triggered when the query was executed. I checked with another query on M2 which was the query for which the implementation was initially made. For that also the BADI is not getting triggered. I put break points in the define, initialize and compute methods but none are hit during the query execution!
    I further ran the queries on M1, which shud have called the implementation A. Then also the BADI is not getting triggered. Please note that implementation A, multiprovider M1 or the queries on it were not changed at all.
    I really need to fix this issue at the earliest. What am I missing? Why are the BADIs not getting triggered eventhough the implementations are active, the BADIs are error free and the filters are correctly defined?
    Are there any global settings that can turn off all BADIs?
    Please help.
    Thanks,
    Sarath

    Further, when I created a fresh BADI implementation in a different system (a sandbox system), the BADI is working fine.
    But in the Development system the BADIs are still not getting triggered. I made the exact same implementation as the one which worked in the different system.
    Another point - when I see the Technical Information tab of queries from RSRT, or RSRT2  they have Virtual Characteristics/Key Figures "NO" in the development system.
    For the queries in the prototype system in which the BADI is working this field in "Y".
    Any idea how this is decided and how it can be changed to Y from NO?
    One more strange thing is that there are other active implementation of this BADI used by other teams here and none of them are getting triggered. They are all active and were all working fine till the last few days!
    Any help will be highly appreciated.
    Thanks,
    Sarath

  • How to reference Key figure in (BAdI) IF_EX_RSR_OLAP_BADI~COMPUTE method?

    Hi,
    I am a new bee to the ABAP world.
    I am writing a BAdI implementation (Definition name: RSR_OLAP_BADI) for a 'Virtual KeyFigure' named D_TAX1.
    I dont know how to set the value for key figure D_TAX1 in BADI implementation COMPUTE method (IF_EX_RSR_OLAP_BADI~COMPUTE).
    D_TAX1 is a virttual key figure I had added in DSO.
    I want to populate the value in BADI compute method (IF_EX_RSR_OLAP_BADI~COMPUTE).
    I haven't written any method implementation for IF_EX_RSR_OLAP_BADI~DEFINE.
    Is it mandatory that I need to write some thing there? I haven't declared any attributes either.
    I want to set tax amount to the D_TAX1 virtual key figure based on the amount (another key figure in DSO).
    I don't know if I need to write this, but the class name in BAdI is: : ZCL_IM_VAL_IMPL.
    I really appreciate your help in this matter.
    Thank you.
    Sekhar

    Thank you for your answers.
    I have added the following code to the methods DEFINE, INITIALIZE & COMPUTE methods.
    method IF_EX_RSR_OLAP_BADI~DEFINE.
      DATA: l_s_chanm TYPE rrke_s_chanm,
          l_kyfnm TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
          <l_s_chanm> TYPE rrke_s_chanm.
    Insert Code
    CASE i_s_rkb1d-infocube.
      WHEN 'D_DSOIC1'.                                "DSO name
        l_s_chanm-chanm = 'D_CST1'.              "Characteristic
        l_s_chanm-mode = rrke_c_mode-read.
        APPEND l_s_chanm TO c_t_chanm.
        APPEND 'D_TAX1' TO c_t_kyfnm.          "D_TAX1 is a newly added Virtual KeyFigure
    ENDCASE.
    ENDMETHOD. "if_ex_rsr_olap_badi~define
    [In the following INITIALIZE method, I didn't change any thing. I used the INITIALIZE method from the CL_EXM_IM_RSR_OLAP_BADI as is]
    method IF_EX_RSR_OLAP_BADI~INITIALIZE.
      DATA: l_global_name TYPE string.
      FIELD-SYMBOLS:
            <l_global>    TYPE i,
            <l_s_sfc>     TYPE rrkg_s_sfc,
            <l_s_sfk>     TYPE rrkg_s_sfk.
    there's no need to change this method
    Just create attributes for each charactersitic
    with name P_CHA_<characteristic> TYPE i.
    and constants for each key figure with name
    P_KYF_<key figure> TYPE i.
      CLASS cl_exm_im_rsr_olap_badi DEFINITION LOAD.
    get field postions for characteristics in structure
      LOOP AT i_th_sfc ASSIGNING <l_s_sfc>
           WHERE user_exit NE rrke_c_mode-none.
    field name in structure is keyreturnnm
    name of the global variable
        CONCATENATE 'P_CHA' <l_s_sfc>-chanm
            INTO l_global_name
            SEPARATED BY '_'.
    fill the global variable
        UNASSIGN <l_global>.
        ASSIGN (l_global_name) TO <l_global>.
        CHECK <l_global> IS ASSIGNED.
        <l_global> = cl_exm_im_rsr_olap_badi=>get_field_position_d(
                                           i_fieldnm = <l_s_sfc>-keyreturnnm
                                           i_s_data  = i_s_data ).
      ENDLOOP.
    get field positions for key figures in structure
      LOOP AT i_th_sfk ASSIGNING <l_s_sfk>
           WHERE value_returnnm IS NOT INITIAL.
    name of the global variable
        CONCATENATE 'P_KYF' <l_s_sfk>-kyfnm
            INTO l_global_name
            SEPARATED BY '_'.
    fill the global variable
        UNASSIGN <l_global>.
        ASSIGN (l_global_name) TO <l_global>.
        CHECK <l_global> IS ASSIGNED.
        <l_global> = cl_exm_im_rsr_olap_badi=>get_field_position_d(
                                           i_fieldnm = <l_s_sfk>-value_returnnm
                                           i_s_data  = i_s_data ).
      ENDLOOP.
    endmethod.
    METHOD if_ex_rsr_olap_badi~compute.
      FIELD-SYMBOLS <fs_d_tax1> TYPE ANY.
      FIELD-SYMBOLS <fs_d_cst1> TYPE ANY.
      ASSIGN COMPONENT p_kyf_d_tax1 OF STRUCTURE c_s_data TO <fs_d_tax1>.
      ASSIGN COMPONENT p_cha_d_cst1 OF STRUCTURE c_s_data TO <fs_d_cst1>.
      <fs_d_tax1> = 10.
    ENDMETHOD.
    When I display the virtual key figure D_TAX1 in the query, it is not populated with value 10.
    Can you guys please tell me what I need to change?
    I haven't written any code in GET_FIELD_POSITION_D (in the example class CL_EXM_IM_RSR_OLAP_BADI, this method is implemented).
    I appreciate your suggestions and help.
    Thank you,
    Sekhar

  • I am concerned about the health of my current computer but have not yet made the commitment to a new one, but: 1) How can I transfer my iTunes account to a new computer when I get one... and 2) What can I do if my current computer suddenly implodes and I

    I am a bit of a computer/Internet/iTunes dummy....
    I am concerned about the health of my current computer but have not yet made the commitment to a new one, but:
    1) How can I transfer my iTunes account to a new computer when I get one...
    and
    2) What can I do if my current computer suddenly implodes and I have not yet 'copied/'saved'/otherwise protected my account, as is? -- I have already had my computer crash once and had one of your people help me restore all of the paid for songs (none of the uploaded from my own collection of CD songs, of course, so I had to spend a long time rebuilding that) -- and I believe I was told you could only help me recover that material one or two times altogether, no?
    WithOUT purchasing a Mach or iCloud (I actually think I have one of the later, but rarely have checked it) account, is there anything I can do to responsibly protect my account?
    Thanks for any time taken on this!!!

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • Hi - replaced my old computer but did not copy over library.  How do I get the music on Ipod into new library?

    Hi - replaced my old computer but did not copy over library.  How do I get musci from ipod to computer "library" so it can then go to Iphone.  Drag and drop does not do it.
    thanks
    g

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • I´m going to change computer soon. And im worried that if i sync my iPhone to my new computer it will not import

    I´m going to change computer soon. And im worried that if i sync my iPhone to my new computer it will not import all the apps and music that i have or delete it. so could anyone tell me how it will do?
    I have windows xp 32 bit and im running on the latest iTunes.
    I will swap to windows 7 probaly 32 bit

    How do you normally do ti when you switch computers?
    Does Windows not have a method of transferring everything from one computer to another?
    You can use your backup copy of your computer to copy everything.
    For the itunes portion, you can type "move itunes library" into the google search bar.
    Windows should have a way to copy all doc/pics/files/contacts/calendars/etc.

  • Hashmap containsKey() method does not appear to work

    Hashmap containsKey() method does not appear to work
    I have an amazingly simple custom class called CalculationKey, with my own amazingly simple custom equals() method. For some reason when I call my containsKey() method on my HashMap it does not use my defined equals method in my defined key class. Do hashmaps have their own tricky way for establishing whether two keys are equal or not?
    THIS IS MY AMAZINGLY SIMPLE CUSTOM KEY CLASS
    private class CalculationKey
    private LongIdentifier repID;
    private LongIdentifier calcID;
    public CalculationKey(LongIdentifier repID, LongIdentifier calcID)
    this.repID = repID;
    this.calcID = calcID;
    public boolean equals(Object o)
    CalculationKey key = (CalculationKey)o;
    if (key.getCalcID().equals(calcID) &&
    key.getRepID().equals(repID))
    return true;
    else
    return false;
    public LongIdentifier getCalcID()
    return calcID;
    public LongIdentifier getRepID()
    return repID;
    THIS IS MY AMAZINGLY SIMPLE CALLS TO MY HASHMAP WHICH ADDS, CHECKS, AND GETS FROM THE HASHMAP.
    private Hashmap calculationResults = new Hashmap();
    public boolean containsCalculationResult(LongIdentifier repID, LongIdentifier calcID)
    if (calculationResults.containsKey(new CalculationKey(repID, calcID)))
    return true;
    else
    return false;
    public Double getCalculationResult(LongIdentifier repID, LongIdentifier calcID)
    return (Double)calculationResults.get(new CalculationKey(repID, calcID));
    public void addCalculationResult(LongIdentifier repID, LongIdentifier calcID, Double value)
    calculationResults.put(new CalculationKey(repID, calcID), value);
    }....cheers

    You can make a trivial implementation to return a
    constant (not recommended)What do you mean by that? Hmm.. I guess you mean that
    you shouldn't use the same constant for all objects?
    But don't see the int value of an (immutable) Integer
    as constant?
    /Kaj
    You can write hashCode to just always return, say, 42. It will be correct because all objects that are equal will have equal hashcodes. Objects that are not equal will also have equal hashcodes, but that's legal--it just causes a performance hit.
    The value is that it's really really simple to implement: public int hashCode() {
        return 42;
    } So you can use it temporarily while you're concentrating on learning other stuff, or during debugging as a way to confirm that the hashCode is not the problem. (Returning a constant from hashcode(), rather than computing a value, is always legal and correct, so if something's behaving wrong, and you replace your hashCode method with the one above, and it still breaks, you know hashCode isn't the problem.)
    The downside is that you're defeating the purpose of hashing, and any non-trival sized map or set is going to have lousy performance.
    For a decent hashCode recipe, look here:
    http://developer.java.sun.com/developer/Books/effectivejava/Chapter3.pdf

  • Workflow is not trigerred from the portal

    Hi all,
    I have a scenario in which the workflow requires to be trigerred through the portal and direct the task to the approver's inbox in extent to sending email notification to the approver, I have developed the custom workflow and i am using the standard rule for getting the approver. all of this is working fine when i test them on R/3 but wheni am integrating the workflow to the portal using a BAPI it is not trigerring the workflow. The first step in my worklflow is to send the email notification  to the approver, if i remove this step then it directs the task to the approver's inbox which is the second step in my workflow.
    Can anyomne please guide me why it is happening.
    Thanks.
    Saurbah Anand.

    Hi,
    You said
    <i>"wheni am integrating the workflow to the portal using a BAPI it is not trigerring the workflow. The first step in my worklflow is to send the email notification to the approver, <b>if i remove this step then it directs the task to the approver's inbox</b> which is the second step in my workflow."</i>
    Do you mean say that it is not working when you put the sendmail step alone? Or is it that the workflow is not triggering at all.
    I assume that you are using a BAPI to create an event which will start this workflow. Now if your workflow is not starting at all then you need to activate the event trace (SWELS) and check whether the event was triggered first (in SWEL). If yes then check for any errors in the receiver connection.
    If your workflow does start and fails at sending mail step then you may need to give some more info. Are you using the standard sendmail step or Are u using a background task. In case if u r using a BG task then it might be creating a dump while triggering from portal (Ex. it might need the Evt_creator user id to determine the approver which is not binded properly from Event<->Workflow<->Task<->Method).
    Also have a look at ST22 for any dumps.
    Thanks,
    Prasath N

  • Implementation for CRM_MKTPL_OL_OBJ not trigerring

    Hi,
        I have Created an Implementation for the BAdi CRM_MKTPL_OL_OBJ with Filter Value 'TPM' . I have Implemented the Method 'CHECK_ATTRIBUTES' to check the Data on the Trade Promotion Header and raise Error Messages for some Missing Data. But my Custom Implementation is not trigerring and only the Standard Implementation for this BAdi  (CRM_MKTPL_OL_OBJ_TPM) with the Same Filter Value 'TPM' is trigerring. Can someone let me know if there is something I am missing.
    Thanks and Regards,
    H.Krishnan

    Hi,
        I'm not sure about this. But, the BADI/ES "CRM_MKTPL" does not have the "Multiple Use" set. It depends on filter values and only one implementation per filter value is used.
    Regards,
    Arun Prakash

  • Control Framework tree control event not trigerring

    The event handle_node_double_click is not trigerring on the tree controls . I want to display the contents of the nodes on the text editor on trigerring of this event
    *& Report  ZCONTROLS_TREE_TEDIT_SPITTER
    REPORT  zcontrols_tree_tedit_spitter.
    DATA : editor TYPE REF TO cl_gui_textedit,
           tree   TYPE REF TO cl_gui_simple_tree.
    DATA : container TYPE REF TO cl_gui_custom_container,
           splitter  TYPE REF TO cl_gui_easy_splitter_container,
           right     TYPE REF TO cl_gui_container,
           left      TYPE REF TO cl_gui_container.
    DATA : node_itab LIKE node_str OCCURS 0.
          CLASS EVENT_HANDLER DEFINITION
    CLASS event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS : handle_node_double_click
                  FOR EVENT NODE_DOUBLE_CLICK OF cl_gui_simple_tree
                  IMPORTING node_key.
    ENDCLASS.                    "EVENT_HANDLER DEFINITION
          CLASS EVENT_HANDLER IMPLEMENTATION
    CLASS event_handler IMPLEMENTATION.
      METHOD handle_node_double_click.
      perform node_double_click using node_key.
      ENDMETHOD.                    "HANDLE_NODE_DOUBLE_CLICK
    ENDCLASS.                    "EVENT_HANDLER IMPLEMENTATION
    data : handler1 type ref to event_handler.
    START-OF-SELECTION.
      CALL SCREEN 9001.
    *&      Module  start  OUTPUT
          text
    MODULE start OUTPUT.
      SET PF-STATUS 'ZSTAT1'.
      IF container IS INITIAL.
        CREATE OBJECT container
          EXPORTING
             container_name              = 'CONTAINER_NAME'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT splitter
          EXPORTING
            parent            = container
            orientation       = 1
            name              = 'Mohit'
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        left  = splitter->top_left_container.
        right = splitter->bottom_right_container.
        CREATE OBJECT editor
          EXPORTING
            parent                 = right
            name                   = 'MohitEditor'
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5
            OTHERS                 = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT tree
          EXPORTING
            parent                      = left
            node_selection_mode         = tree->node_sel_mode_single
            name                        = 'MohitTree'
          EXCEPTIONS
            lifetime_error              = 1
            cntl_system_error           = 2
            create_error                = 3
            failed                      = 4
            illegal_node_selection_mode = 5
            OTHERS                      = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        PERFORM fill_tree.
        CALL METHOD tree->add_nodes
          EXPORTING
            table_structure_name           = 'NODE_STR'
            node_table                     = node_itab
          EXCEPTIONS
            error_in_node_table            = 1
            failed                         = 2
            dp_error                       = 3
            table_structure_name_not_found = 4
            OTHERS                         = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      create object handler1.
      set handler handler1->handle_node_double_click for tree.
      ENDIF.
    ENDMODULE.                 " start  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
          text
    MODULE user_command_9001 INPUT.
      CALL METHOD cl_gui_cfw=>dispatch.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&      Form  fill_tree
          text
    -->  p1        text
    <--  p2        text
    FORM fill_tree .
      DATA : node LIKE node_str.
      CLEAR node.
      node-node_key = 'head_mohit'.
      node-isfolder = 'X'.
      node-text = 'Mohit'.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child1'.
      node-relatkey = 'head_mohit'.
      node-relatship = cl_gui_simple_tree=>relat_last_child.
      node-text = 'Mohit is the best '.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child2'.
      node-relatkey = 'head_mohit'.
      node-relatship = cl_gui_simple_tree=>relat_last_child.
      node-text = 'Mohit is the bestest '.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'head_JAIN'.
      node-isfolder = 'X'.
      node-text = 'jAIN'.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child3'.
      node-relatkey = 'head_JAIN'.
      node-relatship = cl_gui_simple_tree=>relat_next_sibling.
      node-text = 'cnh INDIA '.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child4'.
      node-relatkey = 'head_JAIN'.
      node-relatship = cl_gui_simple_tree=>relat_last_child.
      node-text = 'SAP  '.
      APPEND node TO node_itab.
    ENDFORM.                    " fill_tree
    *&      Form  node_double_click
          text
         -->P_NODE_KEY  text
    form node_double_click  using  p_node_key type TV_NODEKEY.
    DATA : node LIKE node_str.
    DATA textline(256).
    DATA text_table LIKE STANDARD TABLE OF textline.
    READ TABLE node_itab WITH KEY node_key = p_node_key
                             INTO node.
    endform.                    " node_double_click
    *&      Module  exit  INPUT
          text
    module exit input.
    CASE sy-ucomm.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
    ENDCASE.
    endmodule.                 " exit  INPUT

    Hello Mohit
    Here is a sample routine (taken from BCALV_TREE_02) which you have to add and adapt for your report. It does two things:
    1. Register events that should be handled (required but not sufficient for event handling)
    2. Set event handler for registered events
    The first step is different from ALV grid controls because here all events are already registered with the control (not the control framework).
    Set the event handler (statement SET HANDLER) registers the event handling with the control framework.
    FORM register_events.
    *§4. Event registration: tell ALV Tree which events shall be passed
    *    from frontend to backend.
      DATA: lt_events TYPE cntl_simple_events,
            l_event TYPE cntl_simple_event,
            l_event_receiver TYPE REF TO lcl_tree_event_receiver.
    *§4a. Frontend registration(i):  get already registered tree events.
    * The following four tree events registers ALV Tree in the constructor
    * method itself.
    *    - cl_gui_column_tree=>eventid_expand_no_children
    * (needed to load data to frontend when a user expands a node)
    *    - cl_gui_column_tree=>eventid_header_context_men_req
    * (needed for header context menu)
    *    - cl_gui_column_tree=>eventid_header_click
    * (allows selection of columns (only when item selection activated))
    *   - cl_gui_column_tree=>eventid_item_keypress
    * (needed for F1-Help (only when item selection activated))
    * Nevertheless you have to provide their IDs again if you register
    * additional events with SET_REGISTERED_EVENTS (see below).
    * To do so, call first method  GET_REGISTERED_EVENTS (this way,
    * all already registered events remain registered, even your own):
    call method g_alv_tree->get_registered_events
          importing events = lt_events.
    * (If you do not these events will be deregistered!!!).
    * You do not have to register events of the toolbar again.
    *§4b. Frontend registration(ii): add additional event ids
      l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
      APPEND l_event TO lt_events.
    *§4c. Frontend registration(iii):provide new event table to alv tree
      CALL METHOD g_alv_tree->set_registered_events
        EXPORTING
          events = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3.
      IF sy-subrc <> 0.
        MESSAGE x208(00) WITH 'ERROR'.     "#EC NOTEXT
      ENDIF.
    *§4d. Register events on backend (ABAP Objects event handling)
      CREATE OBJECT l_event_receiver.
      SET HANDLER l_event_receiver->handle_node_double_click FOR g_alv_tree.
    ENDFORM.                               " register_events
    Regards
      Uwe

  • Is thare a way to delete extre genres catagories from ipod classis when pluged in to computer I con not finde any way to do so?

    Is thare a way to delete extra genres categories from ipod classic?When plugged in to computer I can not find any kind of option?

    Of course. Simply change the genre of the songs so that none of your songs have the genre you wish to get rid of.
    You have two ways of showing the genre in iTunes. So if you cannot already see the genre, choose one of the following methods:
    Select View/As List and then select View/View Options and put a tick-in-the-box for Genre. Now that you can see the genre, simply select the songs with the genre you wish to change and type in the genre you do want.
    Select View/Column Browser and then select View/Column Browser/Genre (so that genre is ticked). This time, in the top browser column (genre) scroll down to and select the genre. Now all songs with that genre are shown in one group. Either a.) change them one at a time (if choosing different "new" genres) or b.) select all of them at once - and then select File/Get Info/Info/Genre,  and replace the genre.
    A genre is only shown if there is at least one song with that genre.

Maybe you are looking for

  • I need to sort very large Excel files and perform other operations.  How much faster would this be on a MacPro rather than my MacBook Pro i7, 2.6, 15R?

    I am a scientist and run my own business.  Money is tight.  I have some very large Excel files (~200MB) that I need to sort and perform logic operations on.  I currently use a MacBookPro (i7 core, 2.6GHz, 16GB 1600 MHz DDR3) and I am thinking about b

  • Module pool problem

    Hi, I m using module pool and i have used select-options in the screen, for that i have definged select-options as subscreen and called using call subscreen... in module pool. My problem is when i validate select-options im thrown error message and t

  • Mail and LAN

    First of all, I would like to thank all of those who answered my previosu querries. It really helped me a lot. It made me appreciate my Apple as i use it everyday. Nothing beats it. Have problem with mail using my LAN. Am using gmail for my POP mail.

  • Recordset type of data on Collections

    if i were to implement this and this is really dynamic can contain a lot of data runtime. i as key and has its own set of unique values j as key and has its own set of unique values. k as key and has its own set of unique values. example, 2 separate

  • Opening a UTF8 file in SqlPlus Worksheet

    OS: Win2000 server Oracle 9: Unicode installation, for multilingual data. I need to open a script (it's in UTF8) file containing some Japanese characters. I changed the client configuration (NLS_LANG) and also my regional settings to be able to type