ICCMP_BP_CP event EH_ONSAVE

HI Experts,
I redifined event eh_onsave of view BupaConatactPersonCreate of the component iccmp_bp_cp .
But when I am putting externam brekpoint on my redefined method , debuggers is not getting hit.
But when I putting breakpoint on super method , debugger is going there.
While redifing I am calling Super method too.
Please help me , why my redefined eh_onsave is not getting hit.
Thanks & Regards,
Akhilesh Bhagat.

Hi Akhilesh,
Please check whether the enhancement set and client system ID has been maintained correctly in table view BSPWDV_EHSET_ASG.
If everything maintained correctly then redefine the do_handle_event also then keep break in redefined method and check.
Regards,
Dharmakasi.

Similar Messages

  • Get the pointOfDelivery in event EH_ONSAVE, component IUICOBJ

    Hello Experts,
    A lot of Thanks for reading this, and Thanks for your time.
    I have a new question,
    In Component: IUICOBJ
    View: SOToolbar
    Event: EH_ONSAVE.
    I have checked Me->typed_context and the objects, and pointOfDelivery there isn't, How I can get this. With a realition?? or how I can??
    Could you help me, please

    a

  • Include standard save functionalities in Z view

    Hi,
    we've created a new component (view) which is shown when displaying an IBASE (component IBMAIN). On top of the IBASE maintenance screen in the web UI you can find buttons for editing data, cancel editing or save changes.
    The save button is displayed as soon as you click the editing button, however, it is inactive. As soon as you change any data, the save button becomes clickable.
    Saving data seems to be triggered by event EH_ONSAVE in class CL_IBMAIN_IBMAINVIEWSET_IMPL.
    The thing is that we'd like to extend our view that the standard functions are supported, means, as soon as we change anything in our view, the save button should be active (by triggering a data changed event), when clicking the save button, our data should be saved as well.
    We found class CL_CRM_BOL_TX_MANAGER which seems to hold data and flags for information having been changed.
    Is there any quick guide on how to use this default feature?
    Many thanks & regards
    Wolfgang

    Hi Wolfgang,
    A code similar to this, in the method where you are adding the buttons will make the Save and Edit Button in Sync.
    Save:
    Data: lr_entity  TYPE REF TO cl_crm_bol_entity,
    * Get the current entity which is currently being edited
      lr_entity ?= me->typed_context->context node name->collection_wrapper->get_current( ).
      CHECK lr_entity IS BOUND.
    * Button SAVE
      CLEAR ls_button.
      ls_button-page_id  = me->component_id.
      ls_button-on_click = 'save'.
      ls_button-type     = cl_thtmlb_util=>gc_icon_save.
      ls_button-enabled = lr_entity->is_locked( ).
      APPEND ls_button TO rt_buttons.
    Edit:
    data: lv_enabled    TYPE crmt_boolean,
      lv_enabled = me->view_group_context->is_view_in_display_mode( me ).   
      ls_button-type     = cl_thtmlb_util=>gc_icon_edit.
      ls_button-on_click = 'EDIT'.
      ls_button-text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/EDIT' )."#EC NOTEXT
      ls_button-enabled  = lv_enabled.
      APPEND ls_button TO gt_button.
      CLEAR ls_button.
    Class CL_CRM_BOL_TX_MANAGER should be fine for saving, before that you can use either of methods  CHECK_SAVE_POSSIBLE,  CHECK_SAVE_NEEDED.
    Please do a where used for sample code or look into event handlers of any of standard components like SEGED_TG/EFTARGETGROUP.
    Regards,
    Masood Imrani S.

  • Popup window not populated on SAVE event

    Hi All,
    I am enhancing standard AIC_INCIDENT_H component on EH_ONSAVE event, requirement is  to display ComponentUsage "CUGSSurvey"
    , InterfaceView "SurveyWindow as Popup window , but there is a blank popup appeared
    On SAVE event i write the following code:
       IF gr_proctype_popup IS NOT BOUND.
        gr_proctype_popup = comp_controller->window_manager->create_popup(
                            iv_interface_view_name = 'SurveyWindow'
                            iv_usage_name          = 'CUGSSurvey'
                            iv_title               = 'Survey' ).
        ENDIF.
    lv_viewname2 = 'CUGSSurvey.SurveyOverviewWindow'.
    lr_viewset ?= me->get_subcontroller_by_viewname( lv_viewname2 )..
    lr_view_ctrl_par ?= lr_viewset->M_PARENT. ".
    current_sur_id = lr_view_ctrl_par->TYPED_CONTEXT->SURVEYID->collection_wrapper->get_current( ).
    current_sur_ver = lr_view_ctrl_par->TYPED_CONTEXT->SURVEYVERSION->collection_wrapper->get_current( ).
    * while current_sur_id is not initial.
          if current_sur_id is not bound.
            return.
          endif.
             try.
    *        data: rv_result type string.
            CALL METHOD current_sur_id->GET_PROPERTY_AS_STRING
              EXPORTING
                IV_ATTR_NAME = 'SURVEY_ID'
              RECEIVING
                RV_RESULT    = RV_RESULT
            catch cx_crm_cic_parameter_error.
          endtry.
          RV_RESULT = 'FDB_FORM_01'.
               TRY.
                CALL METHOD current_sur_id->SET_PROPERTY_AS_STRING
                  EXPORTING
                    IV_ATTR_NAME = 'SURVEY_ID'
                    IV_VALUE     = RV_RESULT
    *          data: lr_core TYPE REF TO cl_crm_bol_core.
    *          lr_core ?= cl_crm_bol_core=>get_instance( ).
    *          lr_core->modify( ).
    *            exit.
                 CATCH CX_SY_CONVERSION_ERROR .
              ENDTRY.
            if current_sur_id is not bound.
            return.
          endif.
             try.
    *        data: rv_result type string.
            CALL METHOD current_sur_ver->GET_PROPERTY_AS_STRING
              EXPORTING
                IV_ATTR_NAME = 'SURVEYVERSION'
              RECEIVING
                RV_RESULT    = RV_RESULT2
            catch cx_crm_cic_parameter_error.
          endtry.
          RV_RESULT2 = '0000000000'.
               TRY.
                CALL METHOD current_sur_ver->SET_PROPERTY_AS_STRING
                  EXPORTING
                    IV_ATTR_NAME = 'SURVEYVERSION'
                    IV_VALUE     = RV_RESULT2
    *          data: lr_core TYPE REF TO cl_crm_bol_core.
    *          lr_core ?= cl_crm_bol_core=>get_instance( ).
    *          lr_core->modify( ).
    *            exit.
                 CATCH CX_SY_CONVERSION_ERROR .
              ENDTRY.
      gr_proctype_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
      gr_proctype_popup->open( ).
    but on save event this screen appeared:
    I want this view with survey form, filled by user and then SAVE the incident.

    Hi Mohammed,
    Try setting the enabled property to false for ROOTUIELEMENTCONTAINER in that view. It should work out for you.
    Regards,
    Uday

  • Invoking an Event from another view

    In the Interaction Record viewset (IRecViewSet), when a user creates a Followup I need to not only create the followup but also automatically Save the main interaction record as well; as if the user clicks the Create Followup button then the Save button.
    The problem is the Create Followup button is in the Followup view, and the Save button is in the Reason view.
    How can I invoke the EH_ONSAVE event of the Reason view from within the Followup view?
    Thanks.
    (we are using CRM5.0)

    Check the Code for EH_ONSAVE for  View IRecReason ( Interaction Record ) . You can call the same code in your follow up View . Should work . Let me know

  • Account: EH_ONSAVE

    Hi ,
    I have to make an enhancement in account page so that user can change the sales region for an account . But sales region change will trigger an approval workflow. Once the workitem is approved , the new sales region will reflect to account overview page , till  then user will get a message that please wait for approval and old sales region will  be reflected in account overview page under relationship assignment block.
    To acheive a scenario like this , i m deleting the new  sales region from builrelationship collection and assigning the old sales region . Before this i m calling function module  BAPI_BUPR_RELATIONSHIP_DELETE and BAPI_TRANSACTION_COMMIT  to delete the relationship between account id and previous sales region . After doing this step i m assigning the old sales region to bol entity .
    But  after save i m getting an error that this relationship already existsn and my page is not getting saved. I have checked in debugging mode that after calling these FMs  the relationship is not getting deleted from table , but when i run these transcations in se37   , it is deleting the relationship.
    Can any one please suggest me some other FM  to delete the relationship or  there is any flaw in my logic.  I am struck in this issue from last one day .
    << Moderator message - Please do not offer points >>
    Thanks & Regards
    Tarmmem
    Edited by: Rob Burbank on Dec 3, 2010 4:08 PM

    Hi,
    Debug below method which is getting called in eh_onsave event of bp_head..
    cl_crm_uiu_bp_tools=>save(  ir_message_service = lr_msg_service  ) = abap_true.
    before calling this method you have to modify the collection by deleting entities, check if the relationship entity still available in cl_crm_uiu_bp_tools=>save this call and why it's failing..
    Hope this helps..
    Cheers,
    Sumit Mittal

  • How to find event handler for save button in salesorders

    Hi,
    I want perform event based on save button in salesorders.Can you tell me how to find the event handler for
    save button.
    Regards,
    Brahmaji

    Brahma,
    you can find the component, view details by doing an F2.
    open the component, the view will be mostly an overview page i.e., the name ends OP etc.,
    But your method name will be mostly EH_ONSAVE, you need to find exact view.
    F2 does not come up properly for overview pages, you have to look into UI config tool preview and make sure sometimes.
    Regards,
    Masood Imrani S.

  • Training and Event Management - report on list of cancelled courses

    Hi All,
    Is there any standard report available to get the list of cancelled courses (be it business event grp , type or business event) Would appreciate your inputs on this.
    Kind regards
    Sathya

    S_AHR_61016216 - Cancellations per Attendee , i think there is no standard report for cencelation of business events, type and group.
    for cancellations per attendee reports is available in the system.
    good luck
    Devi

  • How can I see Calendar event END times at a glance?

    How can I display my Calendar event titles exactly as I type them? I do not want Calendar to remove duration from the titles of my events. Otherwise I can't see event END times at a glance in month view; only start times. How can I "trick" Calendar to just show my titles as I type them - as I always could before I upgraded. I used to be able to enter "Seminar 9am-5:45" and it would appear that way regardless of how or what I chose to enter (or not enter) for duration.
    I am running OSX 10.9.3.

    It's a bit weird, but if you type in the time info TWICE into the event title then Calendar uses/deletes one of them to populate the event details and leaves the other.
    Apple - Mac OS X - Feedback

  • Event List view in iCal?

    I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
    I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Can I show a color bar instead of a color bullet in iCal Monthly view for all my events in all calendars?

    In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.

    Greetings Judith,
    Before making any attempts at deleting calendar data, backup what you have just in case:
    Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed.  By typing in a value for days you can tell iCal to delete all events before that time frame.
    Example:
    Today is 4-16-2012.
    If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
    Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
    Re-open iCal and check to see if the events are gone.  If not you may want to leave it open for several minutes and then quit again.
    Once the events are removed go back to  iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
    Hope that helps.

  • Can you show at a glance which event images are in albums?

    Say I had an event containing multiple similar but different images, is there a way to show in the grid view for example which images have already been used in one or more albums?
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box. I guess you could hide images you've used but that wouldn't work automatically, nor would any other tagging/rating.
    Another approach would be to make albums containing everything in a given event, then move the images out of that album once used, just seems fiddly to me.
    AC

    AC
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box.
    Yes it would and many people have suggested tit. Add your voice to the chorus at iPhoto Menu -> Provide Apple Feedback.
    A workaround - and it's no better - is to go to an album and select al, then give all those pics a keyword. Then in grid view you can see which pics have the keyword. (View -> Keywords)
    Regards
    TD

  • Unable to capture startup and shutdown event of Photoshop in automation Plugin.

    Hi,
    I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
    I am unable to detect the cause of the problem. Can someone please giude me??
    Thanks in advance.

    Hi Tom,
    Thanks for the suggestion.
    Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
    Any other thing that I need to do to make it work?
    Thanks

  • Unable to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout
    pageLayoutCO (controller)
    ----header (Region)
    ----------messageComponentLayout (Region)
    -----------------MessageLovInpurt
    -----------------MessageChoice(Item)
    -----------------MessageTextInput
    -----------------MessageLayout
    ----------HideShow (Region)
    -----------------MessageLovInpurt(Item)
    -----------------MessageChoice(Item)
    -----------------MessageTextInput(Item)
    -----------MessageComponentLayout (Region)
    -----------------MessageLayout
    ------------------------SubmitButton(ID:SearchBtn)
    ------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
    -----------header(Region)
    I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
    The two methods I used as follows aren't worked:
    if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    if (pageContext.getParameter("ClearBtn") != null) {
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Mandy
    Edited by: user8898100 on 2011-8-2 上午7:49

    Mandy,
    Its really strange that its not able to caputure the event in CO.
    Below is the way in which we handle to Submit action at CO level.
    /Check whether ClearBtn is same in case too.
    if(pageContext.getParameter("ClearBtn")!=null){
    System.out.println("Inside the Clear Btn Action");
    Regards,
    Gyan

  • SAP event not triggering in B1if

    Hi,
    Facing an issue when creating JE in one company on trigger of this b1if scenario gets activated and create JE in another company,earlier it was working fine, after upgrading Integration Component from SAP 9.0 PL12 to SAP 9.0 PL15  issue occurred.
    In message log in b1if can't see any log(Success,Failure,Processing,Filtered).
    Any help would be appreciated.
    Thanks

    Hi,
    Please check on event sender setup.
    Have you click on "Create Complete Journal Entry Events" on 4th step of Event sender in Event Filter option ?
    Thanks,
    Tushar

Maybe you are looking for

  • Having problems syncing 1st gen Ipod nano.

    I have a 1st gen Ipod nano (i'm pretty sure it's a 1st gen) that I gave to my mother because I got an Ipod touch. She has her own Itunes accout on her own computer and is trying to connect my old Ipod to her computer/itunes so she can use it and down

  • Better links regarding the Nvidia FX 4800 for Mac

    The link I left in my earlier post did not due justice to this amazing new graphics card. Please check out these more pertinent links: http://www.nvidia.com/object/product_quadro_fx_4800_for_mac_us.html http://layersmagazine.com/nvidia-quadro-fx-4800

  • Cost difference between PM report MCI8 and IW38 orders cost

    Hi Experts! I have an issue of cost difference  between Plant Maintenance total actual cost of orders and Cost analysis report. Short Text     Cost difference between PM report MCI8 and IW38 orders cost    Long Text     Applied SAP notes 180047 and 1

  • Web service client JAR problem

    I have a .NET Web Service and I made a client JAR with the WebLogic Workshop. When I try to have data from the Web Service the WebLogic console shows me this error web service invoke failed: javax.xml.soap.SOAPException: failed to serialize interface

  • Header Conditions in Scheduling Aggreement

    Hello all, I want to know how to use the Header conditions for scheduling agreement. We have  used them for Purchase Order. How to define the same in case of scheduling agreement. Edited by: sp sap on May 4, 2010 10:45 AM