Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

msgbox

Former Member
0 Likes
779

hi, how can i code a messagebox in ABAP similar to "msgbox" of VB6 with yes/no buttons? is it possible?

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
716

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>

5 REPLIES 5
Read only

Former Member
0 Likes
717

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>

Read only

athavanraja
Active Contributor
0 Likes
716

use this FM

POPUP_TO_DECIDE_INFO

Regards

Raja

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
716

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

Read only

Former Member
0 Likes
716

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

Read only

abdul_hakim
Active Contributor
0 Likes
716

use <b>POPUP_TO_CONFIRM_STEP</b>.

Cheers,

Abdul

Mark all useful answers......