on 01-14-2009 1:31 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your answer. very helpfull answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.