Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Compilation of Transport Request Programatically

Former Member
0 Likes
1,478

Halo Experts ,

I have a requirement for a report . Wherein the user enters a package a selection screen . I had to find out the rep objects based on certain condiitons . ie the first part and i have done that

NOw the second part is I have to compile a Transport request containing all these objects and set the lock . The user should get back a Compiled Transport request no as the output . Is it possible to have Transport Request compiled programatically

8 REPLIES 8
Read only

Former Member
0 Likes
1,210

As per my knowledge,in your report we can use

CALL TRANSACTION 'SE10'.

when we are trying to excute it will directly takes to SE10 transaction

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,210

You may use the following function modules to fulfil your requirement :

- BAPI_REQUEST_CREATE or FM like TR_REQUEST_MODIFY/CREATE to create the request

- TR_SORT_AND_COMPRESS_COMM and TR_LOCK_COMM to sort and compress data (if need)

- BAPI_CTREQUEST_RELEASE to release request

Regards

Read only

ThomasZloch
Active Contributor
0 Likes
1,210

Isn't standard program RSWBO010 doing something very similar, do you need a new report for it?

Thomas

Read only

0 Likes
1,210

This report (or the FM TRINT_SELECT_OBJECTS which call this report) will return a list of objects, but, as far i as remember, it will not put the objects in a transport request.

So you may use this FM or report to select the objects, but encapsulate it to create the request and add the object in it.

Regards

Read only

0 Likes
1,210

Yes, you'll have to mark the objects (e.g. the highest tree node to pick everything) and hit the save button (F9 in this case...), then all selected objects will be inserted into an existing or a new transport request. Only the object lock would neet to be set separately.

So there is some user interaction required, not sure if this meets the OPs requirement.

Thomas

Read only

0 Likes
1,210

Thankyou very much Raymond .

But i dont understand what that report RSWBO010 is doing . Is it exporting the repository elements( that i have given in selection screen )to ABAP Memory ? . The report does not give any output also.

Regardign selection of objects , I am doing it with in my csutom code . I just want to include those objects like

R3TR TABL ZABCD

I dont want to use BDC kind of thing with CALL TRANSACTION

Thanks

Arshad

Read only

0 Likes
1,210

Proposal

- Select object list via FM TRINT_SELECT_OBJECTS which will return a list of TADIR objects to transport (this FM call the report RSWBO010 )

- Create/select a tranport request via FM TR_REQUEST_MODIFY/CHOICE

- Add object list to created request via FM TR_INSERT_REQUEST_WITH_TASKS to

- Sort and lock object list via FM TR_SORT_AND_COMPRESS_COMM and TR_LOCK_COMM

- Release the request via BAPI_CTREQUEST_RELEASE

(Check FMs names as a i don' t have access to a SAP system today)

Regards

Read only

0 Likes
1,210

FM: TR_LOCK_COMM is present only in 4.6c release.

Does anyone know what is the substiture for this FM. I am assuming there is a class, method for it.

Can someone tell me?