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

L_TO_CREATE_MULTIPLE function module

Former Member
0 Likes
2,987

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,318

HI,

This FM will create only one TO with several items.

Please check the documentation of the FM.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
1,318

1 TO will be created with 3 line items

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
1,318

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.

Read only

0 Likes
1,318

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

Read only

0 Likes
1,318

Hi,

You can also explore with L_TO_CREATE_DN_MULTIPLE.

Thanks,

Subba

Read only

0 Likes
1,318

Hi,

Also check this.

Thanks,

Subba

Read only

Former Member
0 Likes
1,318

solved