10-10-2006 1:35 PM
Hello gurus,
My requirement is to display a pop-up message..is it possible to call a function module in a method.
Valuable answers appreciated..awaiting for ur ans.
Thanks in advance..
Regards,
Ravi V Ganji
10-10-2006 1:37 PM
Yes it is possible.
Some FM's for POP-UP:
POPUP_TO_CONFIRM_STEP
POPUP_TO_INFORM
POPUP_TO_CONFIRM
POPUP_TO_CONFIRM_WITH_MESSAGE
POPUP_DISPLAY_MESSAGE
POPUP_DISPLAY_MESSAGE
Regards,
Prakash.
10-10-2006 1:37 PM
Yes it is possible.
Some FM's for POP-UP:
POPUP_TO_CONFIRM_STEP
POPUP_TO_INFORM
POPUP_TO_CONFIRM
POPUP_TO_CONFIRM_WITH_MESSAGE
POPUP_DISPLAY_MESSAGE
POPUP_DISPLAY_MESSAGE
Regards,
Prakash.
10-10-2006 1:47 PM
Hi Ravi,
Please find the sample code:
DATA: ws_action TYPE c. " Action Yes(1)/No
CONSTANTS: c_x TYPE c VALUE 'X',
c_succ TYPE iconname VALUE '@01@',
c_fail TYPE iconname VALUE '@02@'.
*-- Call Function Module to display POPUP message and Process
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Title'
text_question = 'Do you want to continue'
text_button_1 = 'Yes'
icon_button_1 = ''
text_button_2 = 'NO'
icon_button_2 = c_fail
default_button = '2'
display_cancel_button = ' '
start_column = 25
start_row = 6
IMPORTING
answer = ws_action
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH text-044.
ENDIF.
CHECK ws_action EQ 1.
10-10-2006 2:12 PM
hi
good
you can use the following function module to display different kind of pop-up messages
POPUP_TO_CONFIRM_LOSS_OF_DATA Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.
POPUP_TO_CONFIRM_STEP Create a dialog box in which you make a question whether the user wishes to perform the step.
POPUP_TO_CONFIRM_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point during an action.
POPUP_TO_CONFIRM_WITH_VALUE Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.
POPUP_TO_DECIDE Provide user with several choices as radio buttons
POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.
POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message
POPUP_TO_SELECT_MONTH Popup to choose a month
POPUP_WITH_TABLE_DISPLAY Provide a display of a table for user to select one, with the value of the table line returned when selected
yes i think you can call a function module in a method.
thanks
mrutyun^