以编程方式检索对象名称和整个包的传输请求 [英] Retrieving Object names and Transfer requests for an entire package programmatically

查看:89
本文介绍了以编程方式检索对象名称和整个包的传输请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个独立的系统(开发和测试),我需要检查所有对象(程序和所有包含项)的开发版本是否与dev中的版本匹配。我可以通过对每个对象进入SE80->实用程序->版本管理来手动完成此操作,但是对于成百上千的对象,这非常耗时。

I have two separate system (development and testing) and I need to check that for all my objects (programs and all includes) the version in development matches that in dev. I can do this manually by going to SE80 -> Utilities -> Version Management for each object but for hundreds/thousands of objects this is extremely time consuming.

以编程方式检索对象名称和TR的方式,以便可以将它们输出到表或电子表格中?

Is there a way to retrieve the object name and TR programatically so that they could be output to a table or spreadsheet?

EDIT。 (在我看来,Vwgert似乎可以正常工作-如果不能,您可以解释一下为什么不这样做吗?谢谢)

EDIT. (Vwgert it seems to me like this works - if it doesn't could you explain a bit more why it won't? Thanks)

因此,使用下面的JOIN我相信我能够检索系统中的所有对象,类型和最新的TR。

So using the following JOIN I believe I am able to retrieve all the objects, types and latest TR in the system.

SELECT a~obj_name b~korrnum c~object b~datum b~zeit
  FROM tadir AS a
  INNER JOIN vrsd AS b
  ON a~obj_name = b~objname
  INNER JOIN e071 AS c
  ON a~obj_name = c~obj_name
  AND a~pgmid = c~pgmid
  AND a~object = c~object
  INTO TABLE gt_obj_tr
  WHERE a~devclass IN s_pkg.

SORT gt_obj_tr BY object ASCENDING obj_name ASCENDING korrnum DESCENDING datum DESCENDING zeit DESCENDING.
DELETE ADJACENT DUPLICATES FROM gt_obj_tr COMPARING object obj_name.


推荐答案

您可以在表中找到大多数对象标头 TADIR 。请求和任务标头存储在 E070 中,条目存储在 E071 中-只需查看其内容即可如果您知道交通工具的样子,这将是不言而喻的。请注意,某些对象类型可以部分传输( R3TR CLAS 是整个类, LIMU METH 仅是一个类)方法)-这样就无法进行直接联接。

You can find most of the object headers in the table TADIR. The request and task headers are stored in E070, the entries in E071 - just take a look at the contents, it's fairly self-explanatory if you know what a transport looks like. Be aware that some object types can be transported partially (R3TR CLAS is the entire class, LIMU METH is only a single method) - this makes direct joins impossible.

这篇关于以编程方式检索对象名称和整个包的传输请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆