0% found this document useful (0 votes)
44 views11 pages

Fields Dataelement

1. The document describes how to create a table maintenance generator (TMG) for an existing database table in SAP. 2. Key steps include creating the TMG, defining events to automatically populate certain fields, and testing the TMG by creating new records. 3. Events can be configured to populate fields like the create date and user before or after saving new records.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views11 pages

Fields Dataelement

1. The document describes how to create a table maintenance generator (TMG) for an existing database table in SAP. 2. Key steps include creating the TMG, defining events to automatically populate certain fields, and testing the TMG by creating new records. 3. Events can be configured to populate fields like the create date and user before or after saving new records.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

CREATING TABLE MAINTENANCE GENERATOR FOR A TABLE FIRST Lets create a database table with fields MANDT LIFNR

LAND1 NAME1 GOTO SE11 databasetable : T!"# clic$ %& CREATE# "i'e sh%rt descri(ti%& : Table f%r TMG# Deli'er) class : A Data br%wser* table 'iew !ai&t : Dis(la)*!ai&te&a&ce all%wed# clic$ %& Fields tab +Ma&dt chec$ the $e) a&d i&itial a&d dataele!e&t "i'e !a&dt lif&r chec$ the $e) a&d i&itial a&d dataele!e&t "i'e lif&r#, fields !a&dt lif&r &a!e1 la&d1 Dataele!e&t !a&dt lif&r &a!e1-"( la&d1-"(

clic$ %& Tech&ical seti&"s It will as$ t% sa'e a&d sa'e it i& a .t!( l%cal (ac$a"e Dataclass : A//LO Si e : 0#

sa'e 1 "%bac$ Clic$ %& E2TRAS33334 E&ha&ce!e&t Cate"%r) clic$ e&ter ch%%se ca& be e&ha&ced # a&d clic$ %& c%()# &%w sa'e1 chec$1 acti'ate#

CREATING TABLE MAINTENANCE GENERATOR FOR A TABLE lets create TABLE MAINTENANCE GENERATOR f%r the ab%'e table 5TMG# Table Mai&te&a&ce Ge&erat%r is 6sed %&l) f%r c6st%!i ed tables &%t f%r sta&dard tables# It is basicall) 6sed t% 6(date %r delete rec%rds %r t% create &ew e&tries f%r the table # %(e& the t!" table +se11, a&d the& ## 7tilities33334 TABLE MAINTENANCE GENERATOR

A6th%ri ati%& Gr%6( : F6&cti%& Gr%6( :

8&c8 + SE9: )%6 ca& create a f6&cti%& "r%6(,

5f6&ct!"#

Mai&te&a&ce t)(e :

ch%%se %&e ste(#

Clic$ %& Find screen numbers ch%%se (r%(%se scree& &6!bers e&ter &%w clic$ %& CREATE b6tt%&# sa'e it i& .t!( /ac$a"e a&d "%bac$ sa'e chec$ a&d acti'ate )%6r table# N%w t% I&sert rec%rds %r delete rec%rds# G%t% Tra&sacti%& c%de : SM90 Table : 5t!"# ch%%se N% restricti%&s# Clic$ %& MAINTAIN# the& clic$ %& NE; ENTRIES# A&d add the rec%rds 1 $rish La&d sa'e#

"% a&d chec$ the rec%rds i& se11#+ 7tilities334Table c%&te&ts3334Dis(la),# )%6 ca& fi&d the!#

ABAP - how to create transaction code for table maintenance generator ? S6&da)1 Dece!ber <=1 <010 > ?:<@ /M A6th%r : A& SA/ C%&s6lta&t A##

T% create tra&sacti%& f%r Table !ai&te&a&ce1 we 6se /ara!eter tra&sacti%&+ Tra&sacti%& with (ara!eters, i& SE?9 tra&sacti%& c%de#

Events in Table Maintenance Scenario: ;e ha'e a f%ll%wi&" c6st%! table which c%&tai&s the fields BDate %& which rec%rd was createdC a&d BNa!e %f the (ers%& wh% created the %bDectC# ;e w%6ld li$e t% ha'e these t% be filled 6( with SE3DAT7M a&d SE37NAME res(ecti'el)#

G% t% Table Mai&te&a&ce Ge&erat%r:

E&ter the details as sh%w& bel%w:

N%w clic$ %& E&'ir%&!e&t 34 M%dificati%& 34 E'e&ts

F%ll%wi&" scree& is dis(la)ed#

Clic$ %& FF# F%ll%wi&" e&tries are dis(la)ed:

Gere )%6 ca& %bser'e that there are differe&t t)(es %f e'e&ts a'ailable li$e bef%re sa'i&" the data1 after sa'i&" the data1 bef%re deleti&"1 after deleti&" a&d %thers# Let 6s "% with BCreati&" a &ew e&tr)C#

Clic$ %& the b6tt%& i& the Edit%r c%l6!& a&d e&ter the f%ll%wi&" c%de: +/lease &%te that )%6 sh%6ld als% c%de FORM a&d ENDFORM as well,#

Sa'e a&d acti'ate the table# Testing the scenario: G% t% SM90 a&d tr) creati&" &ew e&tries# D% &%t e&ter the 'al6es f%r BCreated %&C a&d BCreated b)C#

Chec$ )%6r e&tries i& the database table# E%6 ca& %bser'e that the date a&d 6ser &a!e are a6t%!aticall) filled3i&# See the scree&sh%t bel%w:

You might also like