‎2009 Sep 06 5:41 PM
Hi,
I want to create Transfer orders (TO) for 1 vendor (which may contain multiple material for that 1 vendor). I want to use this function module L_TO_CREATE_MULTIPLE, in which i'm passing all the data's to the table T_LTAP_CREAT as internal table.
My question is what will be the output(E_TANUM) . For eg. if 1 vendor contains 3 material, how many transfer order's will be created i..e one per material or one per vendor. If it creates one TO per material whether all the 3 TO's will be created in one pass. should I need to loop the internal table for all the materials per vendor?
-Anbu.
‎2009 Sep 07 8:35 AM
HI,
This FM will create only one TO with several items.
Please check the documentation of the FM.
Regards,
Ankur Parab
‎2009 Sep 07 12:37 PM
‎2009 Sep 07 3:01 PM
Hi,
It's clear that for one vendor it creates one TO with the corresponding materials, do anyone have the sample output for this?
-Anbu.
‎2009 Sep 08 6:25 AM
hi , it will create only 1 TO with multiple line items
CALL FUNCTION 'l_to_create_multiple'
EXPORTING
i_lgnum = ls_9001_scrn-lgnum
i_bwlvs = lc_bwartwa
i_bname = sy-uname
IMPORTING
e_tanum = ltak-tanum
TABLES
t_ltap_creat = li_ltap_creat
.
ls_9001_scrn-lgnum = warehouse number
lc_bwartwa = movement type
li_ltap_creat = itab containing the line items with diff material
Just check if it helps
Thanks
‎2009 Sep 08 6:44 AM
Hi,
You can also explore with L_TO_CREATE_DN_MULTIPLE.
Thanks,
Subba
‎2009 Sep 08 6:49 AM
‎2011 Apr 10 1:00 PM