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

Formula during transformation, with no values.


I have a transformation who has a formula for 2 KFs plus currency key, and the result goes to another KF with his currency key. The problem is that in the source DSO not always I have values for the source fields, and the DTP stops with an error. How can validate that I have all the required source filelds with "no empty values" before executing the formula in the transformation?. Any idea on how to write a "more intelligent" formula to avoid this error.?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 24, 2009 at 09:29 PM


    You can go for routines instead of formula.The complex calculations cannot be achieved through formula in the transformation.NOERR , NODIV functions in the Bex cannot be achieved using formula instead you can go for routines.

    Hope this gives you some idea.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I aggree with suresh.

      You can create a start routine to transformation and delete all invalid records there.

      Right Click on Transformations->Click Change

      Clisk on Start Routine Button on Toolbars.

      Write something like:

      delete source_package where < YOUR FIELD NAME > IS INITIAL.

      to the routine.

      Save and activate the TR and DTP also.

      Hope it helps.(do not forget to evaluate the answers you get from SDN)

      Edited by: Baris Gunes on Feb 25, 2009 12:38 PM

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 05:23 PM


    As Suresh and Barris have suggested it could be easily done using a routine.

    Something like:

    If source_fields-KF1 ne SPACE and source_fields-KF2 ne SPACE .

    Result = source_fields-KF1 + source_fields-KF2


    However, if you want to implement it using formula, then you can try something like this:

    IF(source_fields-KF1 = Blank,0,source_fields-KF1) + IF(source_fields-KF2 = Blank,0,source_fields-KF2)

    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.