IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Sum function

    Posted 07/24/06 11:40 AM

    Originally posted by: SystemAdmin


    In the rules, I am able to do a sum on one field such as: =NUMBERTOTEXT( ROUND(SUM( TEXTTONUMBER(Merchandise_Amt_124 Field:Lines Record:VchrDtl:HdrCalcIn) ),2))

    but not on two fields such as:
    =NUMBERTOTEXT( ROUND(SUM( TEXTTONUMBER(Merchandise_Amt_124 Field:Lines Record:VchrDtl:HdrCalcIn) ),2) + ROUND(SUM( TEXTTONUMBER(Vat_entrd_amt_ln Field:Lines Record:VchrDtl:HdrCalcIn) ),2))

    Is this the correct way of adding 2 fields or what need to be modified? Any help will be appreciated. Thanks!
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Sum function

    Posted 07/24/06 11:57 AM

    Originally posted by: SystemAdmin


    Try this version ... I think you are missing a SUM around the two objects.

    =NUMBERTOTEXT(SUM(ROUND(SUM( TEXTTONUMBER(Merchandise_Amt_124 Field:Lines Record:VchrDtl:HdrCalcIn) ),2) + ROUND(SUM( TEXTTONUMBER(Vat_entrd_amt_ln Field:Lines Record:VchrDtl:HdrCalcIn) ),2)))
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Sum function

    Posted 07/24/06 12:01 PM

    Originally posted by: SystemAdmin


    I don't know if this will work, but try to only do one Round & Sum of the two values added together.

    code:1:9aa83b3f8c=NUMBERTOTEXT(
    ROUND(
    SUM(
    TEXTTONUMBER(
    Merchandise_Amt_124 Field:Lines Record:VchrDtl:HdrCalcIn
    )
    + TEXTTONUMBER(
    Vat_entrd_amt_ln Field:Lines Record:VchrDtl:HdrCalcIn
    )
    )
    ,2
    )
    ) [/code:1:9aa83b3f8c]

    John
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Sum function

    Posted 07/24/06 12:16 PM

    Originally posted by: SystemAdmin


    Thanks for the replies! Jennifer that worked!
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange