2007 Jul 26 9:25 AM
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.....
2007 Jul 26 9:43 AM
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
.
2007 Jul 26 9:46 AM
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
2007 Jul 26 9:46 AM