Skip to Content
author's profile photo Former Member
Former Member

Displaying HTS number based on Date field.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2013 at 08:35 AM

    Please help me i am great need of these answer.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2013 at 09:48 AM

    Hi nabheet madan

    We cannot do HTS number sorting.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.