Using of Modulus function in Assignment Expressions

Hello!
While trying to use Modulus function in Assignment Expression I found out that it gives strange results in some cases.
For example, the remainder of 1037739010891 divided by 11 is 0, but Modulus function gives 4, the remainder of 1037739010892 divided by 11 is 1, but the function gives 5 and so on.
Does anybody knows the solution of this problem? Or may be I do something wrong?
P.S. I use MDM 5.5 SP 5 Patch1
Thanks, in advance

Hi, Sanjay!
I think the matter is that the function Modulo operates on integer values, so it somehow converts the value 1037739010891 to integer and use it for calculations.
So, we solved the problem by using some mathematical formulas for calculations.
Still thanks for your answer,
Vika

Similar Messages

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • OWB10GR2 - Error when try to use 'MOD' function in an Expression

    Hi
    I'm trying to use the MOD function in an expression, e.g. mod(44,12), however, when I validate I get the error:-
    Line 2, Col 18:
    PLS-00201: identifier 'MOD' must be declared
    Line 0, Col 1:
    PL/SQL: Statement ignored
    Has anyone else come across this problem, and can anyone please suggest a solution?
    Thanks
    GB

    Not yet, thanks for the suggestion.
    If you use MOD in an expression or Constant, the expression does not validate but the mapping itself does validate, deploy and runs ok. So
    This issue has been reported as a bug therefore for the time being we can just ignore the expression validation message.

  • Oracle:how to use max() function in case expression

    how to use max() function in case expression, Please explain with any example

    Hope this helps and should be self explanatory
    with t as
    (select 1 col,100 col2 from dual union
    select 2 ,100 from dual union
    select 2 ,200 from dual union
    select 3,100  from dual union
    select 3,200  from dual  )
    select col, case when max(col2)=100 then 'with 100 range'
    when  max(col2)=200 then 'with 200 range' end  from t group by col

  • Use Broadcasting bursting functionality for 1:n assignment

    Dear all,
    I want to use the bursting functionality of the Bex Broadcaster in order to send a Sales report to each Region Sales Manager for his sales region.
    Due to the fact that in my case a sales region can have several Regional Manager, it it not possible to use the Master Data of Sales region for the recipient determination within the Bursting setting, because in the MD I can just assign one person to each Sales region.
    Is there another way to broadcast/burst a Sales report to several resp. for each sales region?
    The BI version is 7.0. Any help would be great. thank you in advance.
    Best regards,
    Stefan from Zurich/Switzerland

    Hi,
    You have to assign related Regional Sales Manager  Emp. Codes to "Sales Region" codes in "Maintain Master data".
    If it is done, then you can simply broadcast to "Sales Region" which internally works for Regional Sales Manager.
    Regards,
    Suman

  • Using MS Visual Studio C++ 2008 Express, the "LoadLibrary" function doesn't recognize the NI-VISA DLL: "visa32.dll". I've included all the paths to the DLL. Is there a problem with this C++ compiler?

    I'm using MS Visual Studio C++ 2008 Express.  I've included all the paths to the DLL, "visa32.dll" but the LoadLibrary("visa32.dll") call returns the statement that can't convert character string to LPCSTR (pointer).  I ran the same code with the Portland Group compiler (which I no longer have) and there was not a problem accessing the DLL.  Is there some requirement for the C++ 2008 Express compiler that needs to be met?

    Hello jterry,
    If you compile as Unicode you need to pass Unicode strings to
    Win32 APIs which have LPTSTR or LPWSTR string.
    When you want to write code compilable for Unicode
    and Ansi just enclose all string constants in _T(). In your case:
    LoadLibrary(_T("visa32.dll"))
    You can look at this post on the microsoft discussion forums for more information.  Have a great day.
    O. Proulx
    National Instruments
    www.ni.com/support

  • How to use the divide() function in bpel

    Hi All,
    How to use the divide() function in bpel.
    pls can u give the one sample example

    2 div 4
    Eg;
    <assign name="Assign_1">
    <copy>
    <from expression="2 div 4"/>
    <to variable="outputVariable" part="payload"
    query="/client:testProcessResponse/client:result"/>
    </copy>
    </assign>
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error using custom xpath function with XSL transformations in BPM

    Hi,
    We have created a custom xpath function for use with SOA Suite and BPM. This has been built as per specified within the http://docs.oracle.com/cd/E29597_01/dev.1111/e10224/bp_appx_functs.htm#SOASE11100. We have also reviewed the Oracle Sample for mapper-107-ExtensionFunctions (sample demonstrates the use of user-defined extension functions). This has been registered with jDeveloper and SOA within the oracle.soa.ext_11.1.1 (run ant to include in oracle.soa.ext.jar)
    We ideally want to use this is BPM within an xsl. However when consuming this function is either BPEL or BPM using an xsl, the xsl fails with an error such as:
    XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/gwCustomXpathUtil_rev1.0/xsl/Transformation_1.xsl<Line 9, Column 113>: XML-22043: (Error) Extension function error: Method not found 'getWeekDayDate'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    In an Assign it operates fine and returns the expected result. We have included a combination of both of the Config files (ext-mapper-xpath-functions-config.xml and ext-soa-xpath-functions-config.xml) in the META-INF folder, however neither allow the use of this function in the XSL.
    I believe there may be an issue getting the custom xpath functions within XSL files. Hence I have also raised an SR. Has anyone experiences of this?
    Our SOA / BPM suite environment is using 11.1.1.6.4 and has the following patches applied:
    13801175
    14406487 (11.1.1.6.4 SOA Bundle)
    13896993
    13088538
    Regards Dave
    Edited by: DavidGaskell on Mar 14, 2013 10:08 PM

    Hi All,
    I am also facing the same issue...Experts can you please help us.
    hi DavidGaskell, did you find any resolution, if so can you share it with me.....
    Thanks,
    RR

  • Help with assignment expression

    Hi All,
    I'd like to ask you for help regarding one assignment in MDM.
    We have text field: "Material_Long_Description" (as a concatenation of 8 attributes) - the field length is unlimited, e.g.:
    "attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8".
    We need to have "Material_Short_Description" - limited to 40 symbols so I have created assignment:
    LEFT(Material Long Description,40) and the result is: "attribute1,attribute2,attribute3,attribu",
    but we also need not to have cut one of the attributes on the middle and half attribute and teh comma(",attribu") to be removed - the aim is in this case to have: "attribute1,attribute2,attribute3".
    I've tryed with function FIND but didn't find solution.
    This was implemented in SQL Database with the following query:
    set Material_Short_Description = left(Material_Long_Description,(40 - locate(",", reverse(left(Material_Long_Description,40)))))
    and it works perfectly well, but such a function "reverse" does not exists in MDM.
    Any suggestions how we can implement this logic in MDM without API programing?
    Thanks in advance,
    ILIN

    Hi llin,
    You are retrieving these attributes values which you have given in Attribute text values for attribute name in taxonomy mode. Why don't you change these values there itself in taxonomy mode for Attribute values.
    like you have Attribute A who has text values as 3 - 4 and 5 - 6, change it to 3-4 and 5-6 rather than using any logic in assignment expression.
    If you still want to use assignment expression for the same then it would be really lengthy but it is working fine at my end.
    I denote Attribute1 = A1, Attribute2 = A2 and so-on till Attribute8 = A8
    This expression you will run on Material_Long_Description, i mean on text large field.
    I understand you don't want to maintain space for Short description, but i would suggest as you populate concatenation of attribute values data on Material_Long_Description, why don't at this point of time you take care of space and populate your Material_Long_Description free from space character. Further when you populate this data in Short Description, you just need to use logic as given by me above and don't need to bother about space character for Attribute values as they are already corrected while populating Material_Long_Description.
    Assumption:
    I am assuming whenever "-" hyphen character comes it is always append and prep-end with space character " ".
    I mean, you have always values as "3 - 4" or "3-4" in attribute not as "3 -4" or "3- 4"
    Procedure:
    Create an Assignment: give the Assignment field as Material_Long_Description.
    Now right click on this assignment-->Add Branch.
    Select the Branch Value of that category: Write Assignment Expression here in this Add Branch Assignment as given below:
    IF(MID(A1,FIND(A1,"-")-1,1)=" " AND
    MID(A1,FIND(A1,"-")+1,1)=" ",
    LEFT(A1,FIND(A1,"-")-2)
    &MID(A1,FIND(A1,"-"),1)
    &MID(A1,FIND(A1,"-")+2),
    A1)&","&
    IF(MID(A2,FIND(A2,"-")-1,1)=" " AND
    MID(A2,FIND(A2,"-")+1,1)=" ",
    LEFT(A2,FIND(A2,"-")-2)
    &MID(A2,FIND(A2,"-"),1)
    &MID(A2,FIND(A2,"-")+2),
    A2) and so-0n till 8th Attribute(A8)
    Logic: 1stly it will look Attribute value which has space character " " before and after Hyphen "-", eg "3 - 4", then it will populate value as 3-4, else if it doesn't find space character " " before and after "-" Hyphen it will just put there same attribute value. e.g if it is already 3-4, it will just place it same as 3-4.
    Just check this above expression and revert with the result, It is working fine at my end.
    Thanks and Regards,
    Mandeep Saini

  • Assignment Expression Syntax Guide

    Hi,
    Can somebody point out the material on Assignment Expression syntax in MDM. Where i can find list of all available operations with some sample code. Somebody pointed out in another thread the IS_UPPER and UPPER are functions but they don't appear in the drop down.
    I also need to know:
    1. How can the items be accessed that donot have a direct relation with the table of the Assignment.
    2. How can i update multiple fields in single assignment (especially since we don't have assignment groups).
    I am using SAP MDM 5.5 SP5 P4
    Thanks
    Yasir Rizwan Saqib

    Hi,
    The TS is a hidden property of the Step.
    You can unhid this property by a setting in the Station Options select the Preference Tab.
    You actually dont need to enable this setting, you could of just typed it in (, the .TS.id I mean). But when learning it is handy to see all the properties.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to make use of SE37- Function Module & how to find out the table?

    Hi ,
    1.Could anyone help me what's this SE37-Function module is all about,How to make use of this?
    For Eg,If i want to delete a BOM permanently from the system then I have to use the Function module CM_DB_DEL_FROM_ROOT_BOM.
    But after giving the particular name what should i do?
    Please help me.
    2.How to find out the respective table for a particular field sya for T code-COGI, T code MFBF,where its values are getting populated.,Please help in this issue.
    Thanks in adavnce for spending some time
    Raj.S

    Hi Raj
    Function Modules
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    You can execute function module in SE37ie you can perform the activiites defined in the function module by executing it.
    By deleting BOM you mention the FM name in se37 and execute. In some function module it will ask input parameters as developed in the program , you have to give the input parameters and execute.

  • Problem in using query-database() function in Transformation

    Hi All,
    I am using JDev and SOA 10.1.3.4.
    I have an async process.
    In that I am doing a transformation in which source is InputVariable and target is result.
    In Transformation I am using query-database function to fetch a record from DB and am assigning that to result.
    *<xsl:value-of select='orcl:query-database(concat("select ename from emp where empid=",/ns1:DBXSLProcessRequest/ns1:input),false(),false(),"jdbc:oracle:thin:scott/tiger@localhost:1521:abcd")'/>*
    I am not getting any error but query-database is not returning any thing I maen it is returning null.
    If i run that query in SQL prompt it is returning the empname.
    Please help me out.
    Regards
    PavanKumar.M

    Hi Pavan
    I tried following in BPEL transform actvity's XSL file, and it works fine and returns the sysdate for me.
    <xsl:value-of select='orcl:query-database("select sysdate from dual",false,false,"jdbc/myDS")'/>
    Can you try above in new XSL file of Transform activity and let me know its gives you the result? if it works you can start making changes according to your requirement.
    steps to follow:
    1.create connection pool in EM, and make sure its working fine by using test on connection pool.
    2.create Datasource and point to above created connection pool. and restart the oc4j_soa
    3.rename the xsl file name of transform activity in BPEL and use above query-database function.some times xsl files are cached even if you make changes it will not take effect so for testing if you rename it will be good.
    Thanks
    Seshagiri.Rayala
    http://soabpel.wordpress.com/

  • Using HS.Exp function to write data to a Consolidated Account

    Hi,
    Just wanted to know whether i can use the HS.Exp function to write data to a consolidated account?
    Thanks

    Hi Mau,
    In order to write data to a consolidated account, you can use HS.Exp function in rules which puts data into a combination of Account, ICP, and Custom1...4 members. The syntax is: HS.Exp "DestPOV = Expression"
    You might find useful the HS.Con function which puts data into the [Proportion] and [Elimination] Value dimension members and can also be used in Consolidation rules. The syntax is: Call HS.Con ("V#[Elimination]",-1*dPCon,"")
    Regards,
    Thanasis

  • How to use the set functions effectively in webi ,please let me know with detail

    how to use the set functions effectively in webi ,please let me know with detail

    Hi,
    we use use set functions on heirarchies with aggregate functions mostly .
    If you include member_set, Min returns the minimum value of the aggregated data for all members in the member set.
    Member_set can include multiple sets separated by semicolons (;).
    The list of member sets must be enclosed in {}.
    If the member set expression does not specify a precise member or node, the hierarchy referenced must be present in the table, then the member set expression references the current member in the hierarchy in the table. If the hierarchy is not in the table, the function returns the message #MULTIVALUE.
    Eg .
    1)     Ancestor
    =Sum([YTD] ; {Ancestor([Test Hierarchy];2)})
    2)     IsLeaf
    =[Test Hierarchy].IsLeaf
    You can use this function when you want to show your Measure only at lower level .
    3)     .Depth
    =[Test Hierarchy].Depth
    This is also function used with hierarchy to find Level of Members .
    Follow this link for PDF reference .
    Page 147
    https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CDIQFjAB&url=https%3A%2F%2Fhelp.sap.com%2Fbusinessobject%2Fproduct_guides%2Fboexir4%2Fen%2Fxi4sp5_ffc_en.pdf&ei=nBAUU-iUM4WWrAeMuoCoDg&usg=AFQjCNHakXsEjd_yUk2y3lVdibf3PXpEOA&bvm=bv.61965928,d.bmk
    search on SCN this question was discussed before also one those links .
    http://scn.sap.com/thread/3183380
    Hope this will help you .

  • How to use type, packages, functions, and procedures in another schema ?

    I have two target schema in one OWB project, such as A and B. In a mapping of A, I would like to use some types, packages, functions, and procedures from B. I have tried the method of synonym as suggested, but I could not find the metadata of these when importing ... The only type of synonym I can import is the synonym for table. Is there a bug for synonym?
    If I cannot use synonym for this issue, is there another way to solve the problem?

    Now, in some instances you will absolutely need to create the second module as Carsten describes, however it should also be noted that you can reference objects in things like Expressions even if you have not loaded up the metadata. It is only when you need strong binding that it becomes neccessary to import objects. For everything else, as long as the reference will resolve at compile-time then you are good to go.
    For example, I have a function in one target schema (S1) and a private synonym to it in another(s2). A mapping in the S2 schema has an expression object that uses the synonym to the function in the expression property for a couple of the output attirbutes. The synonym has not been loaded into metadata - indeed OWB has no knowledge of its existance. But it resolves at compile time so the mapping validates and generates successfully.
    Mike

Maybe you are looking for