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

Formula Or Rountine

Hi All,

Using Many data source data loaded into one ODS,in this case i have to write formula or rountine to calculate the Final date field.For example

First Data source and update rules having only the following Info objects

1.Delivery time

2.Travel Time

Second Data source and update rules having only the following Info objects

1.GI date

Actually i have to write the formula like

FinalDate=GIdate-(DeliveryTime+Traveltime)

How can i write this formula in different Update rules.

Anyone Help pls.

Regards

SKT

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 04:12 AM

    It depends on how Final date gets calculated.

    If it gets updated while loading then write it in the update rule

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 03:13 AM

    Hi SKT,

    I believe you need to tell us whether the two datasources are connected to only 1 InfoSource or whether they have separate InfoSources

    Let me propose a solution based on the following assumptions:

    1) The information regarding the delivery time and travel time is already in the ODS (and it's already activated there) before the GI Date gets loaded to the ODS.

    2) The two datasources have a different datasource.

    3) The InfoSource of the GI data has a Final Date KF/Char.

    Given the above assumptions, you can do the following:

    Create a startroutine in the GI Load. In that startroutine, you can read the active table of the ODS (name is /BIC/A<name of ods>00 ) in order to retrieve the Delivery time and Travel time. You can the compute the Final Date using ABAP based on the data already saved in the ODS and the current data in the data package.

    Hope this helps.

    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.