Skip to Content
author's profile photo Former Member
Former Member

issues in pop-up confirm message

Hi All,

I have a following requirement.

In pop-up confirm message,I want only two buttons-Yes and Cancel.

If I click on yes,the changes made in output grid should get updated in corressponding database table.No action should take place if I click on cancel.

I have used the following function but it gives output as 3 buttons-yes,no and cancel.

CALL FUNCTION 'POPUP_TO_CONFIRM'

Please respond to the query.

Thanks and Regards,

Aman

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 08:44 AM

    Hi,

    Just use DISPLAY_CACEL_BUTTON = ' ' as additional parameter.

    Regards

    Raju Chitale

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 08:44 AM
    CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            titlebar              = 'Confirmation Message'
            text_question         = mess1
            text_button_1         = 'Yes'
            icon_button_1         = 'ICON_OKAY'
            text_button_2         = 'No'
            icon_button_2         = 'ICON_CANCEL'
            default_button        = '1'
            display_cancel_button = ' '
          IMPORTING
            answer                = result
          EXCEPTIONS
            text_not_found        = 1
            OTHERS                = 2.

    In mess1 variable u give ur message

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I am facing another issue in this.

      When I click on yes,I want the changes to be updated in databse.I am able to do this.

      But when I click on cancel,no action should take place.

      For this I have used-:

      CALL FUNCTION 'POPUP_TO_CONFIRM'

      EXPORTING

      titlebar = 'Confirmation Message'

      text_question = 'All Modifications will be saved.Do you wish to save?'

      text_button_1 = 'Yes'

      icon_button_1 = 'ICON_OKAY'

      text_button_2 = 'Cancel'

      icon_button_2 = 'ICON_CANCEL'

      default_button = '1'

      display_cancel_button = ' '

      IMPORTING

      answer = d_response

      EXCEPTIONS

      text_not_found = 1

      OTHERS = 2.

      if d_response = 2.

      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'

      EXPORTING

      i_callback_program = gd_repid

      i_callback_user_command = 'USER_COMMAND'

      is_layout_lvc = gd_layout

      it_fieldcat_lvc = it_fieldcat

      i_save = 'X'

      TABLES

      t_outtab = it_zlogility1

      EXCEPTIONS

      program_error = 1

      OTHERS = 2.

      endif.

      This is working.But I dont want to do this without calling this reuse function in this.

      Please help me.

      Thanks and Regards,

      Aman

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 08:46 AM

    space should be passed to parameter

    DISPLAY_CANCEL_BUTTON in

    CALL FUNCTION 'POPUP_TO_CONFIRM'

    and pass 'CANCEL' to the parameter TEXT_BUTTON_2

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.