‎2006 Sep 21 6:39 PM
Hi friends,
I am working on a smartform for delivery note using transaction VL02N. The current form calculates the total number of cases and pallets for the overall quantity.
Now, I have a requirement where I need to check if the batch is split and then calculate the cases and pallets for each split quantity and get the total cases and pallets. Please suggest as to how this can be achieved if anyone has already worked with a similar requirement.
Thanks,
Raj
‎2006 Sep 21 7:12 PM
In delivery line item table <b>LIPS</b> you have the field <b>UEPOS</b> and <b>UECHA</b>, using these feilds you can get the batch split details
‎2006 Sep 21 7:18 PM
Sid,
How can I find the field for the Batch split indicator? I need to know if the Batch split exists or not.
Thanks,
Raj
‎2006 Sep 21 7:28 PM
There is no batch indicator, you need check the value of POSNR with UECHA feild to get the batch split.
Code would be something like:
data: i_lips like lips occurs 0 with header line,
i_lips_split like lips occurs 0 with header line,
x_lips like lips.
loop at i_lips into x_lips.
loop at i_lips where posnr = x_lips-uecha and
charg <> ' '.
i_lips_split = i_lips.
append i_lips_split.
endloop.
endloop.