cancel
Showing results for 
Search instead for 
Did you mean: 

"Popup to decide" in IC WebClient

Former Member
0 Kudos

Hi all,

For a customer I need to implement a popup in an IC WebClient scenario.

In some cases, when saving a Service Ticket, a popup should be displayed containig some data (not all fixt text !), en the user should have the possibility to choose between multiple options (save with status open, save with status closed, do not save).

Has anybody experience with such a thing, some sample coding or guidelines should be very helpfull.

Kind rgds,

Michiel

Accepted Solutions (1)

Accepted Solutions (1)

former_member927251
Active Contributor
0 Kudos

Hi Mchiel,

Create an action i.e. create an implementation for the BADI EXEC_METHODCALL_PPF. Write the code to show the popup.

E.g. Create a custom screen and call the screen from the BADI implementation. Remember you can't directly call the screen in the BADI, rather you will have to create an FM and write the CALL SCREEN statement in the FM. Call this FM from the BADI.

Now, once you are done with the BADI implementation, configure the same in SPRO customizing. Search for 'Actions in transaction'. Configure the action so that it triggers on the save of the transaction.

Refer the following link for details about Actions :

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c87bb93d-0b01-0010-a0b4-b04...

<b>Reward points if it helps.</b>

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you for the detailed answer.

Unfortunately, I need to develop this on CRM 4.0 (Service extension), and the class/method mentionned is not available.

I'm afraid I will need to look for another solution...

Thanx anyway,

Michiel

Former Member
0 Kudos

Hi Michiel,

I think I unerstand what you want. I am not so sure if this works in CRM 5.0 but you can try if

create_decision_popup

method is in window_manager class.

Please use this code on your view event handler or where you want the pop up to be created based on your conditions.

Note: This code is specific to the latest release of CRM.

Data: DEC_POPUP	Type Ref To	IF_BSP_WD_POPUP.
  TYPES:
    BEGIN OF ty_tree_desc_filter,
      save_type TYPE string,
    END OF ty_tree_desc_filter.

  DATA: it_tree_desc_filter TYPE TABLE OF ty_tree_desc_filter.
  DATA: ls_tree_desc_filter TYPE ty_tree_desc_filter.
....
          ls_col_def-columnname = 'Save_types'.            
          ls_col_def-title = 'Save Scenerios'.                     
          APPEND ls_col_def TO lt_col_def.
....
          ls_tree_desc_filter-save_type = 'Save with status open'.
          APPEND ls_tree_desc_filter TO lt_tree_desc_filter.
          ls_tree_desc_filter-save_type = 'Save with status closed'.
          APPEND ls_tree_desc_filter TO lt_tree_desc_filter.
          ls_tree_desc_filter-save_type = 'Do not Save'.
          APPEND ls_tree_desc_filter TO lt_tree_desc_filter.


          dec_popup = comp_controller->window_manager->create_decision_popup(
            iv_title = 'Select different saves'              
            iv_description = 'User selection of saves'
            iv_display_table = it_tree_desc_filter
            iv_visible_columns = lt_col_def
          ).
          dec_popup->set_on_close_event( iv_event_name = 'DEC_POPUP_CLOSED' iv_view = me ).

          dec_popup->open( ).

.......

This popup will appear as a table with the different texts in each row. After you select a particular row, the control would shift to the on close event (here it is DEC_POPUP_CLOSED). Please create a event handler for on close with the same name and code your logic for each save.

Hope this is useful to you. Do not forget to reward if helpful.

Thanks,

Sudipta.

Former Member
0 Kudos

Hi,

In future, please raise all IC web client question in CRM - Web application forum.

Thanks,

Sudipta.

Former Member
0 Kudos

Hi Pratik,

Thank you for the suggestion.

Can you also give me some more detailed (technical) info on how to implement this. Perhaps you have a code example, or a manual how to do this.

Regards,

Michiel

Former Member
0 Kudos

HI!

Actually, the above way won't help you as you want popup from IC webclient and not online..

hence you need to extend the viewset of service ticket.. and the controller associated to if for Model.

In the controller for save method you need to invode a new view, which is a web popup..

Best Regards,

Pratik Patel

<b>Reward with Points!</b>