2008 Feb 20 10:44 AM
Dear All,
Please tell me the funciton module to show popup message with OK button.
Right now i am using POP to Confirm function funciton module, but i am not able to hide NO button.
Please help.
REgards
Saurabh
Dear All,
Please tell me the funciton module to show popup message with OK button.
Right now i am using POP to Confirm function funciton module, but i am not able to hide NO button.
Please help.
REgards
Saurabh
2008 Feb 20 10:48 AM
Hi,
Chk below FM's
use this FM : POPUP_TO_DISPLAY_VALUE
CHeck these values.
CALL FUNCTION 'POPUP_TO_DISPLAY_VALUE'
EXPORTING
colbeg = 1
colend = 20
itemtxt = 'Item'
textline1 = 'Line1'
textline2 = 'Line2'
textline3 = 'Line3'
textline4 = 'Line4'
title = 'Popup Title'.
You can use 'POPUP_TO_CONFIRM'.
See the below example:
data: asdf(60) type c.
message i000 with 'aer' 'Eswar' into asdf.
*
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
text_question = asdf
TEXT_BUTTON_1 = 'Ja'(001)
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'Nein'(002)
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
use this fn module
POPUP_GET_VALUES
in tables u ll hav a parameter svals see its documentation
'POPUP_WITH_2_BUTTONS_TO_CHOOSE'
'POPUP_TO_CONFIRM_STEP'
Regards,
Chandru
2008 Feb 20 10:49 AM
Hi
Try using this FM 'POPUP_WITH_2_BUTTONS_TO_CHOOSE'.
Thanks
Vasudha
2008 Feb 20 10:50 AM
Hi
Use the FM POPUP_FOR_INTERACTION
Thanks
Vijay
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 29, 2008 6:01 PM
2008 Feb 20 10:51 AM
Hi,
Use the function module popup to confirm and comment out the EXPORTING parameter as marked.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
TEXT_QUESTION =
TEXT_BUTTON_1 = 'Ja'(001)
ICON_BUTTON_1 = ' '
->*TEXT_BUTTON_2 = 'Nein'(002) "will hide the no button
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IV_QUICKINFO_BUTTON_1 = ' '
IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 29, 2008 6:01 PM
2008 Feb 20 10:53 AM
Hi,
what u can do is copy the FM POPUP_TO_CONFIRM to Z and then hide the NO button and use it.
Reward if helpful.
2008 Feb 20 10:53 AM
hi,
you don't need FM, just use the DISPLAY LIKE addition, this will show the message in popup with only OK possibility:
MESSAGE i398(00) DISPLAY LIKE 'E' WITH '&' '&' '&' '&' .
hope this helps
ec
2008 Feb 20 10:54 AM
Hi,
To pop-out a box for the user to confirm
REPORT ZPOPUPCONFIRM.
DATA: X_ANS(1) TYPE C.
call function 'POPUP_TO_CONFIRM_STEP'
exporting
DEFAULTOPTION = 'Y'
textline1 = 'Do you want to continue'
TEXTLINE2 = ' '
titel = 'Please Confirm'
START_COLUMN = 25
START_ROW = 6
CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = X_ANS.
WRITE: / X_ANS.
For more information check the following link:
http://www.sap-img.com/fu013.htm
Regards,
Bhaskar
2008 Feb 29 10:57 AM
eric's answer was very helpful for my requirement...thanks a lot eric...
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |