
PERFORM ADDSEQUENCE using 'Event - START-OF-SELECTION'.ĬONCATENATE str1 '- Sequence -' pMessage into pMessage. PERFORM ADDSEQUENCE using 'EVENT - AT SELECTION-SCREEN on list'. * TEXT_QUESTION = 'Are you want to continue?' PERFORM ADDSEQUENCE using 'EVENT - AT SELECTION-SCREEN.'. IF sy-subrc = 0 AND gwa_values-fieldvalue IS NOT INITIAL. READ TABLE gt_values INDEX 1 INTO gwa_values. Selection-Screen Begin of Block b1 With Frame Title TEXT-T01. Selection-Screen Begin of Block b2 With Frame Title TEXT-T02. PARAMETERS: list TYPE c AS LISTBOX VISIBLE LENGTH 20. Developer is building the control run time to get the input from user. Screen Selection is a Run Base dialog in AX. Now its time to get back to office work.Understand the sequence of the event. It’s requires as the time which we displayed to the user has to be refreshed. Is used to trigger the AT SELECTION-SCREEN OUTPUT once again. SET HANDLER myh->run_handler FOR ALL INSTANCES. “This method will be called whenever the time interval which is set by us as 1 “second will be over METHODS : run_handler FOR EVENT finished OF cl_gui_timer. “Class to handle the FINSHED Event Raised by CL_GUI_TIMER Final code for this will look like as below: So only thing we need to work on is capturing this FINISHED event and handling it to refresh the counter. if you have started thinking that option let me tell you my friend, it is not Possible!!!!!!!) Why don’t you try out yourself? “WAIT UP to 10 Seconds” syntax can be used here. (I don’t want you to raise your eyebrows thinking that

The FINISHED Event will be raised after 10 seconds. Here we have set the interval as 10 seconds. The last line will trigger the timer and start counting the time interval. We can use below code to set the interval and start the timer: This event is raised whenever the time interval (which is one of the attribute of this class) is zero. This Class contains an Event called FINISHED. I tried to search a class for it and luckily I got my match!!!!!

So that it will trigger At SELECTION-SCREEN OUTPUT and it will subtract each second passed. So I need to execute Process After input (in case of module pool) or somehow i need to change the Sy-ucomm after 1 second.

I have created a sample report: with few lines of code:Īnd when I hit Enter Button, the Timer kept reducing one second on each hit J.īut come on, it should do it automatically. I didn’t have any idea in my dreams, so my next day to office went into doing R&D on Timer!!!! It should count till 5 minutes and give a popup once 5 minutes are over.

But damn I was not lucky ,again it was SAP-ABAP which took an entry in my dream L.Ī grey haired functional came to me and was explaining that he wanted a Timer on top of a Form. Yesterday I dreamed about a Beautiful Girl.
