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

TR_REQUEST_CHOICE - Adding to the task

Former Member
0 Likes
3,134

Hi Gurus,

I have used the TR_REQUEST_CHOICE function module in a custom program to add custom table entries that need to be transported. The only issue is that the transportable objects are being added to the transport instead of the task. I would like to add to the task.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,966

Hi,

Provide the code to resolve the issue.

Or

otherwise check the Program RSTRANSPROJECT.

Edited by: subas Bose on May 18, 2010 1:27 AM

8 REPLIES 8
Read only

Former Member
0 Likes
1,967

Hi,

Provide the code to resolve the issue.

Or

otherwise check the Program RSTRANSPROJECT.

Edited by: subas Bose on May 18, 2010 1:27 AM

Read only

0 Likes
1,966

Hi Subas,

Thanks for the reply , here is my code:

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

Edited by: Rob Burbank on May 18, 2010 5:00 PM

Read only

0 Likes
1,966

You have to use the FM

TR_INSERT_REQUEST_WITH_TASKS

to insert entries under task

Edited by: Naresh Nelapatla on May 18, 2010 5:50 AM

Edited by: Naresh Nelapatla on May 18, 2010 5:51 AM

Read only

Former Member
0 Likes
1,966

Hi Krish ,

You can use the same FM 'TR_REQUEST_CHOICE' for this purpose.

If you have text table for your Z table you have to maintain them in ITAB IT_E071K. But actual table entries has to be passed through Export table parameter IT_E071.

Guess the request type you are passing for parameter iv_request_types is also wrong. It should be 'T'.

you can refer the FM 'KCD_SENDERSTRUCTURE_TRANSPORT' which is used to add the Currency translation type and its text to Trasport requests task.

Please refer the below links as well.

Link: [http://www.saptechies.com/copying-table-entries-from-client-000/]

Link:[;

Edited by: Prasath Arivazhagan on May 18, 2010 7:02 AM

Read only

0 Likes
1,966

Hi gurus,

i have been playing around with these function modules: TR_INSERT_REQUEST_WITH_TASKS, TR_OBJECTS_INSERT,KCD_SENDERSTRUCTURE_TRANSPORT, TRINT_MODIFY_COMM and ofcourse TR_REQUEST_CHOICE to get my objects into a task rather than just into the transport but with no luck.

Some how if the object gets inserted with the TR_REQUEST_CHOICE, it never seems to get to the task. I have tried with passing 'T' also as suggested in the last reply to the iv_request_types parameter but that too is not working. I also get a out of sequence message sometimes when using a combination of these FMs. I would like to know if I am missing anything or if there is a specific sequence that I must follow.

Thanks,

Read only

0 Likes
1,966

For this FM

 TR_APPEND_TO_COMM_OBJS_KEYS,

Pass the WI_TRKORR value as ur Task number

And rest you have to give exact key field values to that WT_E071K table.

Then it def works

Read only

0 Likes
1,966

Hi Naresh,

thank you for providing this FM, this works, I have tested it and also thanks to all who took interest.

Read only

0 Likes
1,966

Hi Krish,

I have same requirement. I have a Z table and using a custom program records are getting updated in this.

I need to add these entries to a request->task using the program. Please share the code.