Application Development 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: 

Adding Modifications to Transport Request Using ABAP Report

Former Member
0 Kudos

I want to add some messages to a Message Class by uploading a file(containing the messages).

Now I want to provide an option,

whether or not to add these changes to Transport Request.

Can anyone help me on this?

1 ACCEPTED SOLUTION

former_member195402
Active Contributor
0 Kudos

Hi,

for creation of a new transport request by ABAP report I have used the following function modules:

  • TR_GET_TRANSPORT_TARGET
  • TR_INSERT_NEW_COMM
  • TR_OBJECTS_CHECK
  • TR_OBJECTS_INSERT

Regards,

Klaus

6 REPLIES 6

former_member195402
Active Contributor
0 Kudos

Hi,

for creation of a new transport request by ABAP report I have used the following function modules:

  • TR_GET_TRANSPORT_TARGET
  • TR_INSERT_NEW_COMM
  • TR_OBJECTS_CHECK
  • TR_OBJECTS_INSERT

Regards,

Klaus

0 Kudos

Hi Klaus,


I got some idea from these FMs.
Can you tell me in which order I should use them and what each function module does?

I'll be really grateful.
I'm stuck on this part.

0 Kudos

Hi Prabhat,

1st call fm TR_GET_TRANSPORT_TARGET to get the default target system. Then create a new request with TR_INSERT_NEW_COMM and if needed a new task with TR_INSERT_NEW_COMM. Depending on the request type you may need a tak or not.

Then you have to fill the tables WT_KO200 and WT_E071K with your objects and abject keys to be transported. To check the correctness use fm TR_OBJECTS_CHECK, to add the correct entries use fm TR_OBJECTS_INSERT.


There should be documentation for each fm in your system, also some samples using the where-used-list.

Regards,

Klaus

0 Kudos

Hi Klaus,
Thank you for the guidance.
How can I decide when to put Request Type as 'K' and when not?

With request type as 'K', it is creating a new request on each execution.

Can we do this in the following way-

Request Type should be 'K' for a particular user when he is executing the program for the 1st time.

Later on, all the modifications should be stored in the same TR.

But when a new user executes the same program, then the Request Type should be 'K'.

0 Kudos

Hi Prabhat,

I'm not sure that I've got your question now.

So far I've thought you want to update a message class from an uploadad file and wnat to create a transport request for it. Therfore you need a workbench transport request type 'K' once per report run.

Now you're telling that you want to use the same transport request for further report runs of the same user. But what to do, if another user runs this program.

I would recommend to create a transport request for each report run. But if you don't want that, you have to look for a fm which gives you the information about the open transport request from last run for this user. Also possible might be to get those informations directly from DDIC tables (for example E070 and E071). I don't know a fm, but E070 with field selection on trfunction, trstatus, as4user, strkorr and as4text has all informartions you need for that, if you fill as4text with a retrievable value.

Regards,

Klaus

0 Kudos

Hey.
I just realized this when I executed my report 8-9 times, that for me it should do all this in a single request. Apologies for not discussing this earlier.

I'll go through these FMs and tables and if I'll have any doubts, I'll get back to you.

Thanks a lot.
Prabhat