以编程方式检索整个包的对象名称和传输请求 [英] Retrieving Object names and Transfer requests for an entire package programmatically
问题描述
我有两个独立的系统(开发和测试),我需要检查我的所有对象(程序和所有包含)的开发版本是否与开发版本匹配.我可以通过转到 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?
编辑.(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屋!