Professional Documents
Culture Documents
ABAP - EVENTS IN TABLE MAINTENANCE SCN Wiki
ABAP - EVENTS IN TABLE MAINTENANCE SCN Wiki
Applies to:
SAP ECC 6.0.
Summary
This document provides a detailed description on how to implement the table maintenance events which is very helpful while creating new
entries in a table. Many validations and checks can be performed while creating or saving entries in a table.
Table of Contents
Link to Content's target Space :
Applies to:
Summary
Author(s): Sumit Joshi
Validation on table maintenance
Event Handling
Create a table ZTAB with the following fields:
Create a table maintenance generator for the table:
Create Events for table Maintenance:
Create Transaction Code:
Execute the transaction code:
Related Content
Event Handling
When we provide event handling on table maintenance, table fields will be updated automatically when a new record inserted into the table or
an existed record changes through the table maintenance generator.
To achieve the event handling in table maintenance, we need to create a table maintenance generator and then create events. Process is as
follows:
1 de 6 04/11/2015 11:22
EVENTS IN TABLE MAINTENANCE - ABAP 开发 (ABAP Develop... http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE...
Click on Create.
2 de 6 04/11/2015 11:22
EVENTS IN TABLE MAINTENANCE - ABAP 开发 (ABAP Develop... http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE...
Choose maintenance event 05-Creating New Entry and provide a name of the event (This will become perform/subroutine).
A popup will be appear, It will ask to create an include program, in which we'll write the event handling code.
Click on continue.
FORM new_entry.
DATA: v_nchar TYPE i.
3 de 6 04/11/2015 11:22
EVENTS IN TABLE MAINTENANCE - ABAP 开发 (ABAP Develop... http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE...
Transaction: SM30
Skip first Screen: Check ON
Default Values:
View Name ZTAB
Update X
4 de 6 04/11/2015 11:22
EVENTS IN TABLE MAINTENANCE - ABAP 开发 (ABAP Develop... http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE...
Now provide a valid value in country field and remain blank another fields.
Click Enter (NEW_ENTRY event will trigger) and current User, date and time will be automatically filled in respective fields.
5 de 6 04/11/2015 11:22
EVENTS IN TABLE MAINTENANCE - ABAP 开发 (ABAP Develop... http://wiki.scn.sap.com/wiki/display/ABAPch/EVENTS+IN+TABLE...
Related Content
Please include at least three references to SDN documents or web pages.
Reference 1
Reference 2
Reference 3
3 Comments
Saifur Rahaman
Very Useful content
carmen guerrero
Hello.
http://forums.sdn.sap.com/thread.jspa?messageID=9968428�
Regards
Carmen
Guest
Hi Sumit,
I also tried the same and it is working fine. I have an issue with the same. When you regenerate the view, the subroutine is getting deleted and the program dumps. Any idea how to keep the
validation on the field even after regeneration?
Regards,
Vignesh.S
6 de 6 04/11/2015 11:22