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: 

Popup window

Former Member
0 Kudos

Hi All,

I need to display popup message in a transaction for 10 secs and it should disappear automatically without any user interaction. Is there any function module available for this or any other way to do this.

Any help would be appreciated.

Regards,

Sudheer

7 REPLIES 7

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I am thinking that you could use the CL_GUI_TIMER class to do this.

Regards,

Rich Heilman

ferry_lianto
Active Contributor
0 Kudos

Hi Sudheer,

You can use this FM <b>SWE_CD_TST_DELAY</b> to delay some activity but this is not a popup message. Sometimes, popup message can confuse a user and he/she may expects to do some action.

Hope this will help.

Regards,

Ferry Lianto

Message was edited by: Ferry Lianto

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

YOU CREATE your own function module fpr popup messageg. and call the FUNCTION MODULE RZL_SLEEP in the code.

Thanks,

ramakrishna

Former Member
0 Kudos

You can create a custom function module which will display this message using call screen. And add delay using fm 'CIF_GEN_SLEEP'. This can be called in your transaction

Former Member
0 Kudos

Hi Sudheer,

If you haven't solved it, here is the solution.

You have to make use of the class CL_GUI_TIMER. Here is the solution. This program will display a popup message for 10 secs and after that it will come back to main program. You can modify this program to suit your needs.

REPORT ZSHAIL_BASIC .

data: timer type ref to cl_gui_timer,

timeout type i value '10'.

class shail_event definition.

public section.

class-methods: handle_expire for event finished of cl_gui_timer .

endclass.

class shail_event implementation.

method handle_expire .

leave program.

endmethod.

endclass.

data: obj type ref to shail_event.

start-of-selection.

create object obj.

set handler obj->handle_expire for all instances.

create object timer.

timer->interval = timeout.

call method timer->run.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

text_question = 'Do you want to continue'

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Hope your problem will get solved.

Regards,

Sylendra.

vinod_gunaware2
Active Contributor
0 Kudos

U can use

POP_UP_CONFIRM Boite de Confirmation Ok Cancel

RV_DOCUMENT_COPY_NO_POPUP Copie commande sans popup

TMS_ALT_POPUP_MESSAGE Message Alerte paramétré par popup

SWW_WI_POPUP_FOR_COMPLETION Définition de boutons pour fonctions existantes

SWU_POPUP_WITH_3_OPTIONS Définition 3 boutons avec textes + interruption

SWO_POPUP_TO_CONFIRM Popup confirmation oui / non / interrompre

SWD_POPUP_SELECT_WORKFLOW_TASK popup définition d'un workflow Popup

SWD_POPUP_SELECT_ELEMENT popup sélection d'un évènement utilisateur

SWD_POPUP_ASK_FOR_UPDATE popup sauvegarde 3 boutons oui/non/ interrompre

LC_POPUP_TO_CONFIRM_STEP Popup avec titre 1 txt, 2 boutons

LC_POPUP_TO_CONFIRM_STEP_JNA Popup avec titre 1 txt, 3 boutons

POPUP_WITH_TABLE_DISPLAY Popup d'une table Sélectionner 1 ligne.

FI_F4_ZTERM Popup conditions paiement et sélection.

RH_ASK_FOR_SELECTION_DATE Popup sélection date

POPUP_GET_VALUES_DB_CHECKED Saisie champs + contrôler existence ds table.

COPO_POPUP_TO_DISPLAY_TEXTLIST Affichage en pop-up d'une liste

POPUP_TO_CONFIRM_LOSS_OF_DATA Question User désir transformation avec perte data

POPUP_TO_CONFIRM_STEP Question User souhaite exécuter l'étape.

POPUP_TO_CONFIRM_WITH_MESSAGE Informer User: point de décision pendant une action

POPUP_TO_CONFIRM_WITH_VALUE User souhaite faire l'étape avec objet particulier

POPUP_TO_DECIDE Fournir à User plusieurs choix par boutons radio

POPUP_TO_DECIDE_WITH_MESSAGE Créez zone informer User: point décision spécifique

POPUP_WITH_TABLE_DISPLAY Affichage table pour que User choisisse un element

TH_POPUP Affichez message système sur écran spécific User

POPUP_TO_DISPLAY_TEXT Créez zone dialogue et affiche message de 2 lignes

And u have to use

RZL_SLEEP

PAUSE

regards

vinod

Former Member
0 Kudos

Hi Sudheer,

I would need the same, but I think the replies were not what you expected - did you solve this

thanks for the help

regards Elisabeth