Skip to Content
author's profile photo Former Member
Former Member

ICCMP_BTSHEAD automatic "back" at save event

Good evening all,

I would like that when the user save the activity in the component ICCMP_BTSHEAD, automatically it go back like when you press the button back.

How it is possible to intercept the save event and go back?

I know that the button Bar is developed in the component ICCMP_BT_ACT (BSP application ICCMP_BT_BUTTON) controller CL_ICCMP_BT_BUTTONBAR_IMPL and method EH_ONSAVE.

There is the possibility to intercept the save event in the viewcontroller of the component ICCMP_BTSHEAD, and with a class like the follow navigate back?

DATA : lr_navigation TYPE REF TO if_crm_ui_navigation_service,

lr_entity TYPE REF TO cl_crm_bol_entity,

lr_clipboard TYPE REF TO if_crm_ui_bol_clipboard,

lr_impl TYPE REF TO cl_crm_ui_f_cuconavigatio_impl.

TRY.

lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).

lr_impl ?= lr_navigation.

lr_navigation->navigate(

EXPORTING

iv_link_id = iv_link_id

).

Many thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 31, 2013 at 09:16 AM

    Hi Marco,

    Try adding this code:

    DATA:
    history TYPE REF TO if_bsp_wd_history_manager_disp.

    history = view_manager->get_history_manager_display( ).

    history->go_back( ).


    Into EH_ONSAVE of ICCMP_BT_BUTTON component.


    Best regards.

    Happy new year.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 31, 2013 at 04:41 AM

    Hi Marco,

    In Save event after save call Outbound plug op_default_back( ) which is a standard outbound plug in class CL_BSP_WD_VIEW_CONTROLLER .

    Regards,

    Deepika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2013 at 09:31 AM

    Hi Deepika and Jorge,

    I did an enhancement to the component ICCMP_BT_BUTTON redefining the EH_ONSAVE and putting the code written by Jorge, it works correctly

    Many thanks and happy new year to you!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.