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

FM With close button

Former Member
0 Likes
1,015

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,

9 REPLIES 9
Read only

Former Member
0 Likes
923

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

Read only

0 Likes
923

Hi Aparna,

I am getting popup with push button 'CONTINUE' but i want the popup with CLOSE button. How to get ?

Thanks in advance

Read only

0 Likes
923

Hi Aparna,

I am getting popup with push button 'CONTINUE' but i want the popup with CLOSE button. How to get ?

Thanks in advance

Read only

Former Member
0 Likes
923

You can use

POPUP_TO_INFORM

write a exit statement after calling FM.

Read only

Former Member
0 Likes
923

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

Read only

Former Member
0 Likes
923

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

Read only

Former Member
0 Likes
923

hi,

check this thread

hope it helps you.

thanks

Sachin

Read only

Former Member
0 Likes
923

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

Read only

Former Member
0 Likes
923

You can use this FM,

POPUP_WITH_WARNING and mention the CLOSE option in the TITLE attribute there.

Regards,

Joan