2008 Jul 31 12:11 AM
I am using L_TO_CONFIRM_SU, when i execut in SE37 by passing only LENUM, the TO gets confirmed without any issues.
But when i need to call the FM in my custom program, i need to pass LENUM & T_LTAP_CONF which are mandatory. I tried passing values to T_LTAP_CONF but i get some errors. kindly help me in this regard.
Can i know what are the parameters that needs to be passed to T_LTAP_CONF .
Thannks in advance
Edited by: Raj on Jul 31, 2008 4:41 AM
2008 Aug 03 11:35 AM
I got the answer. Thanks for our help
2008 Jul 31 5:59 AM
The table ' T_LTAP_CONF' is mandatory to fthe unction module. You will need to pass on 'corresponding ' fields from an itab consttructed by join of LTAk & LTAp inner join on Transfer order number for that warehouse.
You can know what those 'corresponding' fields are by looking at sturcture LTAP_CONF and comparing with TO Itemstable structure.
2008 Jul 31 12:29 PM
Can you let me know what parameters needs to be passed to LTAP_CONF
See the below code
SELECT * FROM ltap
WHERE lgnum = '020'
AND tanum = gs_lqua-btanr
AND vlenr = lein-lenum.
ENDSELECT.
SELECT * from ltak
WHERE lgnum = '020'
AND tanum = gs_lqua-btanr.
ENDselect.
MOVE-CORRESPONDING ltap to t_ltap_conf.
MOVE-CORRESPONDING ltak to t_ltap_conf.
APPEND t_ltap_conf.
CALL FUNCTION 'L_TO_CONFIRM_SU'
EXPORTING
i_lenum = lein-lenum
i_squit = 'X'
i_qname = sy-uname
i_commit_work = 'X'
TABLES
t_ltap_conf = t_ltap_conf
EXCEPTIONS
su_confirmed = 1
su_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
foreign_lock = 9
item_su_bulk_storage = 10
item_no_su_bulk_storage = 11
quantity_wrong = 12
double_lines = 13
kzdif_wrong = 14
no_difference = 15
no_negative_quantities = 16
wrong_zero_stock_check = 17
nothing_to_do = 18
no_unit_of_measure = 19
xfeld_wrong = 20
one_item_su_bulk_storage = 21
update_without_commit = 22
no_authority = 23
nlpla_wrong = 24
two_step_confirmation_required = 25
two_step_conf_not_allowed = 26
pick_confirmation_missing = 27
quknz_wrong = 28
hu_data_wrong = 29
no_hu_data_required = 30
hu_data_missing = 31
hu_not_found = 32
picking_of_hu_not_possible = 33
not_enough_stock_in_hu = 34
serial_number_data_wrong = 35
serial_numbers_not_required = 36
no_differences_allowed = 37
serial_number_not_available = 38
serial_number_data_missing = 39
OTHERS = 40.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2008 Aug 03 11:35 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |