When we are prompted to create a new transport request, we are able to fill the description field freely.
But when you have a lot of transport requests in the development system, it would be certainly hard and time consuming to find a limited number of specific requests (based on a client reference, a project name, a project manager, a unit of work, ...).
One good solution would be to force all the developers in the company to respect a certain format of the description when creating any new transport request.
So we may want to define some kind of pattern to be respected : basically some fields (username, client reference, SAP Module, Team leader, Project, ...) and a separator.
- Control the description entered before creating the request
In order to control the request's description entered by the user, we would have to implement the BADI: CTS_REQUEST_CHECK and specially the method CHECK_BEFORE_CREATION.
The parameter TEXT of the method CHECK_BEFORE_CREATION naturally contains the description entered by the user while creating the request.
So, we just would have to control the TEXT variable (some SPLIT, CONCATENATE, ... operations ) and ensure it meets our predefined requirement.
A Part II is coming, in which I will present a more interesting way to achieve this requirement by implementing an enhancement and creating a custom screen.
I hope this post is useful to all.