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

batch split for delivery note in Smartforms

Former Member
0 Likes
863

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

3 REPLIES 3
Read only

Former Member
0 Likes
581

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

Read only

0 Likes
581

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

Read only

0 Likes
581

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.