‎2009 Jan 07 5:12 AM
Hi All,
I have a requirement with i need to dispaly a POPUP with only one close button. I used popup_to_confirm but in the continue button is there. i want close button. Is there any function module to display the popup.
If you have any idea please let me know.
Thanks,
‎2009 Jan 07 5:16 AM
HI Srikala,
use the FM POPUP_WITH_WARNING
In the TITEL parameter use the 'CLOSE' as per your requirement.
CALL FUNCTION 'POPUP_WITH_WARNING'
EXPORTING
textline1 = msg1
textline2 = msg2
titel = ''CLOSE'
solves your problem.
Thanks!
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:31 PM
‎2009 Jan 07 5:28 AM
Hi Aparna,
I am getting popup with push button 'CONTINUE' but i want the popup with CLOSE button. How to get ?
Thanks in advance
‎2009 Jan 07 5:30 AM
Hi Aparna,
I am getting popup with push button 'CONTINUE' but i want the popup with CLOSE button. How to get ?
Thanks in advance
‎2009 Jan 07 5:18 AM
You can use
POPUP_TO_INFORM
write a exit statement after calling FM.
‎2009 Jan 07 5:18 AM
use POPUP_TO_DECIDE
copy ur popup to confirm into Zfm and modify the button text
Edited by: kartik tarla on Jan 7, 2009 10:50 AM
‎2009 Jan 07 5:18 AM
HI.
Refer this code.
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'
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.
Regards.
Jay
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:32 PM
‎2009 Jan 07 5:22 AM
‎2009 Jan 07 5:28 AM
hi,
*----------------------------------------------------------------------*
* CLOSE_LN BUTTON
*----------------------------------------------------------------------*
when 'CLOSE'.
call function 'POPUP_TO_CONFIRM'
exporting
titlebar = 'Confirmation Message'
text_question = 'Do you Wish to Continue'
text_button_1 = 'Yes'
icon_button_1 = 'ICON_OKAY'
text_button_2 = 'Cancel'
icon_button_2 = 'ICON_CANCEL'
default_button = '1'
display_cancel_button = ' '
start_column = 25
start_row = 6
importing
answer = d_response
exceptions
text_not_found = 1
others = 2.
if sy-subrc eq 1.
endif.
if d_response eq 1.
call function 'MODIFY_PLAF_LOCAL'
exporting
i_plnum = plnum
i_auffx = space
exceptions
no_plnum = 1
ok_plnum = 2
others = 3.
if sy-subrc eq 2.
message i008(zreel) with 'Planned order is closed'.
elseif sy-subrc eq 1.
message i009(zreel) with 'Please select planned Order and press Enter' 'then Press close Ln'.
endif.
endif.
'MODIFY_PLAF_LOCAL' is the FM created by me. dont look in SAP
Edited by: Rajasekhar Reddy P on Jan 7, 2009 10:58 AM
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:33 PM
‎2009 Jan 07 6:07 AM
You can use this FM,
POPUP_WITH_WARNING and mention the CLOSE option in the TITLE attribute there.
Regards,
Joan