SAP ABAP Forum
What is use of TMG(Table Maintenance Generator) events ?
When we can write the same code either in PBO(Process Before Output) and PAI(Process After Input)?
TMG events are executed at run time and performance is high using TMG events.For example our table contains purchase document details.Clients wants to know the timestamp details of purchase document.In that case we can insert records in purchase document table contain fields ERDAT, ERZET and ERNAM. In events write SY-DATUM value is assigned to ERDAT ,SY-TIMLO value is assigned to ERZET and SY-UNAME value is assigned to ERNAM. In that case we can use events.In events we can write dynamic programming.
Different ways of doing things .... Events are predefined for few actions ..... For all other needs we can use PBO(Process Before Output) & PAI(Process After Input) .
Sign up for STechies