cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Popup in CRM UI which is enabled to accept free text

Former Member
0 Kudos

Hello Experts,

My client requirement is - Based on user selection on a certain field of type 'checkbox', a popup window should come where user can key in free text.

We can complete it easily in regular R/3 development. But I am not sure whether it is doable or not in CRM UI.

Please provide your view/suggestions or It would be fine if you can refer some standard SAP component where similar requirement has been taken care.

Really appreciate your time and suggestions.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

juergenbaur
Active Participant
0 Kudos

Hi,

the standard component for this is: GS_TEXT. You can use this as a component usage in your component.

If you do so, you have to customize the text-id you want.

br

Jürgen.

Former Member
0 Kudos

Hi Jurgen,

Thanks for the reference component. It is GSTEXT not GS_TEXT. Can you please guide me the steps how can I add this to my component where I need to include?

Appreciate your help !!!

juergenbaur
Active Participant
0 Kudos

Hi,

you have to include this component as a "component usage".

Have a look at component BT115H_SLSO for example.

In component controller CL_BT115H_S_BSPWDCOMPONEN_IMPL->WD_USAGE_INITIALIZE

      when 'CUGSText'.
      call method lv_usage->bind_context_node
        exporting
          iv_controller_type  = cl_bsp_wd_controller=>co_type_custom
          iv_node_2_bind      = 'TEXT'
          iv_name             = 'CUGSText'
          iv_target_node_name = 'BTTEXT'.

you can see how it works.

br

Jürgen

Former Member
0 Kudos

You can call pop using the code below example.

   lr_popup =  me->comp_controller->window_manager->create_popupiv_interface_view_name = 'GSURLPOPUP/MainWindow'
                                                                   iv_usage_name          = 'CUGSURLPopup'
                                                                   iv_title               = lv_title ).
   lr_cn = lr_popup->get_context_node( 'PARAMS' ).
   lr_obj = lr_cn->collection_wrapper->get_current( ).
   lr_obj->set_property( iv_attr_name = 'URL'
                         iv_value     = iv_url ).
   lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_plain ).
   lr_popup->set_window_width( 700 ).
   lr_popup->set_window_height( 700 ).
   lr_popup->open( ).

Former Member
0 Kudos

Thank you Satish. I'll try. I hope it should solve my purpose. May my question would be invalid. How can I get the content what user key into the pop up ?