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

Adding CALWEEK to extraction between ODS and CUBE

I have an ODS that contains up-to-date data from some of the LIS extractors. We store the status of the data in a cube on a weekly basis (a so called snapshot) for historic reporting. Therefore, I must do a full dataload from the ODS to the CUBE.

For internal reasons we now want to be able to do a preliminary load on friday and a definitive load on monday. The load on monday should remove the load from friday automatically.

The problem that I experience is that in the CUBE there is no selection that shows me the weeknumber. Therefore automatic removal of the preliminary load is difficult.

Any ideas?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2005 at 03:46 AM

    I think you can delete the Friday Request depending on the date of the Request (SY-datum - 3)and not by weeknumber. Because you are deleting on monday and reloading on Monday.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2005 at 04:36 AM

    Hi,

    You can delete the previous request.

    See here an example:

    delete-request-older-then-eg-10-days

    Though, it is for a cube, the procedure for an ODS is the same.

    Best regards,

    Eugene

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 30, 2005 at 06:10 AM

    Hi,

    As given in the code

    Put the condition before the function module where it has been put as comment * perform check if request older than 10 days

    IF (SYS-DATUM - TS ) > 2

    ....

    Sachin K

    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.