06-02-2011 8:40 AM
Hi All
I am using a FM 'L_TO_CONFIRM' for a custom RF transaction.Its works fine if I have single line item, TO confirmation is done.
Problem is with multiple line items, If I have more than 1 line item in the TO, my requirement is to confirm the line items individually, can i achieve this with this FM??
If i am passing details for 1st line item to confirm 1st line item, its giving me error to fill the second line item details,(i do not want the second line item to get confirmed),anyone aware of this issue, pls respond.
Thanks
06-11-2011 7:19 PM
Hi
Any answers for this pls??
Just for info, I am working on ECC 5.0, when I confirm Transfer order with multiple items , ithe function module L_TO_CONFIRM is giving error L3 860 which says HU data for TO item & & are missing
I am wondering why the FM is checking for second line item when I pass details of 1st line item, any clue??
Cheers
10-28-2014 7:32 AM
10-28-2014 12:02 PM
Hi Hemanth,
Whenever TO is created, its details gets saved into LTAP and LTAK table.
So at the time of confirmation, when you pass TO number, it will check for all the items in that TO.
If batch split is not there then fill the internal table with below parameters:
wa_ltap is the workarea of internal table it_ltap. it_ltap is the internal table from call function 'L_TO_CREATE_DN'. " FM to create TO.
"Read table in work area and accordingly populate gi_ltap_conf table.
gw_ltap_conf-tanum = wa_ltap-tanum.
gw_ltap_conf-tapos = wa_ltap-tapos.
gw_ltap_conf-altme = wa_ltap-altme.
gw_ltap_conf-charg = wa_custto-batch.
gw_ltap_conf-nista = wa_custto-qty_del.
gw_ltap_conf-parti = ' '.
gw_ltap_conf-ndifa = 0 .
if gi_ltap_conf is not initial.
call function 'L_TO_CONFIRM'
exporting
i_lgnum = lv_lgnum1
i_tanum = lv_tanum
i_qname = sy-uname
i_ename = sy-uname
i_komim = 'X'
i_update_task = space
i_commit_work = space
tables
t_ltap_conf = gi_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.
* if sy-subrc <> 0.
* rollback work.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
* endif.
endif.
01-14-2015 11:01 AM
01-14-2015 12:21 PM
09-14-2016 2:58 PM