Change log for Z-Table Maintenance (via SCDO)

本文介绍如何在SAP系统中为特定维护表启用变更日志记录,包括使用自动表变更日志及变更文档对象(SCDO)进行部分表的日志记录。自动表变更日志适合所有定制表,默认情况下会自动记录所有定制表变更;而SCDO则允许更细粒度地跟踪特定表的变更。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Generally we don’t need table logging for custom table maintenance (SM30), but it is important and needed for some cases. All customizing tables are automatically recorded by default but if you use regular Application tables (master and transaction data), you’re about to get your hands dirty .)

Z-TableSample Z-Table

Automatic table change logging

Actually this is not suitable for our case because we want to log particular tables but it’s good to know..

You can use Automatic table change logging by setting the “Log Data Changes” flag under the table “Technical Settings” in SE11 (p.s. You must activate the table again after saving it, otherwise it will not be effective).

Next, to be able to log the table changes you must activate the system profile parameter Rec/Client. The default setting is OFF (no changes are logged). BASIS Team can assist you in this.
Setting Rec/Client Parameter for Logging

However, SAP recommends this option only in systems where this is worthwhile, because all tables with “Log data changes” option will be logged, so this has a major impact on performance (Even for one client)

You can now view the changes via SCU3 (Table: DBTABLOG)

SCU3-Logs
SCU3-Logs

Logging using Change Document Objects (SCDO)

To log changes for particular tables in SM30 Maintenance, we can use change document objects and its associated functions.

Let’s do it step by step;

  • Go to SCDO and create a Change Document Object (Choose Yes for opening Namespace Pop-ups)
    SCDO-Create
  • Insert the entries and choose Utilities → Generate update pgm.SCDO-Insert Entries
  • In the opening pop-up, give function group name (it will be created if it doesn’t exist) and generate the update program for the object by clicking Activate. SCDO-Generated
  • In the Data Element → Further Characteristics Tab, set the “Change Document” flag for the objects which you want to track changes. As you recognise, many SAP standard data elements come with the selected flag.
  • You can now insert appropriate calls in the corresponding programs, for our example we will use Table Maintenance Events.
  • Under the table maintenance (SE56) go to Environment → Modification → Events.
    Give the events & subroutine names as shown in the figure and click the Editor icon to create suggested include (L<fg_name>F01).
    SM30-Events

Now, you can just copy and paste the code snippet (link is below) into the created include. It will begin to create logs in CDHDR-CDPOS tables. You can now view the changes via reports CHANGEDOCU_READ & RSSCD100.

SCDO-LogsSCDO-Logs

Source code on GitHub: https://goo.gl/VrwXaC
(Fork me on GitHub if you want to contribute)

Originally published at – Change log for Z-Table Maintenance (via SCDO)

Ghost Recon Wildlands为您的浏览器提供了最神奇的主题! 对于所有喜欢玩Ghost Recon Wildlands的人,我们向您介绍与这个非常受欢迎的视频游戏有关的新扩展,我们希望它对您来说是完美的。 它带有随机的Ghost Recon Wildlands高品质壁纸以及一些其他功能。 只要您打开新的标签页,壁纸就会打开。 此外,我们的扩展程序为您提供了多种功能,这些功能将改善您的浏览体验,并使您的浏览器焕然一新。 随时与您的朋友和其他玩家分享此扩展程序。 如何使用:-通过单击添加到Chrome按钮安装此扩展程序,它将自动添加。 加载扩展程序时,请等待几秒钟,然后执行最佳操作! -在左上角,“齿轮”。 这将加载设置面板,您可以在其中使用切换按钮来打开或关闭功能。 Ghost Recon Wildlands扩展程序具有一些选项,可让您仅具有高清背景(选择“收藏夹”或使其随机)或使用一些出色功能。 功能-高清和可完全自定义的墙纸-待办事项列表,提高工作效率-最受欢迎的标签-快速,简单的方法来查看已访问的网站-应用程序标签-热门应用程序的高效选项卡,一键即可-注释-快速提醒您的方法重要内容-改进且易于使用的“设置”面板(单击右上角的齿轮图标)选择要使用的标签,全部隐藏,查找更新信息和常见问题解答-背景标签(在设置面板内部)–选择如何更改背景:选择随机,随机播放收藏夹或随机播放所有壁纸。 该扩展名与Ghost Recon Wildlands有关,具有墙纸,图纸和艺术品。 如何删除? 要从浏览器中删除扩展名,请执行以下步骤:-在屏幕右上角找到三个垂直点图标-转到“设置”。 -在出现的菜单中,选择“扩展名”。 -从已安装的扩展程序列表中,找到要卸载的扩展程序的名称。 -单击“启用”右侧的垃圾桶图标(对于您要卸载的扩展名)。 -我们的扩展程序应从您的Chrome浏览器中删除。 更简单的方法–右键单击工具栏中的Ghost Recon Wildlands图标,然后单击“从Chrome删除...”。免责声明:此扩展程序由Ghost Recon Wildlands粉丝提供。 我们和内容与任何公司都不隶属,赞助或批准,并且是非官方的。 如果您认为我们侵犯了您的版权,请与我们联系。 尽管此扩展程序是免费的,但某些部分可以包含广告。 支持语言:English
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值