Skip to Content
avatar image
Former Member

CRM Transaction launcher back function

I have created a transaction launcher which triggers from the navigational link but before it triggers I have raised a pop up which asks a user for confirmation .On clicking of the navigational link I am calling a custom window which has a empty view(created a custom component).From that empty view I am calling my pop up and from on close event of pop up I am calling the transaction launcher.But once user completes the transaction in ECC and comes back to CRM he sees the empty view and has to manually press the back button to reach the account confirmation page.Is there a way I can show user the confirmation page directly without manually pressing back button??

Please let me know your inputs on this.

You can mail me if req. -Pb314849@gmail.com

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 15, 2017 at 09:38 PM

    Hello,

    I assume that you are opening the transaction launcher in a new window. Based on that, I could think of implementing the call to the previous page before calling the transaction launcher in the event handler of your pop-up and the page will be displayed while the user is working in the transaction launcher.

    Please refer to the following for some examples:

    Navigate Inside a UI Component - How to Guide

    SAP CRM WEBUI Dynamic Navigation to Activity Create

    Creation of Hyperlinks to navigate dynamically on Web UI

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 17, 2017 at 02:55 PM

    HI Siliva ,

    Thanks for your reply. I was able to achieve this using history manager .My transaction was launched in the same window.So I have to navigate back which I did using the below code :

    data: lv_history_access type ref to if_bsp_wd_history_manager_disp,
    ls_history type ihttpnvp,
    gv_history_back_state type ihttpnam,
    lt_history type tihttpnvp.

    lv_history_access = me->view_manager->get_history_manager_display( ).
    lv_history_access->get_history( importing values = lt_history ).

    read table lt_history index 1 into ls_history.
    gv_history_back_state = ls_history-name.
    lv_history_access->go_state( exporting state_name = gv_history_back_state ).

    But there is another issue now ,I am launching the transaction using the link ID ,see below code :

    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    check lr_navigation is bound.
    lr_navigation->navigate( iv_link_id = 'Z_NEW' ).

    I am not able to navigate ,as this link iD is not present in my Business role and nav bar profile.

    I am able to launch when this is assigned to my role.is there a way i can launch this without attaching this logical link to my Role

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 28, 2017 at 11:01 PM

    Hello,

    Unfortunately it is not possible to launch the link ID if it has not been assigned to the used business role.

    Maybe you could navigate to different link ids based on the user's business role to avoid any errors in the navigation. To determine the business role of a user, you could use CL_CRM_UI_PROFILE_DETERM -> LOAD_PROFILES. KBA 1817086 - business role assignment in CRM and troubleshooting might be useful for you too.

    Best regards,

    Silvia

    Add comment
    10|10000 characters needed characters exceeded