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

FM same as lt06

Former Member
0 Likes
1,678

Hi!

Do u know an FM which is similar to transaction lt06 (or BAPI)?

THX

Message was edited by: Peter Szabo

8 REPLIES 8
Read only

Former Member
0 Likes
1,143

Hi,

Check with FM WS_LM_TRANSFER_ORDER_CREATE, this might help,

Rgds,

Read only

0 Likes
1,143

I think it's something other. Because I have only material beleg nummer and a year.

Read only

0 Likes
1,143

check Business Objects BUS2015/17 in SWO1 or

try BAPI <b>BAPI_GOODSMVT_CREATE</b>and see the Documentation for More Info.

Regards

Prabhu

Read only

0 Likes
1,143

I tried it out, but it only create the material document (i can create material document with MB_CREATE_GOODS_MOVEMENT also), i cant make the bapi to create transfer order.

Read only

0 Likes
1,143

Peter,

You should menttion the movement code for tranfer order creation - Filed <b>GMCODE = '04'</b>.

See the example http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm

cheers,

TM

Read only

0 Likes
1,143

Peter,

Did you find a solution to your problem. I would also like to do a transfer order via a function or BAPI.

Thanks,

Deanna

Read only

Former Member
0 Likes
1,143

Hi,

About creating TO there are bunch of Function Modules you can look into:

1. L_TO_CREATE_SINGLE ( LT01)

2. L_TO_CREATE_MULTIPLE (LT01)

3. L_TO_CREATE_TR

4. L_TO_CREATE_POSTING_CHANGE

Usually MB1B creates a Transfer Requirement automatically in that case you need to use L_TO_CREATE_TR. The TR# can be found in LTBK table search on MBLNR from MB1B and you will get the TR#.

For some movement types MB1B Creates a Posting Change and then you need to use L_TO_CREATE_POSTING_CHANGE FM to create a Transfer Order. The FM requires Posting Change Number which can be found in LUBU table.

For Material Document Creation have a look at BAPI_GOODSMVT_CREATE.

Thanks,

Read only