Hi Expert,
I am trying to create TO using FM L_TO_CREATE_DN for a delivery number. My code is below:
CALL FUNCTION 'L_TO_CREATE_DN'
EXPORTING
i_lgnum = l_lgnum
i_vbeln = l_vbeln
i_squit = c_x
it_delit = t_delit
I_TEILK = c_x
IMPORTING
e_tanum = l_tanum
TABLES
t_ltak = t_ltak
t_ltap_vb = t_ltap1
t_wmgrp_msg = t_wmgrp_msg
EXCEPTIONS
foreign_lock = 1
dn_completed = 2
partial_delivery_forbidden = 3
xfeld_wrong = 4
ldest_wrong = 5
drukz_wrong = 6
dn_wrong = 7
squit_forbidden = 8
no_to_created = 9
teilk_wrong = 10
update_without_commit = 11
no_authority = 12
no_picking_allowed = 13
dn_hu_not_choosable = 14
input_error = 15
OTHERS = 16.
But I am not getting any TO using this code. Also no error messages. How to get TO using above FM?
Any possible solution would be gratefully accepted.
Thanks,
Arindam Samanta.