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.

如何创建依赖于某时间段的ABAP视图

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

如何创建依赖于某时间段的ABAP视图

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

如何创建依赖于某时间段的ABAP视图

Maintain Function group name:

如何创建依赖于某时间段的ABAP视图

Make sure the table maintenance dialog is generated successfully:

如何创建依赖于某时间段的ABAP视图

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:

如何创建依赖于某时间段的ABAP视图

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

如何创建依赖于某时间段的ABAP视图

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

如何创建依赖于某时间段的ABAP视图

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

如何创建依赖于某时间段的ABAP视图

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:

如何创建依赖于某时间段的ABAP视图

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:

如何创建依赖于某时间段的ABAP视图

and only these two entries meet the condition:

如何创建依赖于某时间段的ABAP视图

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
如何创建依赖于某时间段的ABAP视图

相关文章:

  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-11-29
  • 2021-11-24
  • 2021-06-05
  • 2021-11-03
猜你喜欢
  • 2021-12-29
  • 2021-07-04
  • 2022-12-23
  • 2021-11-07
  • 2021-08-03
  • 2021-05-20
  • 2022-02-27
相关资源
相似解决方案