cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a pop up message in the WEB GUI?

Former Member
0 Kudos

DEar gurus,

When I am using SAP GUI, a pop_up_to_confirm function works fine. But in the WEB gui it doesn't work.

What is the way to get it work?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi,

Create your Enhamcement set in sm34.

Assign your ES to client in SM30.

While in the Component WB your ES should default if your COMPONENT_LOADING BADI is active.

once you display, click Ehnace component , it asks for the name of the BSP application it should be copied to, and the BSP application will be created along with the runtime repository.

Rightclick on the view and choose enhance.

regards,

Muralidhar Prasad.C

MariusStoica
Active Participant
0 Kudos

Hi,

I'm new to SAP CRM as well and I'm trying to get my head around the new concepts.

I received an error message.

What I'm trying to achieve is a popup screen for "user + password" input. I tried this easy example but it seems it's not so easy.

You're talking about a "view controller" class.

At the moment I'm using the new created class ZCL_IM_ORDER_SAVE to do some things after save, but in the same time I need this popup.

In what view do I need to find this controller ?

Here are the only data that I can think of that can help you share the relevant info

Do I access that view with "BSP_WD_CMPWB"?

Thank you in advance,

Marius

Former Member
0 Kudos

hi,

Create your Enhamcement set in sm34.

Assign your ES to client in SM30.

While in the Component WB your ES should default if your COMPONENT_LOADING BADI is active.

once you display, click Ehnace component , it asks for the name of the BSP application it should be copied to, and the BSP application will be created along with the runtime repository.

Rightclick on the view and choose enhance.

regards,

Muralidhar Prasad.C

Former Member
0 Kudos

thanks for your answer. very helpfull answer.

Former Member
0 Kudos

You said

"You will need to create following in IMPL class of your view :"

I am using the standart class which is "CL_BT116H_S_DETAILS_IMPL". I should copy it to the "Z" environment. But I don't know how to connect the new Z object to the application.

suchita_phulkar
Active Contributor
0 Kudos

hi,

If you using your own Z-object, then you must be having a Z-class.

If you are using SAP given Std. object, then you will have to enhance it using enhancement set.

When you enhance the object, the wizards creats Z classes .

Thanks & Regards,

Suchita.

Former Member
0 Kudos

Each time I tried to create enhancement i got an error which is "View not copied with wizard; processing not possible".

So, I couldn't enhance standart view.

help

suchita_phulkar
Active Contributor
0 Kudos

Hi Ozlem,

There are many threads in the forum explaing this. You should have searched before posting the thread.

Anyways, following is the solution :

Open the component and then view where the pop up is to be raised.

You must be rasing the popup on some event...

You will need to create following in IMPL class of your view :

1) a Pop up reference variable

2) method that creates pop up and opens it.

3) method to handle yes / no button clicks on the pop up where we can define if yes button is clicked the what is the action to be taken .

Following are the details :

Class Variable :

-


CONFIRM_POPUP Instance Type Ref To IF_BSP_WD_POPUP .

method:

-


METHOD eh_onconfirm_popup..

if confirm_popup is not bound.

data: lv_save type string,

lv_text type string.

lv_save = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_GRM_GAG/SAVE' ). "#EC N

lv_text = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_GRM_GAG/CONFIRM_SAVE' )

call method comp_controller->window_manager->create_popup_2_confirm

exporting

iv_title = lv_save

iv_text = lv_text

iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_yesnocancel

receiving

rv_result = confirm_popup.

confirm_popup->set_on_close_event( iv_event_name = 'CONFIRM_POPUP_CLOSED'

iv_view = me ). "#EC NOTEXT

endif.

confirm_popup->open( ).

ENDMETHOD.

-


The method Confirm_popup_closed:

METHOD eh_onconfirm_popup_closed.

DATA: lv_answer TYPE string,

lv_save_result TYPE abap_bool,

lr_application TYPE REF TO cl_crm_bol_entity,

lr_tx TYPE REF TO if_bol_transaction_context,

lr_coco TYPE REF TO cl_crmcmp_g_bspwdcompone0_impl.

INCLUDE: crm_object_types_con.

  • Retrieve the answer

  • this is where you can tell which button has been hold

lv_answer = confirm_popup->get_fired_outbound_plug( ).

CASE lv_answer.

WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_yes.

*

WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_no.

WHEN OTHERS.

ENDCASE.

ENDMETHOD.

-


You can the call method eh_onconfirm_popup( ) . in the method/event where you want the popup to be raised.

Hope it helps you.

Regards,

Suchita

Gincyanto
Explorer
0 Kudos

Hi Suchita ,

I followed all the steps given by you . I got the pop up with 3 buttons..But the event confirm_popup_closed is not getting triggered.what could be the reason.

Former Member
0 Kudos

Hi Suchita...

I am facing the same problem as GINCY ANTO mentioned above. I am getting the pop up but confirm_popup_closed event is not triggered. wat could be issue here? let me know if anyone knows..

Thanks in advance.....