Functionality of Data Rule

In the expression builder of a data rule,I have attempted to create a data rule of the form:
"THIS"."VALUE" not in
(select ANOTHER_FIELD FROM ANOTHER_TABLE)
Using this construct I get an error message:
VLD-1114: The filter condition for FLT_VALIDATION_20_1 cannot contain a subquery SELECT statement.
Mapping components do not allow the use of subqueries inside user-defined expressions except in the Aggregation operator. An example of a subquery is a WHERE clause within a SELECT statement.
Is there any other way to create data rule expressions involving other tables?
OWB version 10.2.0.1

no you will have to use a filter or use a view to do this filter before you start any process within your mapping then it will be the easiest thing to do.
Cannot use expression builder
Edited by: Darthvader-647181 on Dec 10, 2008 5:50 AM

Similar Messages

  • Dynamically call function module in the date rule

    Hi Experts
    I am currently working on service request.I am facing a problem in the date management there.In my service request i have 5 statuses .One of my status is "Pending with consumer".I am using duration settings of service request.By duration settings , i am calculating the duration for which its pending with consumer.I am having 2 response profile one is 24*7 and other is having 9 working hours.In the service request from the SLA configuration i am calculating the escalation date & Time .I need to add the pending with consumer duration with the escalation date and time.I am facing a problem , i am explaining whole problem ..
    Let say if the pending with consumer duration is  1440 minutes(that is 24 hours) .I am adding the minutes to the escalation date through the date rule.
    I am facing problem that if the service profile is 24*7 then there is no problem but if it is having the 9 hours working service profile then after adding the minutes to it the escalation date is changing to 4 days ahead which is wrong.
    I need to add only those minutes for which it is pending with consumer in working hours for the 9 hours service profile
    I need to dynamically determine the working hours from the duration then add it to escalation dates when the status is changed from pending with consumer.
    Please suggest a badi will work or how to do it.
    Is there any way so that while adding duration's in the date rule i can determine if the service profile is 24*7 then i will directly add the durations or else if service profile is 9 hours then i will determine the working hours from the duration" pending with consumer" then i will add.
    Is there any way so that i can call any custom function module then write my logic there
    Its urgent as i need to give demo.I will appreciate a quick reply.Please reply
    I will assign points as soon as i will get reply.

    Hi sridhar,
    the explanation already given is correct and good. Small add-on:
    All functions called during one LUW with addition IN UPDATE TASK are stored together with their actual parameters in a temporary memory area. The moment a COMMIT WORK is issued, the functions are released to be executed by a so-called update task which is running in the background. This explains why functions called in update task never return anything, no SY-SUBRC and no export or table parameters If a function called in update task raises an exception or runs into an error the calling user will get an express message informing about this. Also, all database updates done by this update process are rolled back to keep consistency.
    This proceeding helps to keep database tables consistent and allows the user to keep on doing his work before all database updates are complete. You may have seen messages like "material will be changed" after saving. If you open the same material immediately, you'll get a message "object locked by...<yourself>". This means the update task is still running.
    Regards,
    Clemens

  • How to include the COUNT Function in business rule

    Hi all,
         I am working in oracle data quality in ODI.
         This is regarding the business rule in Data quality.
         I need to count the number of records when my status_type="A".
         But when i include the COUNT function in business rule.
         I find the following error as "*Unspecified Count Function*".
         Waiting for ur valuable reply.
         Thanks in advance,
         JayaPradha P

    Hi,
    The following is the condition I have to be used
    For eg:*Count records in DIM_SERVICE_ORDER_CODE where service_type = ‘P’*
    But when i use COUNT function.
    Im getting the error as "Unrecognised function count"
    waiting for ur valuable reply
    Thanks in advance,
    JayaPradha p

  • Different date profile and date rule in one transaction type

    Hi CRM Experts,
    We have requirement that quotation should have validity date based on the contry.We have only one quotation type which will be used in all county.
    Now i need to know how can we use different date profile and date rule in one quotation.
    Ex -
    When the quotation created for russia - expiry date = today + 10 days
    when quote created in china = expiry date = today + 25 days
    Can it be possible in standared configuration? if not then give me some insight how to achive this?
    Regards
    Rajesh

    Hi, Rajesh.
    You can create a Date Rule based on functional module.
    Look at example in SAP standard: Date Rule "WTY004 Purchase Date Object":
    <?xml version="1.0"?>
    <SAPTimeRule>
      <ABAPTimeRule function="CRM_WTY_IL_TIMERULE_03"/>
    </SAPTimeRule>
    Hope this helpful!

  • How to Define new Date rules

    Hi ,
       I have a requirement in my project, where in i have to create some new date rules. I've searched the whole web to find any document which explains the XML for Date rules but couldn't find any. Does any one know what that XML means, and how to create new Date rules ?
    Please reply
    Krishna-

    Hi
    it just calculates new dates base on reference dates or abap function modules.
    In IMG in Date management node you can create your own date rules.
    Best would be to copy existing one and than modify it.
    Please read this thread about this: Date rules editor - file format documentation availability
    Regards
    Radek

  • XML Date Rules

    Helooo
    Does anybody know if there is any documentation available
    on the XML date rules, meanings of tags and
    attributes and general functionality?
    If so please send that to [email protected]
    Thanks,
    Bhargava

    Hello Manuel,
    I am right now working out some in-house date rules and I would be greatful if you could send me the documentation you have on XML Date rules? Email address is
    [email protected]
    Thanks,
    Yves

  • Reading the reference GUID (Item Guid) within an ABAP Date Rule

    I have created a new date rule in which a Z-function module is called. Within the function module I need to read data from the order (such as the Ibase Component). However I noticed that the within the Z-function module the import parameter provided by the system is only the 'context' class which does not contain an attribute for the item guid for which the date rule applies.
    How can I get the service order item GUID within the ABAP date rule (i.e. function module)?
    Thanks,
    Patrick

    Hi Patrick,
    Could you share me how you call Z-FM in your own date rule? I am looking for a solution for a simple senario - just today's date + duration which is stored in a product master data. I am thinking your solution might be suitable. Thanks a lot.
    Best regards,
    Allan

  • CRM_APPT_MAINTAIN_MULTI_OW in date rule executes rule again

    Hi, I´m facing a problem changing the dates of a document with a date rule FM, inside this FM I´m using CRM_APPT_MAINTAIN_MULTI_OW  for changing the dates, but it makes the date rule FM executes again, I have some validation for the second execution of the rule in order to save the order in place changing the dates again, but I don´t think this is the best approach to solve this.
    The dates changes ok, but when the user saves the document manually (Inside the FM I save the order and make a commit) the dates appears duplicate.  Any help will be appreciated, thanks !

    In customazing of your date profile (spro>crm>basic functions>date management>define date profile) set for the date type to which you assigned date rule the option "Determine Date Only Once" to active. Then date rule will be executed only once.
    Regards.

  • How to add two duration in a date rule

    Hello Experts
                        I need to add two duration's in a date rule . previously i have only added a single duration to a date type.The code i am using is
    <?xml version="1.0"?>
    <TimeRule>
    <TimeRuleSource>
      <ruleline>
       <AssignTimeExp>
         <VarTimeExp name="RESULT" position='F'/>
         <MoveTimeExp direction="+">
           <VarTimeExp name="SRV_CUST_BEG" position='F'/>
           <VarDuraExp name="ZDURATION1"/>
         </MoveTimeExp>
           </AssignTimeExp>
      </ruleline>
    </TimeRuleSource>
    </TimeRule>
    I need to add ZDURATION1+ZDURATION2 to SRV_CUST_BEG . I am new to XML Please help
    I will reward points as soon as i get the reply.
    Thanks in Advance

    Hi Rashmi,
    Please check http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=326600223.
    Regards,
    Bhushan

  • Error in mapping generation when using a data rule

    I hope someone can point me in the right direction on this one. I've searched all over but can't find a similar problem anywhere.
    This is OWB Client 10.2.0.1.31 and repository 10.2.0.1.0 in a 10g SE database . I have a table on which I have defined a data rule, which is deployed in the database along with its corresponding error table. The rule I have used is the built-in IS_DATE and it is applied to a VARCHAR2 field that will store a date in a specific format. I have defined the table as an operator in a mapping, and set the IS_DATE data rule action to MOVE TO ERROR. When I try to deploy the mapping I get the follwoing errors in the log:
    Warning ORA-06550: line 244, column 4:
    PL/SQL: ORA-00907: missing right parenthesis
    Warning ORA-06550: line 221, column 3:
    PL/SQL: SQL Statement ignored
    Warning ORA-06550: line 3112, column 132:
    PLS-00103: Encountered the symbol "DD" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in is mod remainder not
    range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
    and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
    SUBMULTISET_
    The symbol "." was substituted for "DD" to continue.
    When I look at the generated code, there are lines like this one:
    not (wb_to_date("table"."column", Month dd, RRRR, Mon dd, RRRR, MM-DD-RRRR, MM/DD/RRRR, YYYY-MM-DD, YYYY/MM/DD) is not null
    Why is OWB not putting single quotes around the data formats from the built-in data rule? Is there something fundamental I'm missing in my warehouse model?

    Hi
    This is bug 5195315, which looks to be fixed in a 10.2 patch. If you can pick up the latest 10.2 patch there is like 3 years of fixes worth picking up.
    Cheers
    David

  • Pivot table in BI Publisher: Different aggregate functions in data columns

    Hi, everyone!
    I`ve got some troubles with pivot table in my rtf-template.
    Here is my xml:
    <ROWSET>
         <ROW>
              <_BI_SUBRF_MO_._MUN_NAME_>МО Петроградский р-н</_BI_SUBRF_MO_._MUN_NAME_>
              <_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>714000003</_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>
              <_BI_MONTH_DEBET_._BI_DEBET_SUM_>0.0</_BI_MONTH_DEBET_._BI_DEBET_SUM_>
              <_BI_CALENDAR_._YEAR__>2009</_BI_CALENDAR_._YEAR__>
              <_BI_CALENDAR_._MONTH__>8</_BI_CALENDAR_._MONTH__>
         </ROW>
         <ROW>
              <_BI_SUBRF_MO_._MUN_NAME_>МО Петроградский р-н</_BI_SUBRF_MO_._MUN_NAME_>
              <_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>714000004</_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>
              <_BI_MONTH_DEBET_._BI_DEBET_SUM_>165.58</_BI_MONTH_DEBET_._BI_DEBET_SUM_>
              <_BI_CALENDAR_._YEAR__>2009</_BI_CALENDAR_._YEAR__>
              <_BI_CALENDAR_._MONTH__>7</_BI_CALENDAR_._MONTH__>
         </ROW>
         <ROW>
              <_BI_SUBRF_MO_._MUN_NAME_>МО Петроградский р-н</_BI_SUBRF_MO_._MUN_NAME_>
              <_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>714000004</_BI_PERS_ACCOUNT_CARD_._BI_PAC_NMB_>
              <_BI_MONTH_DEBET_._BI_DEBET_SUM_>165.58</_BI_MONTH_DEBET_._BI_DEBET_SUM_>
              <_BI_CALENDAR_._YEAR__>2009</_BI_CALENDAR_._YEAR__>
              <_BI_CALENDAR_._MONTH__>7</_BI_CALENDAR_._MONTH__>
         </ROW>
    ...... and so on..
    </ROWSET>
    In the pivot table i`d like to see one row for every BISUBRF_MO_._MUN_NAME_ using BICALENDAR_._YEAR__ and BICALENDAR_._MONTH__ as measures and sum of BIMONTH_DEBET_._BI_DEBET_SUM_ and count of unique (or at least just count of) BIPERS_ACCOUNT_CARD_._BI_PAC_NMB_ in cells.
    I create a pivot table using wizard, everything ok except one thing: as i understand, in pivot table for data in rows we can use only one kind of aggregate function e.g. only sum or only count.
    Is there any way to use different aggregate functions in data cells?
    Thank you

    As you can see, when we use crosstab tag we can specify only one aggregate function for data cells.
    Is there any way to get in XSL-FO (where we can what really happens) instead of:
    <T1>
    <xsl:value-of select="sum(current-group()/_BI_PERS_ACCOUNT_CARD_._BI_PAC_UNID_)"/>
    </T1>
    <T2>
    <xsl:value-of select="sum(current-group()/_BI_MONTH_DEBET_._BI_DEBET_SUM_)"/>
    </T2>
    this
    <T1>
    <xsl:value-of select="sum(current-group()/_BI_PERS_ACCOUNT_CARD_._BI_PAC_UNID_)"/>
    </T1>
    <T2>
    <xsl:value-of select="count(current-group()/_BI_MONTH_DEBET_._BI_DEBET_SUM_)"/>
    </T2>
    Edited by: user12115038 on 26.10.2009 8:08

  • Issue in Date rule creation

    Hi,
    We are implementing TASK ZT00 (Copy of standard transaction type 1003) in intercation center.
    In the the standrdard date profile 000000000005, We have two date types ORDERPLANNED and ORDERACTUAL.
    In the task transaction, planned START DATE and planned DUE DATE are calculated (default CURRENT date) based on the date rule 000000000002(Panned Date (Activities).
    Now my requirement is calculate only planned START date (as default CURRENT date) and and not to calculate planned DUE date (as default CURRENT date) . What I need to do in the date rule to acheive this.
    Regards
    Iswari.

    Hi Iswari,
    Have you been able to solved this requirement?
    I am facing with the same requirement, so If you have a solution I would really appreciate it if you share it.
    Thanks,

  • Using variables in data rules

    Hi,
    I have set-up a data transfer mechanism between serveral Essbase cubes that uses on the source cube a report script to generate a file and on the target cube imports this text file using a data rule file.
    The current problem I'm encountering is that it does not seem to be possible to limit down the transfer to a single period. In the report script, there's no issue because that is recognizing the server variable easily.
    But on the import side I have not found a method to have a single column dynamically writing into current period only. Is there no other option than someone going into this rules file and change the hardcoded fieldname each month?
    Thanks for any input
    Erik
    Belgium

    You can use substitution variables in version 9 of Essbase but not in earlier versions. Before v9 we'd get around this by using aliases e.g. CurrMonth. Each new month we'd move the alias to the next month.
    "But on the import side I have not found a method to have a single column dynamically writing into current period only"
    I'm assuming that you've created a text column here and filled it with a month value? It would be better to not have a month column and just set the month in the Header of the Data Load Settings.
    Hope this helps.
    Gee

  • Support of PL/SQL Functions in Data Modeler

    Hello,
    Sorry if this question has already been answered, I searched the forum but got 215 hits on data modeler + pl/sql functions.
    So my question is:
    Stored Procedures are already supported by the physical model (11g) of data modeler, but I could not find any method
    to create pl/sql functions via data modeler - neither in the documentation nor on the user interface. Is this
    currently not supported?

    Is this currently not supported?There will be support for functions and packages in next release.
    Philip

  • Functional and data differences between W_GL_BALANCE_F and W_GL_OTHER_F

    Hi:
    Can some explain what the functional and data-source differences are between W_GL_BALANCE_F and W_GL_OTHER_F? Both seem to group by GROUP_ACCOUNT_NUM.
    Thanks.

    That is not possible; all transaction in GL Other will end up in GL Balance.
    The two tables are essentially having the same data but at different grain. Two main differences:
    - GL Other have individual journal transactions; GL Balance have them summarized to the account level.
    - GL Other is truly additive since its just individual journal transactions. i.e. you can just sum() any number of transactions and wont double count a trx; GL Balance is a monthly snapshot table. i.e. it provides account balance for all accounts for every month end, so you can never add two snapshots.

Maybe you are looking for