12-30-2013 4:58 AM
Hi Sap Gurs
I am having an internal table which consits 2 HTS numbers and 1 HTS number is Classification period is from 01/01/2004 to 10/14/2014(MM/DD/Year), And another HTS number classification period is from 10/15/2013 (MM/DD/Year) To 12/30/9999.
Now i am not getting the HTS number in output screen which was active now that is from 10/15/2013. i am getting old HTS number only,
What condition should i write to get latest HTS number based on classification period.
12-30-2013 8:35 AM
12-30-2013 8:48 AM
Hi Rakesh
If you look at your input date you will find two valid number but if you want latest do as follow. Assumption is lates one will have higher number.
Lets says your itab has three field HTS number from and to date
sort itab by hts number ascending.
loop at itab where from_date GE input_date and to_date LE input_date
lv_hts = itab-hts.
endloop.
will give you correct number
Nabheet
12-30-2013 9:48 AM
12-30-2013 11:12 AM
hi Rakesh
How will you find the latest one then according to your data two HTS numbers are valid in this date range
Nabheet