Application Development and Automation 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: 
Read only

Transfer ORDER Confirmation for SU

Former Member
0 Likes
1,136

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
856

I got the answer. Thanks for our help

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

3 REPLIES 3
Read only

Former Member
0 Likes
856

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.

Read only

0 Likes
856

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.

Read only

Former Member
0 Likes
857

I got the answer. Thanks for our help