Say thnks to Sanjeev.
Basically you people can do mass transports, as our freinds told that the objects can be in multiple transports and the transportorder should be transporte according to the release of the time. For this we have a transaction "SM49", before transporting the transportorders into PROD we have to excute this transaction so that STMS adjusts automatically the transportorder according to the time of the transportorder released.
Natrually we can transport mass transports at a time in STMS. After releasing the transportorders from QA to PROD, in few minutes all transports will be found in the PROD qeue System from there u can select them as bundel and take the "BIG Transport Vehicle" where it transports at time. This is my exp. as I am responsible for our Transportmanagementsystem.
Message was edited by:
Correct me if I am wrong.
Why we create a transport request?
To move a object from one client to another client.right?
How we will move the object from one client to another client?
By creating a transport request and then releasing it by pressing the lorry button,right?
If that is not what you want then let's see what SDN experts says.Did you go through Anjis answer too?
The following ABAP code can help you:
*& Report ZTSTAN001
*& Mass release of tasks/transport orders
*& - Run it first to release CTS-tasks
*& - Run it once again to release CTS-Change requests (creating the
*& Transport Orders)
select-options strkorr for E070-TRKORR.
data: wakorr like e070-trkorr,
tabkorr like standard table of wakorr.
select trkorr from e070 into table tabkorr where trkorr in strkorr.
loop at tabkorr into wakorr.
CALL FUNCTION 'TR_RELEASE_REQUEST'
IV_TRKORR = wakorr
IV_DIALOG = ' '
IV_AS_BACKGROUND_JOB = ' '
IV_SUCCESS_MESSAGE = ' '
IV_DISPLAY_EXPORT_LOG = ' '
CTS_INITIALIZATION_FAILURE = 1
ENQUEUE_FAILED = 2
NO_AUTHORIZATION = 3
INVALID_REQUEST = 4
REQUEST_ALREADY_RELEASED = 5
REPEAT_TOO_EARLY = 6
ERROR_IN_EXPORT_METHODS = 7
OBJECT_CHECK_ERROR = 8
DOCU_MISSING = 9
DB_ACCESS_ERROR = 10
ACTION_ABORTED_BY_USER = 11
EXPORT_FAILED = 12
OTHERS = 13.
There is even a BAPI to release transport requests...
DATA: gt_e070 TYPE TABLE OF e070, return TYPE bapiret2. FIELD-SYMBOLS: <e070> TYPE e070. SELECT-OPTIONS: so_num FOR <e070>-trkorr. START-OF-SELECTION. SELECT * INTO TABLE gt_e070 FROM e070 WHERE trkorr IN so_num AND trstatus EQ 'D' " not yet released AND strkorr EQ space. " only request not task CHECK sy-subrc EQ 0. LOOP AT gt_e070 ASSIGNING <e070>. CALL FUNCTION 'BAPI_CTREQUEST_RELEASE' EXPORTING requestid = <e070>-trkorr complete = 'X' " Release request including tasks IMPORTING return = return. IF NOT return-type IS INITIAL. MESSAGE ID return-id TYPE return-type NUMBER return-number WITH return-message_v1 return-message_v2 return-message_v3 return-message_v4. ENDIF. ENDLOOP.