cancel
Showing results for 
Search instead for 
Did you mean: 

Moving items into one storage unit

peterpiry
Explorer
0 Kudos

Hi,

how can I move 2 items into the same storage unit with the function module L_TO_CREATE_MULTIPLE ?

I called this FM, but it creates 2 storage units for 2 items. Any ideas how I can transfer this 2 items to 1 storage unit?

br

Peter Piry

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }

Accepted Solutions (0)

Answers (2)

Answers (2)

peterpiry
Explorer
0 Kudos

Hi Pavan Golesar,

Thank you for your answer. I tried it, but changing the parameter "I_NOSPL" didn't solve my problem, the system is still creating 2 storage units.

Here are my parameters:

Table ltap_creat:

LOOP AT it_zzwm_einl_lag_einh_0200 ASSIGNING <lf_zzwm_einl_lag_einh_0200>.
CLEAR ls_ltap_creat.


ls_ltap_creat-matnr = <lf_zzwm_einl_lag_einh_0200>-matnr.
ls_ltap_creat-werks = gs_parameters-werks.
ls_ltap_creat-lgort = lv_lgort_wm.
ls_ltap_creat-charg = <lf_zzwm_einl_lag_einh_0200>-charg.
ls_ltap_creat-letyp = 'P1'.
ls_ltap_creat-anfme = <lf_zzwm_einl_lag_einh_0200>-erfmg.
ls_ltap_creat-altme = <lf_zzwm_einl_lag_einh_0200>-erfme.
ls_ltap_creat-nltyp = is_zzwm_einl_lag_einh_0100-nltyp.
ls_ltap_creat-nlber = is_zzwm_einl_lag_einh_0100-nlber.
ls_ltap_creat-nlpla = is_zzwm_einl_lag_einh_0100-nlpla.
* ls_ltap_creat-nlenr = lv_le_num.





APPEND ls_ltap_creat TO lt_ltap_creat.
ENDLOOP.

Function Module:

CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
EXPORTING
i_lgnum = is_zzwm_einl_lag_einh_0100-lgnum
i_bwlvs = '312'
* I_BETYP = ' '
* I_BENUM = ' '
* I_LZNUM = ' '
* I_NIDRU = ' '
* I_DRUKZ = ' '
I_NOSPL = 'X'
* I_UPDATE_TASK = ' '
i_commit_work = 'X'
i_bname = sy-uname
* I_KOMPL = 'X'
* I_SOLEX = 0
* I_PERNR = 0
* I_MINWM = ' '
* I_AUSFB = ' '
* IMPORTING
* E_TANUM =
TABLES
t_ltap_creat = lt_ltap_creat
* T_LTAK =
* T_LTAP_VB =
* EXCEPTIONS
* NO_TO_CREATED = 1
* BWLVS_WRONG = 2
* BETYP_WRONG = 3
* BENUM_MISSING = 4
* BETYP_MISSING = 5
* FOREIGN_LOCK = 6
* VLTYP_WRONG = 7
* VLPLA_WRONG = 8
* VLTYP_MISSING = 9
* NLTYP_WRONG = 10
* NLPLA_WRONG = 11
* NLTYP_MISSING = 12
* RLTYP_WRONG = 13
* RLPLA_WRONG = 14
* RLTYP_MISSING = 15
* SQUIT_FORBIDDEN = 16
* MANUAL_TO_FORBIDDEN = 17
* LETYP_WRONG = 18
* VLPLA_MISSING = 19
* NLPLA_MISSING = 20
* SOBKZ_WRONG = 21
* SOBKZ_MISSING = 22
* SONUM_MISSING = 23
* BESTQ_WRONG = 24
* LGBER_WRONG = 25
* XFELD_WRONG = 26
* DATE_WRONG = 27
* DRUKZ_WRONG = 28
* LDEST_WRONG = 29
* UPDATE_WITHOUT_COMMIT = 30
* NO_AUTHORITY = 31
* MATERIAL_NOT_FOUND = 32
* LENUM_WRONG = 33
* MATNR_MISSING = 34
* WERKS_MISSING = 35
* ANFME_MISSING = 36
* ALTME_MISSING = 37
* LGORT_WRONG_OR_MISSING = 38
* OTHERS = 39
.

Do you have any other ideas to solve this problem?

br

Peter Piry

Pavan_Golesar
Active Participant
0 Kudos

Hi peterpiry

Try setting I_NOSPL parameter as 'X' as this is responsible for No TO split.

Side Note:

For each entry in table T_LTAP_CONF, the function module basically behaves like the transaction for creating a transfer order without reference if you select 'Single item'.

Also note that the default value of The I_KOMPL is 'X' that means it will Only create TO if requested quantity is supplied in full.

If this does not resolve, can you share what are the existing parameters list you are passing. which would depict the way you are passing the data that creates 2 storage units for 2 items.

Thanks,Pavan G