When i create a Table Maintenance Generator ,which is the event that will Trigger ?
Answer / ravi
While creating the tables, sometimes we may need to update
the table fields in the background.
Lets take an example, if create a table with 10 fields in
those 10 fields there are 2 fields which are User name and
the Date, these 2 fields should update automatically when a
record Inserted/Updated in the table.
For this, we need to create a table maintenance generator
for that table. There in the table maintenance generator we
have an option to create EVENTS.
In the table maintenance generator,
Environment --> Modifications --> Events
then a screen will be appear here,we need to create the
Events, for updating the
fields create 05(Creating a new entry) and 21(Fill hidden
fields) .
In the EVENTS screen, press new Entries, there give 05 and
give a name(This will
become a PERFORM), then click the Editor pushbutton, this
will be there at the right side of the entry, then a popup
will be appear, you can create an include program,there
inside of the include program write the below code
form CREATE_ENTRY.
TABLE-USERNAME = sy-uname.
TABLE-CHANGED_ON = sy-datum.
endform.
Then in the events screen enter 21 and give the form name
as HIDDEN_FIELDS, then
press the editor button, then in the editor
form HIDDEN_FIELDS.
TABLE-USERNAME = sy-uname.
TABLE-CHANGED_ON = sy-datum.
update TABLE.
endform.
This CREATE_ENTRY Perform will be triggered for every new
entry and the
HIDDEN_FIELDS fields will be triggered for every changed
value in the table, so the
Fields USERNAME and the CHANGED_ON fields will be updated
automatically when a
new record inserted into the table or an existed record
changes through the table maintenance generator.
If you want any more functions, and then look at the
events, you can press the F4 and look at the description of
the event, then you come to know how to use and where to
use.
Regards
Ravi Palanivel
Is This Answer Correct ? | 13 Yes | 0 No |
WHAT IS DIFFERENCE BETWEEN BATCH INPUT MEHTOD AND DIRECT INPUT
In a transaction there are 5 screens (say) but while recording you could see only 3 screens.what will u do to avoid such situation?will u save it like that?
In sapscript when u set debugger mode on from which window it will start debugging .My sapscript has header window,logo window,address window,main and footer window.so from which window it will start debugging??
What is going life actually? What is the role of a functional consultant in it? : sap abap hr
why sapscripts are client dependent and smartforms are cliet independent,plz give me a brief explanation,thank u.
how to Implemented a BAPI to upload Payroll summary information into SAP R/3 system
What is filter dependent BADI?
0 Answers Cap Gemini, Infosys,
What is the difference between commit-work and rollback-work tasks?
Define the various contents of technical specifications ?
How is time management and payroll is integrated? : sap abap hr
What are the different types of operators in the sap abap?
difference between at selection-screen and at selection-screen output?