Application Development 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: 

pop up msg

kesavadas_thekkillath
Active Contributor
0 Kudos
115

i have a popup message with yes no button...

when i click yes the bdc upload happens....so is there any method to show the upload progress in the popup message window itself....

or how to make the popup window disappear when yes is clicked.....

3 REPLIES 3

Former Member
0 Kudos
54

The YES/NO popup message can be displayed using the FM

POPUP_TO_CONFIRM

.

Check this code.


    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
*       TITLEBAR                    = ' '
*       DIAGNOSE_OBJECT             = ' '
        text_question               = 'Delete Permanently?'
*       TEXT_BUTTON_1               = 'Ja'(001)
*       ICON_BUTTON_1               = ' '
*       TEXT_BUTTON_2               = 'Nein'(002)
*       ICON_BUTTON_2               = ' '
*       DEFAULT_BUTTON              = '1'
       display_cancel_button       = ' '
*       USERDEFINED_F1_HELP         = ' '
*       START_COLUMN                = 25
*       START_ROW                   = 6
*       POPUP_TYPE                  =
     IMPORTING
       answer                      = v_answer
*     TABLES
*       PARAMETER                   =
*     EXCEPTIONS
*       TEXT_NOT_FOUND              = 1
*       OTHERS                      = 2
              .

Here you can know if the user has pressed YES or NO by checking the variable

v_answer

.

1 - Yes

0 - No

If there is a Cancel button, the value of the v_answer will be 'a'.

Once the user clicks on any of the button the popup window is closed automatically.

Plz reward if helpful.

Regards,

Bijesh

.

raymond_giuseppi
Active Contributor
0 Kudos
54

The popup will disappear as soon as another dynpro is displayed, and as the process begin, this is not the solution.

Try to use Function Module SAPGUI_PROGRESS_INDICATOR to display the clock indicating the % of the loading and a status text.

Look for a sample at <a href="http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm">Download a report to excel with format (border, color cell, etc)</a>

Regards

Former Member
0 Kudos
54

Hi,

use FM POPUP_TO_CONFIRM

Regards