Skip to Content
0

WM : TO confirm for overpicking

Oct 23, 2017 at 12:42 PM

26

avatar image
Former Member

Hi all,

i have used the function module L_TO_CONFIRM to confirm single line item of LTAP table with the same quantity and this works correctly (for example <fs_item>-nista = 5):

SELECT SINGLE * FROM ltap INTO @DATA(ls_ltap)
WHERE lgnum EQ @ip_lgnum AND tanum EQ @ip_tanum.
IF sy-subrc EQ 0.
APPEND INITIAL LINE TO lt_ltap_conf ASSIGNING FIELD-SYMBOL(<fs_item>).
IF <fs_item> IS ASSIGNED.
MOVE-CORRESPONDING ls_ltap TO <fs_item>.
<fs_item>-nista = ls_ltap-vsolm.
ENDIF.
ENDIF.

CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
i_lgnum = ip_lgnum
i_tanum = ip_tanum
i_commit_work = 'X'
TABLES
t_ltap_conf = lt_ltap_conf
t_ltap_conf_hu = it_ltap_conf_hu

I would need to know how to set table parameter "T_LTAP_CONF" in order to confirm TO with overpicking (picked quantity > delivery quantity).

Is it correct to set parameter in the following way o i have to set other options?

delivery quantity = 5

<fs_item>-nista = 7

<fs_item>-ndifa = -2

Thanks in advance.

Regards.

Dario.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers