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

custom dialog box

Former Member
0 Likes
1,152

hi,

Is there a way to display a popup with 3 or 4 push buttons with custom text on it? The FM popup_to_confirm allows for 2 push buttons with custom text.

your help would be appreciated.

thanks,

ravi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
763

Hi Ravi

Svetlin is right. pop_up_with_3_bottons_to_choose is the function module for you. I have used it in one of my work. Here is the sample code for it:

CALL FUNCTION 'POPUP_WITH_3_BUTTONS_TO_CHOOSE'

EXPORTING

DIAGNOSETEXT1 = 'CHOOSE'

DIAGNOSETEXT2 = 'OR'

TEXTLINE1 = 'PRESS CANCEL'

TEXT_OPTION1 = '1: STUDENT TABLE'

TEXT_OPTION2 = '2: COURSE TABLE'

TEXT_OPTION3 = '3: TEACHER TABLE'

TITEL = 'to maintain the database'

IMPORTING

ANSWER = ans.

if sy-subrc <> 0.

MESSAGE E012.

endif.

if ans = '1'.

CALL TRANSACTION 'ZAJ_STU1'. "to maintain

else.

if ans = '2'.

CALL TRANSACTION 'ZAJ_STU2'.

else.

if ans = '3'.

CALL TRANSACTION 'ZAJ_STU3'.

endif.

endif.

endif.

Regards

Ashish Jain

hi,

Is there a way to display a popup with 3 or 4 push buttons with custom text on it? The FM popup_to_confirm allows for 2 push buttons with custom text.

your help would be appreciated.

thanks,

ravi.

3 REPLIES 3
Read only

Former Member
0 Likes
763

Hi,

I found this FM 'POPUP_WITH_3_BUTTONS_TO_CHOOSE'. Test it.

Svetlin

P.S. If you find an answer useful, please assign reward points.

Read only

Former Member
0 Likes
764

Hi Ravi

Svetlin is right. pop_up_with_3_bottons_to_choose is the function module for you. I have used it in one of my work. Here is the sample code for it:

CALL FUNCTION 'POPUP_WITH_3_BUTTONS_TO_CHOOSE'

EXPORTING

DIAGNOSETEXT1 = 'CHOOSE'

DIAGNOSETEXT2 = 'OR'

TEXTLINE1 = 'PRESS CANCEL'

TEXT_OPTION1 = '1: STUDENT TABLE'

TEXT_OPTION2 = '2: COURSE TABLE'

TEXT_OPTION3 = '3: TEACHER TABLE'

TITEL = 'to maintain the database'

IMPORTING

ANSWER = ans.

if sy-subrc <> 0.

MESSAGE E012.

endif.

if ans = '1'.

CALL TRANSACTION 'ZAJ_STU1'. "to maintain

else.

if ans = '2'.

CALL TRANSACTION 'ZAJ_STU2'.

else.

if ans = '3'.

CALL TRANSACTION 'ZAJ_STU3'.

endif.

endif.

endif.

Regards

Ashish Jain

Read only

Former Member
0 Likes
763

If the 3 button can satify you, that will be ok.

But if not, there is a way definitely left for you, create a custom screen as 'modal dialgue box'. then you can add the button as much as you like.

Hope it will be helpful

thanks