Skip to Content
Technical Articles
Author's profile photo Akmal Qilichbekov

Report that automatically releases TOC

Dear all,

I would like to share one interesting and useful report which creates Transport of copies and releases them to the target system.

In some projects we came across with difficulty to test our developments due to not having enough test data. Recently I had one project where no test data is available in DEV system and we need create TOC and move it to quality system to test every single change in the logic. At the same time that makes you to write code more carefully, since you don’t want to create TOC over and over againΒ  πŸ™‚

But this process takes time such as creating TOC and import it to target system, besides I found it sometimes annoying. So I decided to create report which does the same job instead of me.

All I need to provide is transport request number, it is also easy to select thanks to value help in selection screen.

This is how the report look like:

Value help on the first input field gives you the option to choose both customizing and workbench requests under your user name:

Selected transport number will be released and you just need to import it in target system.

Here I am providing the source code in my GitHub profile and hope you will find it insightful.

TOC Report repository link

Assigned Tags

      9 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sandra Rossi
      Sandra Rossi

      Thanks. Note that there was also Easing the pain in TMS – using transport of copies | SAP Blogs, although only a description of function modules.

      I see that you use TRINT_RELEASE_REQUEST, there's also the function module BAPI_CTREQUEST_RELEASE. I'm not sure whether it works for TOC.

      I also recommend to use abapGit to store ABAP code in Git repositories.

      NB: for creation, if someone proposes BAPI_CTREQUEST_CREATE, unfortunately it cannot create requests of type Transport of Copies (only Workbench and Customizing).

      Author's profile photo Akmal Qilichbekov
      Akmal Qilichbekov
      Blog Post Author

      Thank you Sandra,

      Good to know about another blog.

      Author's profile photo Oleg Bashkatov
      Oleg Bashkatov

      Thanks.

      Selected transport number will be released and you just need to import it in target system.

      Some time ago, I decided that it is too many actions and\ create report create copy from main request, put it in queue and importing into target system. more over it does not create a version because ToC could generate many versions and it could be time consuming to search over them.

      https://github.com/OlegBash599/ZCTS_BROWSER

      After a while I found that there are many approaches (even standart one) how the problem could be solved (let it also be here - just to increase SEO πŸ™‚Β  )
      https://blogs.sap.com/2023/05/12/hide-toc-transports-in-abap-version-management-enhancement/

      Author's profile photo Matthew Billingham
      Matthew Billingham

      It's a useful tool - I've already written it for my systems!

      May I suggest that your re-write it as object oriented? FORMs are obsolete and should not be used in new developments.

      Also, consider using ABAPGit to manage your ABAP git repositories.

      Author's profile photo Akmal Qilichbekov
      Akmal Qilichbekov
      Blog Post Author

      Hello Matthew,

      Thank you for feedback, I completely agree with subroutines are obsolete now, but idea of the report was to show the main FM that others can use to create such report.

      For sure it can be improved with OOP.

      Author's profile photo Alex Necula
      Alex Necula

      Nice little automation tool! It definitely saves some time for me. It would be great if this was extended to also automate the transport itself.

      Author's profile photo Akmal Qilichbekov
      Akmal Qilichbekov
      Blog Post Author

      Thank you Alex

      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Thanks for sharing! I was curious about the "automatic" part but "I give the report TOC number and it releases it" is not what I'd call automation. πŸ™‚

      It's funny how many customers likely need this and have written their own reports. I had one as well that went even farther: I'd just give it the original TR and it would create TOC and release it. It was based on BDC recording, so not really share-worthy.

      I wish there was standard functionality for this (again, many customers need this, even if they don't know) but alas, I suspect we're stuck with what we have...

      Thank you!

      Author's profile photo Akmal Qilichbekov
      Akmal Qilichbekov
      Blog Post Author

      Thank you Jelena for your feedback.

      Really appreciated πŸ™‚