on 06-04-2009 4:44 PM
hi
can any1 tell me how to use this fm in web template.
as i understand POPUP_TO_CONFIRM is for gui
Hi,
Here below is a sample coding for calling FM:
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning Message'
text_question = 'Cumulative credit check for non ret order'
text_button_1 = 'Yes'
text_button_2 = 'No'
default_button = '2'
display_cancel_button = ''
IMPORTING
answer = zz_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
CASE zz_answer.
WHEN '1'.
* Process further checks
WHEN '2'.
SET SCREEN 0.
LEAVE TO SCREEN 4001.
WHEN OTHERS.
* N/a
ENDCASE.
Rgs,
Ramani N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Link may be helpfull:
@aadil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the Popup_to_confirm function module to confirm a user selection with a response. The pop-up dialog box has three elements, a title bar, the "text question" and the response. There are 3 and always three responses, normally "yes", "no" and "cancel." You will always pass a text question, and can control the 'Yes' and 'No' answers, although 'Yes' and 'No' are the defaults. You can control the titlebar, but if the parameter is blank, the titlebar assumes the text description of the program.
call function 'POPUP_TO_CONFIRM'
exporting
text_question = 'Do You want to Save'
importing
answer = w_answer
exceptions
text_not_found = 1
others = 2.
if sy-subrc <> 0. " Function call failed.
message i000 with text-006. " Func call failed contact IS
stop.
endif.
case w_answer.
when '1'.
The data will be saved.
when '2'.
The data will not be saved and the cursor is in the same screen.
endcase.
Regards,
Venu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right, but i need to call FM from web template.
i tried to call FM popup_to confirm, but the problem is that this FM can be called from GUI interface. and when calling this FM from web there is an error.
Suppose code for Web Dynpro is exactly what i need, but don't know how to call it from BI.
I used CALL FUNCTION POPUP_TO_CONFIRM when i tried to call GUI popup
How can i call FM for Web Dynpro?
Hi,
Is this you are looking for..Code for Web Dynpro
DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
lo_popup TYPE REF TO if_wd_window,
lo_api TYPE REF TO if_wd_view_controller,
lo_cmp_api TYPE REF TO if_wd_component.
* Display confirmation pop up
lo_cmp_api = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_cmp_api->get_window_manager( ).
CALL METHOD lo_window_manager->create_popup_to_confirm
EXPORTING
text = l_text
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_question
close_button = abap_false
window_title = l_titlebar
window_position = if_wd_window=>co_center
RECEIVING
result = lo_popup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.