2005 Aug 24 3:51 PM
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.
2005 Aug 24 4:06 PM
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.
2005 Aug 24 3:57 PM
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.
2005 Aug 24 4:06 PM
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
2005 Aug 24 4:17 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |