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: 

Creating TO based on TR

Former Member
0 Kudos

Hi,

I want to create a transfer order with reference to a transfer request. For that, i've attempted to use the function module L_TO_CREATE_TR. The problem is that i also want to be able to define the item data during the transfer order creation(particularly SU#'s). can i use this FM? or any user exit helps to do this?

Could somebody please tell me if there is some way to create the transfer order mantaining reference to the transfer request, but being able to specify the item data during the creation of the transfer order in accordance to our necessity?

i have searched SDN and found below FM to achieve that but if i check the FM there is a exporting parameter it_trite = it_trite. but the FM is not having this parameter. could anyone tell me where this parameter comes from?

CALL FUNCTION 'L_TO_CREATE_TR'

EXPORTING

i_lgnum = p_lgnum

i_tbnum = p_tbnum

i_squit = p_l_squit

i_tbeli = p_l_squit

i_commit_work = c_x

i_bname = sy-uname

it_trite = it_trite

IMPORTING

e_tanum = p_v_tanum

EXCEPTIONS

foreign_lock = 1

qm_relevant = 2

tr_completed = 3

xfeld_wrong = 4

ldest_wrong = 5

drukz_wrong = 6

tr_wrong = 7

squit_forbidden = 8

no_to_created = 9

update_without_commit = 10

no_authority = 11

preallocated_stock = 12

partial_transfer_req_forbidden = 13

input_error = 14

OTHERS = 15

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You need to fill in the data in a ur Traccording to ur transfer Requirement like matno. unit quantty sourcde bin etc.

2 REPLIES 2

Former Member
0 Kudos

You need to fill in the data in a ur Traccording to ur transfer Requirement like matno. unit quantty sourcde bin etc.

Former Member
0 Kudos

Thanks