05-10-2007 9:25 AM
have 1000 transport request to release.I cannot relaese one by one in SE10.Can any1 eaxplain how to relase all the request at the same time.
05-10-2007 9:47 AM
05-10-2007 9:50 AM
05-10-2007 10:01 AM
Tjk,
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=mass%20transport&cat=sdn_all
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.
K.Kiran.
Message was edited by:
Kiran K
05-10-2007 10:15 AM
Kiran ,
U r not undersatnding my question.I m not asking abt importing and transporting.
I m asking abt releasing in SE10,once we released all the request in DE10 ,then only we can transport using STMS right?
05-10-2007 10:23 AM
Tjk,
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?
K.Kiran.
05-10-2007 10:52 AM
Kiran,
I like to release the request using lorry button,but I dont like to transport to any other client.Transport(after released) means transporting objects from one client to some other client.Now i like to release the request in the same client.
05-10-2007 11:01 AM
tjk,
Fine,Can you please let me know what a RELEASE means?
Sorry,I don't know the answer for your query.
K.Kiran.
05-10-2007 11:10 AM
Once we released the request it will go to STMS.From there we can transport to any other client.In STMS we have option mass transportation.
05-10-2007 10:02 AM
Hi
From Se09
check the following
go to the requests screen
from menu
REQUEST/TASK-> RELEASE->DIRECTLY OR BACKGROUND
REQUEST/TASK->MORE REQUESTS
may be useful
Reward points if useful
Regards
Anji
05-28-2009 8:33 AM
Hi Tjk,
Well if you r talking abt transporting between clients than it is done through T-Code: SCC1
02-06-2011 2:51 PM
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)
&----
REPORT ZTSTAN001.
tables e070.
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'
EXPORTING
IV_TRKORR = wakorr
IV_DIALOG = ' '
IV_AS_BACKGROUND_JOB = ' '
IV_SUCCESS_MESSAGE = ' '
IV_DISPLAY_EXPORT_LOG = ' '
EXCEPTIONS
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.
endloop.
02-07-2011 2:04 PM
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.
Regards,
Raymond
11-18-2020 5:37 PM
These FM or BAPI's do not work for TOC...Only Workbench & Customizing..
03-09-2022 12:27 PM
I updated the report provided by raymond.giuseppi and added a flag for a "demo mode" so that it would only list the selected transports .
And it now does not raise messages but writes them to the screen or potentially to a job log.
Report Z_RELEASE_ALL_TRANSPORTS.
DATA: gt_e070 TYPE TABLE OF e070,
return TYPE bapiret2. FIELD-SYMBOLS: <e070> TYPE e070.
SELECT-OPTIONS: so_num FOR <e070>-trkorr.
PARAMETERS : demo TYPE abap_bool DEFAULT abap_true .
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>.
IF demo = abap_false.
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
INTO DATA(message_string).
WRITE : / | { <e070>-trkorr } error: { message_string } |.
ELSE.
WRITE : / | { <e070>-trkorr } released successfully |.
ENDIF.
ELSE.
WRITE : / | Demo { <e070>-trkorr } not yet released |.
ENDIF.
ENDLOOP.
03-09-2022 12:40 PM
andre.fischer, please, for me & my clean code way of life 😉
PARAMETERS : demo TYPE abap_bool DEFAULT 'X' . "<-- default abap_true