Skip to Content

How to get the latest records based on from in the Generic data source

Dear All,

I have created a generic data source on top of two tables like KONP and A304 based on infoset query .

This data source worked on the basis record number but i want values of latest record number into data source based on the from date.

Please let me know the code to achieve my requirement.

Thanks

Regards,

Sai.k

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 10, 2014 at 04:01 AM

    HI Sai,

    please refer teh document already how to write FM based extration on generic extractors.

    and here the logic to find the latest records values:-

    -> get the data in an internal table

    ->Sort the internal table data based from date descending

    -> Using READ statement , we can read the first record of the table which is nothign but your latest record.

    Regards.
    Sakthi

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2014 at 04:08 AM

    Hi Sai,

    Using ABAP code you can achieve your requirement.

    Take help from your ABAP team.

    Regards,

    Ganesh Bothe

    Add comment
    10|10000 characters needed characters exceeded