2009 May 05 1:26 PM
Hello,
I need a solution on pop-up box should appear in standard tcode PTMW with option of YES and NO button with control.
I have Badi in that regard for TMW which is PT_BLP_USER.
But I need FM or whatever object,method of class then to call pop-up box.
2009 May 05 1:29 PM
Hello,
I need a solution on pop-up box should appear in standard tcode PTMW with option of YES and NO button with control.
I have Badi in that regard for TMW which is PT_BLP_USER.
But I need FM or whatever object,method of class then to call pop-up box.
2009 May 05 1:28 PM
2009 May 05 1:29 PM
2009 May 05 1:29 PM
Hi,
Please use FM "POPUP_TO_DECIDE"
or "POPUP_TO_CONFIRM".
This may solve your problem.
Thanks & Regards,
Sudheer
Edited by: sudheer kumar on May 5, 2009 2:29 PM
2009 May 05 1:29 PM
Hi,
POPUP_TO_CONFIRM - Pop-up dialog confirm an action before it is carried out.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Interface Screen' "Screen title...
text_question = w_title
text_button_1 = 'Yes'
icon_button_1 = 'ICON_OKAY' "icon for Ok
text_button_2 = 'No'
icon_button_2 = 'ICON_BREAKPOINT' "icon for cancel
IMPORTING
answer = w_answer.
IF sy-subrc <> 0.
ENDIF.
if answer is 1 then he selected Ok
if answer is 2 or 3 he pressed cancel or No button.
regards,
Prabhudas
2009 May 05 1:29 PM
Hi Vishal ,
Try the Function Module -- POPUP_TO_CONFIRM_STEP.
Check the bellow code -
DATA : w_return TYPE c.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
textline1 = 'Do you want to continue ?'
titel = 'Confirmation'
cancel_display = 'X'
IMPORTING
answer = w_return.
WRITE : w_return.Note : In the W_RETURN variable will hold the return value like -
when the YES will be selected the value will be J and
when the NO will be selected the value will be N .
Regards
Pinaki
2009 May 05 1:53 PM
Hi Vishal,
Try this:
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Test Pop Up'
DIAGNOSE_OBJECT = ' '
text_question = 'Do you really want to close the debugger?'
TEXT_BUTTON_1 = 'Yes'
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'No'
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.
Regards,
Soumya.
2009 May 05 1:54 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |