Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Subtracting from a date

Hello

I am writing a start routine in BI in which i dont want any records which are older than 2 days.

So what i am doing is this

DATA lv_date type d.

loop at SOURCE_PACKAGE assigning <source_fields>.

lv_date = <source_fields>-CHANGED_AT - 2.

if <source_fields>-CREATED_AT <> lv_date.

delete SOURCE_PACKAGE.

endif.

endloop.

Now i have checked that the format of the <source_fields>-CHANGED_AT is dd.mm.yyyy. this doesnt seem to work. Please can someone suggest me something

Tags:
Not what you were looking for? View more on this topic or Ask a question