cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer Order Split problem

suresh_udayagiri
Explorer
0 Kudos

Hi,

For my custom program to create TOs for OBD, I am using using FM L_TO_CREATE_DN. While doing this I am having a below issue.

I have 2 line items on my delivery 1st line item- material 1- qty 100 and 2nd line item-material 2-qty 100. When TO is created using L_TO_CREATE_DN, the TO was created for the entire delivery even though I entered the values to create only for 50 qty from line item 1. I checked the partial picking indicator and it is "X". I couldn't understand where the issue is and why it is creating the TO for the entire delivery even though I maintained the partial picking indicator.

Please share your thoughts. I appreciate the help.


Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

mihailo_sundic
Active Contributor
0 Kudos

Hello Suresh,

Partial picking indicator doesn't have anything to do with TO creation in this FM.

Instead try adding TABLES part of the statement specifying some data in T_LTAP_VB structure which you will then pass to the FM 'L_TO_CREATE_DN'.

TABLES
  T_LTAK STRUCTURE  LTAK_VB OPTIONAL
  T_LTAP_VB STRUCTURE  LTAP_VB OPTIONAL

  T_WMGRP_MSG STRUCTURE  WMGRP_MSG OPTIONAL


In this structure, you can define line items you want to process, specify quantities like you wish.

Regards,
Mihailo

MANIS
Active Contributor
0 Kudos

Hi Suresh

FM L_TO_CREATE_DN is there to create a Transfer order against a delivery. One thing which is not clear from the above thread is "TO was created for the entire delivery even though I entered the values to create only for 50 qty from line item 1" where are you maintaining this entry and how ?