Events list in ABAP
Hi All,
Any one can send the <b>list of Events in ABAP.</b>
Thanks in Advance.
-Muraly.
hi,
Below is the list of events:
Initialization : triggered when the report is loaded in memory.
At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
At selection-screen / <field> : before leaving the selection screen.
start-of-selection : the first event for displaying the report.
end-of-selection : after the start-of-selection is completed.
classiscal report events.
top-of-page : every time a new page is started in the list.
end-of-page : every time the list data reaches the footer region of the page.
interactive report events.
top of page during line selection : top of page event for secondary list.
at line-selection : evey time user dbl-clicks(F2) on the list data.
at pF<key> : function key from F5 to F12 to perform interactive action on the list.
For Module Pool Program
PAI
PBO
POH
POV
Thanks,
Mahesh
Similar Messages
-
Hi all,
Can anybody please say me what is the exact use of EVENTS in OOPs ABAP. Can anybody please explain me with an example.
Thanks in advance.hi,
By triggering an event, an object or a class announces a change of state, or that a certain state has been
achieved.
Events link objects or classes more loosely than direct method calls do. Method calls establish precisely
when and in which statement sequence the method is called.
However, with events, the reaction of the
object to the event is determined by the triggering of the event itself.
Events are most often used in GUI implementations.
Other external object models, such as COM, ActiveX Controls etc, also provide events.
At the moment of implementation, a class defines its
instance events (using the statement EVENTS) and
static events (using the statement CLASS-EVENTS)
Classes or their instances that receive a message when an event is triggered at runtime and want to react
to this event define event handler methods.
Statement : (CLASS-)METHODS <handler_method> FOR EVENT <event> OF <classname>.
These classes or their instances register themselves at runtime to one or more events.
Statement : SET HANDLER <handler_method> FOR <reference>. (for instance events)
SET HANDLER <handler_method>. (for static events).
A class or an instance can trigger an event at runtime using the statement RAISE EVENT.
Both instance and static events can be triggered in instance methods.
Only static events can be triggered in static methods.
Events can only have EXPORTING parameters which must be passed by value.
Triggering an event using the statement RAISE EVENT has the following effect:
the program flow is interrupted at that point
the event handler methods registered to this event are called and processed once all event handler methods have been executed, the program flow starts again.
If an event handler method in turn triggers an event, then the program flow is again interrupted and all event handler methods are executed (nesting).
Events are registered using the command SET HANDLER. Registration is only active at program runtime.
Events cannot be persistent.
You want to register an object to an event belonging to another object. The SET HANDLER... statement
enters the registration in that objects list. All handlers for one event are entered in this list.
When the event is triggered, the list shows which event handler methods need to be called.
Event handler methods are triggered by events (RAISE EVENT), although they can also be called like
normal methods (CALL METHOD).
The interface of the event handler method consists solely of IMPORTING parameters. Only parameters
from the definition of the corresponding event (event interface) can be used.
An event interface only has EXPORTING parameters and is defined using the EVENTS statement in the declaration of the event. The
parameters are typed in the event definition and the typing is passed to the event handler method, that is,
the interface parameters of the event handler method cannot be typed in the definition of the event handler
method.
In addition to the explicitly defined event interface parameters, the implicit parameter SENDER can also be
listed as an IMPORTING parameter for instance events. This passes on a reference to the object that
triggered the event.
Events are also subject to the visibility concept and can therefore be either public, protected or private.
Visibility establishes authorization for event handling :
all users only users within that class or its subclasses
only users in that class.
Event handler methods also have visibility characteristics. Event handler methods, however, can only have
the same visibility or more restricted visibility than the events they refer to.
The visibility of event handler methods establishes authorization for SET-HANDLER statements: SET
HANDLER statements can be made anywhere in that class and its subclasses only in that class
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:45 PM -
Hi all,
Can anyone provide me all event's name with its description in ABAP ( ALV,Classical And Selection-screen's event) ?
Thanks in advance......Hi,
Events: Initialization
at selection-screen
at selection-screen on value request.
start-of-selection
top-of-page
end-of-page
at user-command
at line-selection
Order:
1. Initialization
2. at selection-screen
3. at selection-screen on value request
4. start of selection.
when WRITE statement is triggered
top-of page.
end-of-page.
end-of selection.
at user-command.
at line-selection
Go through the following
This is the order of execution in Classical/Interactive Report Events
Classical Reports
Reports which are properly formatted (header, footer, page numbers etc.,) with the help of one or more external events like top-of-page,end-of-page etc., are called as CLASSICAL REPORTS.
Standard list.
Output of Report program is nothing but Standard list. It consists of one continuous page of 60,000 lines.
To restrict number of lines per page.
Report Zxxxxx line-count 25.
OR
Report Zxxxxx line-count 25(3).
( In this case 3 lines are reserved for footer)
To restrict Output width.
Report Zxxxx line-size 125.
To suppress standard page heading.
Report Zxxxx no standard page heading
Above all at a time:
Report Zxxxx line-count 25(3)
line-size 125
no standard page heading.
Screen Events List Events
Initialization. Start-of-selection
At selection-screen. Top-of-page.
At selection-screen on <field>. End-of-page.
End-of-selection.
We can initialize the selection-screen with calculated default values under this event.
Initialization.
s_date-high = sy-datum.
s_date-low = sy-datum - 15.
Append s_date.
We can validate all the inputs on selection screen fields under this event.
At selection-screen.
If s_carrid-low is initial or
s_connid-low is initial or
s_date is initial.
< ... code for validation... >.
Endif.
We can validate a particular field input on selection screen under this event.
At selection-screen on s_carrid.
If s_carrid-low < > LH.
< code for validation >
Endif.
If any of the other event comes before
Select Endselect. statements, then to break
that event, we require this S-O-S event.
Start-of-selection.
Select * from
Endselect.
If we need some portion of the output (like
column headings) to appear in all the pages,
then we use this event.
Top-of-page.
Write:/ Carrier,10 Connection 20 Date.
If there is no external output statement before
Top-of-page event, then this event will not
work.
Once the cursor reaches the last line of the
page, automatically this event will be triggered.
Report Zxxx line-count 25(3).
In this case line numbers 23, 24 and 25 are
reserved for footer.
Once the cursor reaches 23rd line, this event
will be triggered.
End-of-page.
Write:/ sy-uline(75).
Write:/ This is end of page:,sy-pagno.
Write:/ sy-uline(75).
This event is used for concluding part of List.
End-of-selection.
Write:/ This is end of the Report.
Interactive Report
A simple report or even a classical report displays a clustered list with all the requested output at one go.
What ever it is displayed, it is final. That means, the user can not interact with with that list.
A simple report or even a classical report displays a clustered list with all the requested output at one go.
What ever it is displayed, it is final. That means, the user can not interact with with that list.
In the interactive reports, we can create as many as 21 lists.
The first list is called Basic list and all the successive lists are called Secondary lists. Each list is again an interactive.
The Basic list is not deleted when secondary list is created.
A secondary list may either overlay the basic list or appear in an additional dialog window on the same screen.
The system variable associated with list number is SY-LSIND.
For basic list SY-LSIND = 0 and for secondary lists, SY-LSIND varies from 1 to 20.
User can interact with the list by the following ways.
Double clicking or single click and pressing F2 (function key) or single click with hotspot on.
OR
Selecting from menu bar or from application tool bar.
All the events used in classical reports can be used in Basic List.
The event End-of-page can be used in Secondary Lists also.(the other six events can not be used in secondary lists)
You can not place select-options in secondary lists.
The following additional events are
applicable to secondary lists.
Top-of-page during line-selection.
At line-selection.
At user-command.
When you double click on any field in the basic list, you will be navigating to secondary list with detailed information pertaining to clicked field.
As such we need to store the clicked field information at some variable.
Hide temporarily stores the content of clicked field for later use.
The default title of the out put is the text what we enter during creation of program.
This title can be changed using:
SET TITLEBAR AAA.
GUI status includes:
Menu bar
Application tool bar and
Activating standard tool bar
GUI status can be created using
SET PF-STATUS BBB.
You can have 8 menus ( out of which, 2 menus are reserved for System and Help).
Each menu can have 15 menu items.
Each menu item can have 3 levels of submenus.
You can create 35 items in application tool bar.
<i>ALV EVENTS</i>
check these important events ...
1.SLIS_PRINT_ALV.
2. SLIS_T_LISTHEADER.
3. SLIS_T_EVENT.
4. SLIS_T_SORTINFO_ALV.
5. SLIS_T_LAYOUT_ALV.
6. SLIS_T_FIELDCAT_ALV.
for more details ..check this link..
http://www.sap-basis-abap.com/abap/events-in-alv-and-their-fm.htm
<b>Reward points</b>
Regards -
Event List view in iCal?
I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.ecernek,
There is no event list option on iCal like the one on the iPhone.
That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification. -
Event listing shortened in iCal
When I enter some events in iCal they do not appear in their entirety in the calendar. Some events use two or three lines, some cut off in only one line. The only solution I have found is to keep changing the 'name' of the event until I hit on one that does not cut off. Surely there is another solution! Any ideas?
ecernek,
There is no event list option on iCal like the one on the iPhone.
That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification. -
Old How to find total number of events in an event list?
Hi,
I am developing a j2me application. i Want to find the total number of events in an event list.(ie, If it contains 15 events then it should return length as 15).
Not the length of EVENT LISTS i want to find the Length of EVENTS.
Thanks,
kumarHi,
you can find the number of columns and their order using
the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = sy-repid
changing
ct_fieldcat = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
now describe your fieldcat . and find no of columns.
and their order also..
regards
vijay -
Training and event management: Book Attendee List for Business Event List
Dear all,
I know this:
PV07: book attendee list for business event
PV08: book attendee for business event list
Is there a tcode to book an attendee list for a business event list
Thanks a lot in advance!Hi Federico,
I think.., no. Below are the tcodes available to book attendee,
PV00 Book attendee for business event
PV01 Rebook attendee for business event
PV02 Prebook
PV03 Replace
PV04 Cancel
PV07 Book attendee for list for Business event
PV08 Book attendee for business event list.
Let me know if you found tcode for your requirement.
Thanks,
Karunakar -
Issue regarding [Work Flow] Business Object Event Raise in ABAP Program
Hi All,
I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
Actual TDS is as below:
If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
(BUS2065 Object key) in event container. Also include table of text version of error
messages for this set of Transfer
Request.
Can anybody tell me how can i write it technically in ABAP Code.
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi,
Can anybody solve above posted issue!
Thanks,
Deep. -
Hyperlink on field in Basic list of ABAP Query
Dear All,
Could somebody tell me, if its possible to have a hyperlink on a field in the Basic list of ABAP Query (SQ01,SQ02).
Example :- There is a basic list which has the field MARA-MATNR displayed.There should be a hyperlink on this field, such that when the user clicks on it , the transaction MM03 is called.
Thanking You.
RanuHi,
Loop at itab.
write:/ itab-matnr hotspot,
itab-maktx.
hide: itab-matnr.
endloop.
data: c_field(16).
at line-selection.
get cursor field c_field.
if c_field = 'ITAB-MATNR'.
check not itab-matnr is initial.
set parameter id 'MAT' field itab-matnr.
call transaction 'MM03' and skip first screen.
endif.
This is one example to call the transaction.
If this helps you award points.
Thanks,
Deepak. -
How to list the abap programs order by updated date in ECD
Hi experts,
how to list the abap programs order by updated date in ECD?
thanks.I wrote a custom program for displaying Z* development work into an ALV report. 2500 character limit prevents me from posting, message me your email and I'll send you source code.
Edited by: Brad Gorlicki on Feb 18, 2010 11:25 PM -
Event triggering by abap class & ISR
hi gurus
1 ) can i able to see the event triggering by abap class in SWEL ? ,
2) in custom ISR scenario , new form scenario has been created by our functional consultant , and asking me to trigger a workflow for approval , when employee fills that particular ISR FORM , workflow should start and to go his HR administrator , when HR administrator double click on workitem he should get the ISR form in display mode & also with some descpition text is to be added in the screen (like user decision description ) with approval button ..... my question is how to trigger a event from in form scenario ? , how to bring the FORM screen to display mode to the HR administrator ?
regards
suryaHi Surya
The BO for ISR forms is BUS7051 - Notification. Turn on the trace via SWELS and create a PCR/ISR form and you should see the events being triggered in SWEL.
Good Luck
Ravi -
Sequence of events execution in ABAP reports
can anyone explain me the Sequence of events execution in ABAP reports
Ámit Güjärgoüd wrote:
> search-before-post Event Must before any posting.Else <delete-after-input event triggered by moderator> would be trigger and thread may be going to Dump as well without ST22 information(What haapend,How to correct error) available
>
> Edited by: Ámit Güjärgoüd on Oct 7, 2008 7:42 AM
this looks perfect ABAP event sequence example. -
Interactive list musing abap query and how to create infoset records
hi,
Can any one suggest how to create interactive list using ABAP Query .And also infosets and ranked list ..thanks in advance
Regards,
Raghu.Hi,
Check this
Re: How to make output of ABAp query interactive(drill down)..?
some info on the ABAP query
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
hope it helps.
Regards! -
Portal Eventing in Webdynpro ABAP
Hello,
I am trying to implement Eventing in Webdynpro ABAP using 2 components ,Com1 serving as the source component and Com2 serving as Target. In Com1 I created a Inputfield and a button ,and then tied an action to the button and called the FIRE method of the IF_WD_PORTAL_INTEGRATION and sent the value in the Inputfield as the eventing parameter.
In Com2, i subscribed to the event in the wddoinit() method and then defined an action for the same and got the parameter value sent in the Com1 and set the value in the context attribute in the Com2 which is bound to the inputfield.
But still the value sent in Com1 is not displayed in the Com2 Inputfield.
Any help would be highly appreciated.
Thanks.>
SAPEPDeveloper wrote:
> Hello,
>
> I am trying to implement Eventing in Webdynpro ABAP using 2 components ,Com1 serving as the source component and Com2 serving as Target. In Com1 I created a Inputfield and a button ,and then tied an action to the button and called the FIRE method of the IF_WD_PORTAL_INTEGRATION and sent the value in the Inputfield as the eventing parameter.
>
> In Com2, i subscribed to the event in the wddoinit() method and then defined an action for the same and got the parameter value sent in the Com1 and set the value in the context attribute in the Com2 which is bound to the inputfield.
>
> But still the value sent in Com1 is not displayed in the Com2 Inputfield.
>
> Any help would be highly appreciated.
>
> Thanks.
Hi I assume the following, please correct me if my understanding is not correct.
1.First of all you try this in Portal.
2.The moment you fire the event, the comp-2 view is active and subscribed to the portal event.
If the above are true then tell me if the portal eventing enter into the action ?Have you checked in bebug that your action is triggerred on portal_event ?
If portal event is action handler is called then if you have a importing parameter portal_event_parameter then your input value should be there. -
How can make the events listed in my chalenda become automatically a reminder in the reminder?:
Welcome to the Apple community.
Calendar and reminders are two different and separate apps, you cannot transfer information between the two of them.
Maybe you are looking for
-
GRIR clearing accounts - PO & PO line items
Hi gurus, In ECC 6.0 with new GL functionality being active in TCODE FAGLL03 for all GRIR clearing accounts we would like to see purchase order and p.o line item to appear in the report. regards, rupa
-
AIR SDK vs. AIR Runtime (from the download page)
On the AIR 2 Beta download pag, I'm not sure what's the difference between the AIR SDK and the AIR Runtime. http://labs.adobe.com/downloads/air2.html Do I need to download both? I know I need the AIR SDK to add it to my Flex SDK in Eclipse, but what
-
Uploading blog posts when NOT using a MobileMe account
We have a student podcast/blog published to our local webserver using the "Publish to Folder" feature in iLife '08. This works fine for the podcast, but is failing for the blog. Not sure why or how to troubleshoot the problem.
-
How can I add new music to my ipod without losing the music already loaded on another computer
I Can't load new music onto iPod with my new computer without losing all that is already there.
-
Internet sharing not working in lumia 520
Hello, when i turn on settings>Internet sharing this message is displayed "Internet sharing currently not available". help!