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

Extract last date from DSO - Number ID through ABAP

Hi everyone.

I want to delete some records that i dont want to write to DSO through ABAP routine (transformation or DTP). For example, I am reading a number id and a date (yyyymmdd), but for that number I have many dates, and I wanna store the maximun date from all of them. For example:

ID Date

111 20111020

222 20111021

333 20111025

444 20111105

555 20111102

In DSO i want to store '444 20111105'. i tried this with a delta extraction , but the DSO receive any record. It seems the transformation read the DSO at random.

Appriciate your response

Thanks

Ignacio

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 17, 2011 at 05:14 AM

    Hi,

    You can write ABAP code to filter out the records in the start routine of a transformation to DTP.

    1. Sort the Id field ascending and Date field Descending.

    2. Delete the adjacent duplicates comparing Id field.

    Regards,

    Suzitha.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Perform a "selective delete".

      Right click on DSO and goto Manage. Next, goto the Contents Tab. Then click on the selective delete button. This will ask you what criteria to use for the deletion. Enter your time restrictions and your'e good to go.

      Cheers,

      B

  • Posted on Nov 21, 2011 at 08:05 PM

    Hi,

    In the start or end routine you can do the sorting based on the date and update to dso (high value ) , you can delete the rest of package .

    Regards,

    Satya

    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.