cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member226980
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member183012
Active Contributor
0 Kudos

Hi Sai,

Using ABAP code you can achieve your requirement.

Take help from your ABAP team.

Regards,

Ganesh Bothe

Former Member
0 Kudos

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