简体   繁体   English

传输单个方法而不是完整的 ABAP 类

[英]Transport a single method instead of a complete ABAP class

I developed an ABAP class in SE24 and it is locked in transport request TR1 which was already transported to client.我在 SE24 中开发了一个 ABAP 类,它被锁定在已经传输到客户端的传输请求 TR1 中。

Now I am making some modifications in this class in another request TR2, this TR will be transported to client only in September.现在我正在另一个请求 TR2 中对此类进行一些修改,此 TR 将仅在 9 月份传输到客户端。

But meanwhile my client requested to create two new methods in the same class.但与此同时,我的客户要求在同一个类中创建两个新方法。 So I want to transport only those two methods instead of the complete class through TR3.所以我只想通过 TR3 传输这两种方法而不是完整的类。

I can't transport the complete class as the changes I made in TR2 are not complete yet.我无法传输完整的类,因为我在 TR2 中所做的更改尚未完成。

Is there any way?有什么办法吗?

Not if your description of what has happened is accurate.如果您对发生的事情的描述准确,则不会。 Please see this answer for some background information.请参阅此答案以获取一些背景信息。 Now, if you only changed some method implementation, you could perhaps use LIMU METH transport entries to only transport these implementations (although I wouldn't recommend it to avoid side effects).现在,如果您只更改某些方法实现,您也许可以使用LIMU METH传输条目来仅传输这些实现(尽管我不建议这样做以避免副作用)。 If you added some methods - as you said you did -- you will likely have to transport the entire R3TR CLAS object, and that will automatically pull all of the changes.如果您添加了一些方法 - 正如您所说的那样 - 您可能必须传输整个R3TR CLAS对象,这将自动提取所有更改。 Always remember - the CTS only records that a change was made to an object, not what the change was.永远记住-在CTS只记录一个变化对该对象所做的,不是什么变化了。

You might be able to use version management to help you here.您可以使用版本管理来帮助您。 What you can do is add the new Method to your existing class , make sure its tested etc., generate a version and then delete the 2 methods you do not want to send over.您可以做的是将新方法添加到现有类中,确保其经过测试等,生成一个版本,然后删除您不想发送的 2 个方法。 Release your transport and as mentioned above this will extract the class in its current state.释放您的传输,如上所述,这将提取当前状态的类。

After releasing the transport you can go back and revert to the saved version and your all set.释放传输后,您可以返回并恢复到保存的版本和您的所有设置。

Later.......之后.......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM