Application Development 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: 

Creating TO with reference to delivery

Former Member
0 Kudos

Hi,

I need to create a transfer order for a delivery note using a function module. I found function L_TO_CREATE_DN to do this. Requirement is that transfer order that will be created should have the source storage type and source storage bin that is specified externally. When testing the function, it does not recognize I_LTAP data input so I think it is not possible to pass storage type and bin data here. Please let me know if there are other function modules that can be used. My last option here is using BDC for LT03 transaction but this will have performance issue because the program will create TO for many deliveries.

Thanks in advance!

Mervin

2 REPLIES 2

ramesh_bobbili
Discoverer
0 Kudos

Hi Mervin,

When creating a TO with reference to a Delivery, the source storage type and bin should be delivery number.

If you want to pass storage type and bin externally, then you can use function modues:

L_TO_CREATE_SINGLE or L_TO_CREATE_MULTIPLE.

But then it will not be referenced by the delivery.

Regards

Ramesh

Former Member
0 Kudos

I have to create TO with reference to delivery for automation. I tried using:

1.L_TO_CREATE_DN function module:

Problem: Where do i specify the batch(s) that need to be picked. Can someone give the parameters that need to be passed to L_TO_CREATE_DN.

2.Created a BDC using "ForeGround" picking.

Problem: After the BDC ends, the document flow is updated; but when i use LT21, TO is not there. Nor is the TO number in LTAK. i.e. i think that COMMIT is not taking place. Can someone tell me how to commit.

In case you have used it, please send me the code.

-Pratik H. Thakkar