‎2006 May 08 11:22 AM
hi, how can i code a messagebox in ABAP similar to "msgbox" of VB6 with yes/no buttons? is it possible?
thanks in advance.
‎2006 May 08 11:24 AM
I don't now how is it in VB,
but going by your description,
you can use POPUP_TO_CONFIRM FM.
Here is the usage:
<i><b> The following call example uses the full functionality of
POPUP_TO_CONFIRM :
call function 'POPUP_TO_CONFIRM'
exporting
titel = 'Title for POPUP_TO_CONFIRM'(A01)
diagnose_object = 'TEXT1_ZUM_POPUP_TO_CONFIRM'
text_question = 'Do you want to carry out this
fantastic test?'(A02)
text_button_1 = 'Yes'(A03)
ICON_BUTTON_1 = 'ICON_OKAY'
text_button_2 = 'Cancel'(A04)
ICON_BUTTON_2 = 'ICON_CANCEL'
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL = ''
userdefined_f1_help = 'TEST_TEXT_ZUR_SPO1'
START_COLUMN = 25
START_ROW = 6
importing
answer = answer
exception
TEXT_NOT_FOUND = 1
others = 2. </b></i>
‎2006 May 08 11:24 AM
I don't now how is it in VB,
but going by your description,
you can use POPUP_TO_CONFIRM FM.
Here is the usage:
<i><b> The following call example uses the full functionality of
POPUP_TO_CONFIRM :
call function 'POPUP_TO_CONFIRM'
exporting
titel = 'Title for POPUP_TO_CONFIRM'(A01)
diagnose_object = 'TEXT1_ZUM_POPUP_TO_CONFIRM'
text_question = 'Do you want to carry out this
fantastic test?'(A02)
text_button_1 = 'Yes'(A03)
ICON_BUTTON_1 = 'ICON_OKAY'
text_button_2 = 'Cancel'(A04)
ICON_BUTTON_2 = 'ICON_CANCEL'
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL = ''
userdefined_f1_help = 'TEST_TEXT_ZUR_SPO1'
START_COLUMN = 25
START_ROW = 6
importing
answer = answer
exception
TEXT_NOT_FOUND = 1
others = 2. </b></i>
‎2006 May 08 11:25 AM
‎2006 May 08 11:26 AM
Hi,
U can use FunctionModule <b> POPUP_TO_CONFIRM</b>.
In this u will get a popup and u will have a yes or no options in it.
According to it u can code ur own logic if the user presses YES or NO.
Regards,
Simha.
Message was edited by: Narasimha Rao Bandla
‎2006 May 08 11:28 AM
Hi,
Use the MESSAGE statement with I message type and that will display a dialog box.
Else, you will have to use the functions
POPUP_WITH_WARNING
POPUP_WITH_WARNING_ALV
POPUP_TO_CONFIRM_WITH_MESSAGE
POPUP_TO_CONFIRM_WITH_VALUE
POPUP_TO_CONFIRM_WITH_VALUE_2
POPUP_TO_DECIDE_WITH_MESSAGE
POPUP_DISPLAY_TEXT_WITH_PARAMS
POPUP_WITH_TABLE
Use according to your requirement, in fact there are more popu up functions.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 May 08 11:28 AM
use <b>POPUP_TO_CONFIRM_STEP</b>.
Cheers,
Abdul
Mark all useful answers......