10-13-2008 4:51 PM
Hi Guyz,
what are all the parameters needs to pass to confirm TO into the function module(L_TO_CONFIRM)...im passing warehouse number and transfer order number ..Iam getting the exception 'NOTHING TO DO' (NO ITEM FOR CONFIRMATION(CHECK YOUR ENTRY).. i know why this is happening coz the table T_LTAP_CONF type LTAP_CONF is not populated in the PERFORM QUITTIERUNG_PRUEFEN..
plz advise..
regards
Edited by: BrightSide on Oct 13, 2008 4:54 PM
10-13-2008 5:24 PM
Hi,
You have to pass t_ltap_conf internal table with the TO line populated in it.
MOVE <TO NO> TO t_ltap_conf-tanum.
MOVE <TO ITEM NO> TO t_ltap_conf-tapos.
MOVE <SU NUMBER> TO t_ltap_conf-lenum. "If the
"storage type is SU managed only otherwise do not pass.
MOVE 'X' TO t_ltap_conf-vquit.
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = i_ltap-lgnum
i_tanum = i_ltap-tanum
i_qname = sy-uname
i_commit_work = 'X'
TABLES
t_ltap_conf = t_ltap_conf
EXCEPTIONS
to_confirmed = 1
to_doesnt_exist = 2
item_confirmed = 3
item_subsystem = 4
item_doesnt_exist = 5
item_without_zero_stock_check = 6
item_with_zero_stock_check = 7
one_item_with_zero_stock_check = 8
item_su_bulk_storage = 9
item_no_su_bulk_storage = 10
one_item_su_bulk_storage = 11
foreign_lock = 12
squit_or_quantities = 13
vquit_or_quantities = 14
bquit_or_quantities = 15
quantity_wrong = 16
double_lines = 17
kzdif_wrong = 18
no_difference = 19
no_negative_quantities = 20
wrong_zero_stock_check = 21
su_not_found = 22
no_stock_on_su = 23
su_wrong = 24
too_many_su = 25
nothing_to_do = 26
no_unit_of_measure = 27
xfeld_wrong = 28
update_without_commit = 29
no_authority = 30
lqnum_missing = 31
charg_missing = 32
no_sobkz = 33
no_charg = 34
nlpla_wrong = 35
two_step_confirmation_required = 36
two_step_conf_not_allowed = 37
pick_confirmation_missing = 38
quknz_wrong = 39
hu_data_wrong = 40
no_hu_data_required = 41
hu_data_missing = 42
hu_not_found = 43
picking_of_hu_not_possible = 44
not_enough_stock_in_hu = 45
serial_number_data_wrong = 46
serial_numbers_not_required = 47
no_differences_allowed = 48
serial_number_not_available = 49
serial_number_data_missing = 50
to_item_split_not_allowed = 51
input_wrong = 52
OTHERS = 53.
Regards,
Rudra
10-13-2008 5:42 PM