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

Manula transfer order using function modules

Former Member
0 Likes
467

Hi,

I am trying to create a transfer order using l_to_create_single.

very thing works fine. the only problem is vbeln value is not updated in to table ltak.

here i am creating a TO for single material.

If i use l_to_create_dn, vbeln value is updated. but TO is created for all the items( materials) in delivery at a time.

this is not the desired result.Is there any chance that i can create a TO using l_to_create_dn for only a single material.

Please help me.

Thanks &

Kind regards

Vamsi.

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
431

Few years ago we've tried to automate the TO creation for one delivery line item and ended up writing a BDC program for LT01 (?) transaction. There was no single FM or IDoc that would do exactly the same. It was in 4.7 though, maybe something was improved in ECC 6.0, but I doubt that.

Read only

Former Member
0 Likes
431

Hi Avula,

L_TO_CREATE_SINGLE is a BAPI and the Changes will be updated when you are going to call the FM BAPI_TRANSACTION_COMMIT. So Call the Commit only after the User presses OK.

OR

Pass the below parameters to create TO

CALL FUNCTION 'L_TO_CREATE_DN'
EXPORTING
i_lgnum = s1_lgnum
i_vbeln = p_delv
it_delit = i_it_delit
IMPORTING
e_tanum = l_tanum
TABLES
t_ltap_vb = i_ltap_vb
EXCEPTIONS
OTHERS = 1.

Edited by: Raj on Jun 27, 2008 3:31 AM