Skip to Content
0
Former Member
Nov 30, 2009 at 08:46 PM

Need some logic for knowing closest Iternary Number for a Delivery

21 Views

Hi Guys,

I have some requirement like below.

Let say for example I have a Delivery with No 8000001 with Iternary(Order) as 5 in workarea.

Let say I have one Internal Table with deliveries and Iternary no as below.

VBELN        ITERN
8000002        2
8000003        4
8000004        3
8000005        1
8000006        6

How to get the value into another ITAB1 for 8000001 with Iternary 5 from the above mentioned workarea has the nearest Iternary value is

 8000006        6 
 OR
 8000003        4 

from the above ITAB.

Thanks in Advance.

Prasad.

Edited by: Dheeru Prasad on Nov 30, 2009 10:04 PM