天天看点

Step by step to create time dependent view

Step1: Create your transparent table as usual. The only special task is to include two additional fields for start and end date. Use predefined VIM_BEGDA and VIM_ENDDA.

Step by step to create time dependent view

Step2: go to tcode SE54, choose “Edit Table/View->Generated Objects”, then click create button:

Step by step to create time dependent view

Choose “Environment->Generate Time-Dep.”:

Step by step to create time dependent view

Maintain Function group name:

Step by step to create time dependent view

Make sure the table maintenance dialog is generated successfully:

Step by step to create time dependent view

Step3: now you can maintain time dependent table entries via tcode SM30.

I have maintained totally 4 entries with different valid from and valid to date and reviewed them in SE16:

Step by step to create time dependent view

In SM30, if I mark “No Restrictions” and click Display button:

Step by step to create time dependent view

the entry with valid from = 01/19/2014 and valid to = 01/20/2014 will not be displayed by default.

Step by step to create time dependent view

Instead, we have to click “Expand <-> Collapse” to make it visible:

Step by step to create time dependent view

It is also possible to specify a time range of valid from or valid to date to get a list of a subset of entries:

Step by step to create time dependent view

For example, I would like to see only those entries whose valid from date fall into the range between 01/16/2014 and 01/19/2014:

Step by step to create time dependent view

and only these two entries meet the condition:

Step by step to create time dependent view