Schema rules and_condition

Has anyone gotten the get_compatible function within the and_condition to allow only those LCR's compatible with a release of the database?
I'm on 10.2.0.2 and I've created and dropped this rule numerous times with and without the and_condition. When I have the and_condition specified the capture process does not capture the dml changes to a table in the schema, when I don't have and_condition defined it works fine.
dbms_streams_adm.add_schema_rules(
schema_name => 'WIP',
streams_type => 'CAPTURE',
streams_name => 'XWII_ERP_CAPTURE_STREAM',
queue_name => 'XWII_ERP_CAPTURE_QUEUE',
include_dml => true,
include_ddl => true,
source_database => 'TWOR9I',
and_condition => ':dml.get_compatible() >= dbms_streams.compatible_10_1()'
Any thoughts would be greatly appreciated.
- Brian

Found the problem....
inclusion_rule => false
Added that to the schema rule and it created it as a negative rule set and appears to be working now.

Similar Messages

  • Issue in Absence Evaluation Scheme Rules

    Hi All,
    I have set up Absence evaluation scheme rule. When I try to maintain absence for one employee(hiring01.12.2013) from 02.01.2014 to 01.08.2014. when i try to save record i am getting message"Entitlement Used (issued on 29.05.2014): NO entitlement days left of 'Nil Pay (Default)' for 'Only OSP' absence
    Message no. HRPSGB_ABS082".
    Here Band need to change after 5 months but it is not happening. After 5 months it is showing all nil pay, instand of 100% sick ness.
    Scheme
    Rule
    Text
    Start Seniority
    End Seniority
    Unit
    abc
    1
    0 to 5 Months Service
    0
    5
    Months
    abc
    2
    6 to 11 months
    6
    11
    Months
    I have selected first rule double click on entitlement band. In side i have maintained
    Entitlements - 5 months
    PS Grouping - 8
    absence grouping - .S
    Order of prority - 1
    Payment Band - Nil Pay
    From Where - Absence start date linking
    How Far Bck/Fwd - Calander year (No link)
    Non-Qualifying Days - Non-working(sick)
    warning period - For change of band
    I have check GLOSS and COVER feature and everything fine.
    Could you please advice.

    Hi Harish,
    I have done but no luck.
    I am getting same error.
    Regards
    BT

  • Leap Year and Schema & Rules on Time Management

    Hello,
    On Time management, do you know how to configure on Schema & Rules if the year is a leap year?
    Thanks, julien
    Edited by: Julien on May 6, 2009 6:33 PM

    Thanks for all,
    My solution below :
    ZFA/ 008 ACTIO ZFAF                    Leap Year
    ZFAF*****         PPCYGZFA1  NEXTR A
    ZFAF*****        APPCYGZFA2  NEXTR B
    ZFAF*****        BPPCYGZFA3  NEXTR C
    ZFAF*****        CZPAYTP 1
    ZFAF1****         DHRS=DINR2 HRS-DINR4 HRS+DINR6 ADDDBINR7ZHRS?1
    ZFAF1*****         HRS=365   ADDDBINJAZ
    ZFAF1****=         HRS=366   ADDDBINJAZ
    ZFA1*****         ZHRS=BCURYRHRS/400   ADDDBINR1ZROUNDH>60 PAYTP 1
    ZFA11****         DHRS?DINR1
    ZFA11*****         HRS=0     ADDDBINR2Z
    ZFA11****=         HRS=1     ADDDBINR2Z
    ZFA2*****         ZHRS=BCURYRHRS/100   ADDDBINR3ZROUNDH>60 PAYTP 1
    ZFA21****         DHRS?DINR3
    ZFA21*****         HRS=0     ADDDBINR4Z
    ZFA21****=         HRS=1     ADDDBINR4Z
    ZFA3*****         ZHRS=BCURYRHRS/4     ADDDBINR5ZROUNDH>60 PAYTP 1
    ZFA31****         DHRS?DINR5
    ZFA31*****         HRS=0     ADDDBINR6Z
    ZFA31****=         HRS=1     ADDDBINR6Z

  • Understanding & developing the payroll Schema & Rules in India

    Hi
    Where do we get the complete details of the IN00 (with some discription)? How do we understand the coding ? If I navigate from the shcema to the rule , the rule appears as one line command and i enter the rule (pe03) i get a different format... 
    New to this area. Please help
    Thanks
    YGP

    Hi,
    >Adding to the post of Sikindar and Remi, you can also search for articles published on Schemas and PCRs.
    Regards
    Chandrashekar

  • Schema rules for a single DOM element

    When traversing through DOM nodes is it possible to somehow detect for the current node
    if it is needed or not according to XML schema or
    in case of element or attribute node what is the minimum text content length according to XML schema
    Harri

    Try using the Customer Enhancement

  • About schemas, rules and queues

    Hi experts,
    I'm a SAP HCM newbie and would like to know about the following:
    1. What do we exactly do with payroll schema? I understand that we customize the country specific schemas (US in my case) but can someone provide examples of real life customization that we will have to encounter?
    2. Similarly, example of PCRs?
    3. What are queues and where do we use them?
    Points shall be awarded! Thanks!

    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_REGEL.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_SCHEMA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYUS/PYUS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf

  • Length of service calculation in payroll schema rules

    SAP allows you a few options with regard to length of service in months.
    F01KJ looks at date type 01 in infotype 0041.  It calculates months service based on complete months.  If you use option "N" as opposed to "K", then it counts complete and partial months.
    My client wants an option in the middle.  If a person is employed between the 1st and 15th of January, then in December they want the person to get a full bonus (12 months).  If the person is employed between the 16th and 31st of January, then in December they want the person to be paid 11/12 of a bonus.
    Is is possible to query the day of a date only and then based on if it's < 15 do x otherwise do y?

    What is F01KJ?

  • Schema and calculation rules in Payroll

    hi experts
      what is schema ? what are the function  of schema in payroll? How to set calculation rules for payroll? pls help in detail.
    points will be awarded for useful answers.
    Thanks

    Hi Das,
    Schema is is set of rules means when ever you run the pay roll driver for eg: US driver RPCALCU0, in selection screen you have to mention the pay roll driver for US u000 in schema field.
    when ever run the driver the set of rules executed and according the rules payroll is calculated.
    OR
    Each country payroll version supported by SAP has a program called the "payroll driver" that calculates payrolls. For example, in the U.S., the payroll driver is RPCALCU0, in Mexico it is HMXCALC0, and in Canada RPCALCK0. Each one is different, but they share a common core of functionality. The job of the payroll driver is to process payroll functions as specified in a payroll schema. These payroll functions each perform a specific job, for example - reading data from infotypes, calculating taxes, and processing wage types. Some functions process payroll rules. Rules are a collection of payroll operations. Each operation does a small unit of work, such as multiplying a wage typeu2019s number by a rate to get an amount.
    Schemas are edited with transaction PE01
    Schema rules PE02
    Functions and operations are maintained with transaction PE04.
    If anything require let me know
    Regards
    Sudheer

  • Formula's and Calculation rules in Pricing.

    Hi All,
    Could anyone who is familiar with pricing please let me know if there is a mapping between the routines(Requirements/Formulas) that we have on the R/3 system and the CRM system, Requirements and Formulas.
    We are trying to replicate the pricing procedures in the CRM 2007 system, but we are having a problem in replicating the formulas and requirements. Kindly help us, useful answers will be suitably rewarded.
    Regards,
    Thiru

    Hi Das,
    Schema is is set of rules means when ever you run the pay roll driver for eg: US driver RPCALCU0, in selection screen you have to mention the pay roll driver for US u000 in schema field.
    when ever run the driver the set of rules executed and according the rules payroll is calculated.
    OR
    Each country payroll version supported by SAP has a program called the "payroll driver" that calculates payrolls. For example, in the U.S., the payroll driver is RPCALCU0, in Mexico it is HMXCALC0, and in Canada RPCALCK0. Each one is different, but they share a common core of functionality. The job of the payroll driver is to process payroll functions as specified in a payroll schema. These payroll functions each perform a specific job, for example - reading data from infotypes, calculating taxes, and processing wage types. Some functions process payroll rules. Rules are a collection of payroll operations. Each operation does a small unit of work, such as multiplying a wage typeu2019s number by a rate to get an amount.
    Schemas are edited with transaction PE01
    Schema rules PE02
    Functions and operations are maintained with transaction PE04.
    If anything require let me know
    Regards
    Sudheer

  • Conditional Mapping to 835 schema

    I am interrogating a value in the incoming flat file schema and if the value is greater than '0' I am supposed to set some values in the CLP segment. However, if the value in the incoming schema is '0', I should not create the CLP segment. I'm not quite
    sure how to accomplish this. I am using inline c# in the scripting functoid to evaluate the incoming value and then set the value for the CLP01, CLP02, etc. The best I know how to do is....if the incoming value is '0', just return an empty string, but that
    creates a CLP segment with blank values in the CLP segment fields which is not allowed. How do I tell the map to not create the segment at all if the incoming value is '0'?
    Thanks.

    Prabhdeep,
    Your suggestion worked well. I actually mis-spoke as it is the AMT segment I'm working with. Anyway, your suggestion helped eliminate empty sub-elements in the AMT segment. However, since I am looping through three different fields in the incoming schema,
    I am still getting one empty top level AMT node, like this:
    <ns0:AMT_ClaimSupplementalInformation/>
    Whereas before your help I was getting this:
    <ns0:AMT_ClaimSupplementalInformation>
    <AMT01_AmountQualifierCode/>
    <AMT02_ClaimSupplementalInformationAmount>
    </ns0:AMT_ClaimSupplementalInformation>
    The other two fields I'm looping through have good data and the AMT segments for them get created correctly.
    Is there any way to tell the looping functoid NOT to loop for the field if the field contains certain data?
    Below is my map. You can see where I fixed the input for the CINELIGIBLE field based on your input. I still have to fix the CALLOWED and CBALANCE fields. You can see where I have to use a looping functoid because I have multiple fields to check on the left
     which are mapped to a single node tree(the AMT) on the right, that can repeat per the schema rules for the 835 schema.
    Thanks for your help!

  • Ask about DML Handler for Streams at the Schema level ?

    Hi all !
    I use Oracle version 10.2.0.
    I have two DB is A (at machine A, and it used as source database) and B (at machine B - destination database). Some changes from A will apply to B.
    At B, I installed oracle client to use EMC (Enterprise Manager Console) tool to generate some script, and use them to configure Streams environment, I configured Streams at the Schema level (DML and DDL) => I successed ! But I have two problems is:
    + I write a DML Handler, called "emp_dml_handler" and want set it to EMP table only. So, I must DBMS_STREAMS_ADM.ADD_TABLE_RULES ? (I configured: DBMS_STREAMS_ADM.ADD_SCHEMA_RULES) such as:
    BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name => '"HOSE"',
    streams_type => 'APPLY',
    streams_name => 'STRMADMIN_BOSCHOSE_REGRES',
    queue_name => 'apply_dest_hose',
    include_dml => true,
    include_ddl => true,
    source_database => 'DEVELOP.REGRESS.RDBMS.DEV.US.ORACLE.COM');
    END;
    and after:
    DECLARE
    emp_rule_name_dml VARCHAR2(50);
    emp_rule_name_ddl VARCHAR2(50);
    BEGIN
    DBMS_STREAMS_ADM.ADD_TABLE_RULES(
    table_name => 'HOSE.EMP,
    streams_type => 'APPLY',
    streams_name => 'STRMADMIN_BOSCHOSE_REGRES',
    queue_name => 'apply_dest_hose',
    include_dml => true,
    include_ddl => true,
    source_database => 'DEVELOP.REGRESS.RDBMS.DEV.US.ORACLE.COM',
    dml_rule_name => emp_rule_name_dml,
    ddl_rule_name => emp_rule_name_ddl);
    DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION(
    rule_name => emp_rule_name_dml,
    destination_queue_name => 'apply_dest_hose');
    END;
    BEGIN
    DBMS_APPLY_ADM.SET_DML_HANDLER(
    object_name => 'HOSE.EMP',
    object_type => 'TABLE',
    operation_name => 'UPDATE',
    error_handler => false,
    user_procedure => 'strmadmin.emp_dml_handler',
    apply_database_link => NULL,
    apply_name => NULL);
    END;
    ... similar for INSERT and DELETE...
    I think that I only configure streams at the schema level and exclude EMP table, am i right ?
    + At the source, EMP table have a primary key. And I configured:
    ALTER TABLE HOSE.EMP ADD SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS;
    ==> So, at the destination, have some works that I must configure the substitute key for EMP table ?
    Have some ideas for my problems ?
    Thanks
    Edited by: changemylife on Sep 24, 2009 10:45 PM

    If you want to discard emp from schema rule, then just add a negative rule, either on capture or apply.
    What is the purpose of :
    DBMS_APPLY_ADM.SET_ENQUEUE_DESTINATION(
    rule_name => emp_rule_name_dml,
    destination_queue_name => 'apply_dest_hose');sound like you are enqueunig into 'apply_dest_hose' all the rows for this table that comes from ... 'apply_dest_hose'
    Next you declare a DML_HANDLER that is attached to nobody :
    BEGIN
    DBMS_APPLY_ADM.SET_DML_HANDLER(
    object_name => 'HOSE.EMP',
    object_type => 'TABLE',
    operation_name => 'UPDATE',
    error_handler => false,
    user_procedure => 'strmadmin.emp_dml_handler',
    apply_database_link => NULL,
    apply_name => NULL);           <----- nobody rules the world!
    END;the sequence of evaluation is normally :
    APPLY_PROCESS (reader)
              |
              | -->  RULE SET
                          |
                          | --> RULE .....
                          | --> RULE
                                     |
                                     | --> evaluate OK then --> exist DML_HANDLER  --> YES --> call DML_HANDLER --> on LCR.execute call coordinator
                                                                                            |
                                                                                            | NO
                                                                                            |                                                                 
                                                                                       Implicit apply (give LCR to coordinator which dispatch to one apply server)    
                                                      Since your dml_handler is attached to null apply process it will never be called by anybody and your LCR for table emp will be implicit applied by its apply process.

  • Disable Schema check in Oracle Directory Server

    How does one disable schema checking in Oracle Directory Server. I couldnt figure it out. This is easily done in openLDAP , netscape LDAP server.
    null

    I am sorry if I wasn't clear. In Netscape/openLDAP , the term schemacheck implies. ( from open LDAP documentation ).
    Option : schemacheck { on | off }
    This option turns schema checking on or off. If schema checking is on, entries added or modified will be checked to ensure they obey the schema rules implied by their object class(es) as defined by the corresponding objectclass option(s). If schema checking is off this check is not done.
    Default: on
    The default is on in Oracle.
    Thanks in advance ,
    Ravi
    null

  • DDL captured for Table Rules

    Is there a list of DDL that is captured for the different rules in the DBMS_STREAMS_ADM subprograms. For example, the ADD_GLOBAL_RULES probably captures more DDL than ADD_TABLE_RULES will.
    Basically, I have table rules set up and want to replicated or ignore certain DDL commands. However, I'd like to know which DDL commands I either need to ignore or apply in the DDL handler.
    Thanks!

    Thanks for the reply, but it's not helpful.
    I know where the Oracle doc is located and it doesn't answer my question, that's why I posted here.
    I also realize Global rules apply to the database, Schema rules apply to a schema, and Table rules apply to a table. That's easy to find in the doc.
    Here's an example - you have a Streams capture rule configured for a table and you specify you also want to capture DDL. Obviously any 'ALTER TABLE' DDL will be captured and applied.
    But what about the creation of indexes, triggers, views, synonyms, procedures, functions, and packages based on the table? These are the specifics that I'm unable to find in Oracle's doc - hence the question posted here.

  • Truncate, then reload causes ora-00001 unique constraint on apply side

    I setup schema level replication using the maintain_schema procedure. Its replicating DML and not DDL.
    I have a source side process that truncates a table then reloads it every day. Since DDL is not replicating, the reload produces generates an ora-00001 errors in apply process.
    I don't want to replicate all DDL because of apply errors it creates
    I've added a DDL schema rule to replicate truncate statements on the capture and apply rule, but the truncate is still not replicating. Here are the rules I'm using:
      dbms_streams_adm.add_schema_rules(
        schema_name => 'PRODUCT',
        streams_type => 'CAPTURE',
        streams_name => '&src_db$CAP',
        queue_name => 'STRMADMIN.&src_db$CAPQ',
        include_dml => TRUE,
        include_ddl => FALSE,
        include_tagged_lcr => TRUE,
        source_database => '&src_db..&gbl_nm',
        inclusion_rule => TRUE);
      DBMS_STREAMS_ADM.add_schema_rules (
        schema_name       => 'PRODUCT',
        streams_type      => 'CAPTURE',
        streams_name      => '&src_db$CAP',
        queue_name        => 'STRMADMIN.&src_db$CAPQ',
        include_dml       => FALSE,
        include_ddl       => TRUE,
        source_database   => '&src_db..&gbl_nm',
        inclusion_rule    => TRUE,
        and_condition     => '(:ddl.get_command_type() = ''TRUNCATE TABLE'')');Here's the capture rule_condition from dba_streams_rules:
    ((:dml.get_object_owner() = 'PRODUCT') and :dml.get_source_database_name() = 'PKIO.LOUDCLOUD.COM' )
    ((((:ddl.get_object_owner() = 'PRODUCT' or :ddl.get_base_table_owner() = 'PRODUCT') and :ddl.is_null_tag() = 'Y' and :ddl.get_source_database_name() = 'PKIO.LOUDCLOUD.COM' )) and ((:ddl.get_command_type() = 'TRUNCATE TABLE')))
    On the apply side I have the following
      dbms_streams_adm.add_schema_rules(
        schema_name => 'PRODUCT',
        streams_type => 'APPLY',
        streams_name => '',
        queue_name => 'STRMADMIN.&src_db$APPQ',
        include_dml => TRUE,
        include_ddl => FALSE,
        include_tagged_lcr => TRUE,
        source_database => '&src_db..&gbl_nm',
        inclusion_rule => TRUE);
      DBMS_STREAMS_ADM.add_schema_rules (
        schema_name       => 'PRODUCT',
        streams_type      => 'APPLY',
        streams_name      => '',
        queue_name        => 'STRMADMIN.&src_db$APPQ',
        include_dml       => FALSE,
        include_ddl       => TRUE,
        source_database   => '&src_db..&gbl_nm',
        inclusion_rule    => TRUE,
        and_condition     => '(:ddl.get_command_type() = ''TRUNCATE TABLE'')');And the corresponding rule_conditions look like:
    ((:dml.get_object_owner() = 'PRODUCT') and :dml.get_source_database_name() = 'PKIO.LOUDCLOUD.COM' )
    ((((:ddl.get_object_owner() = 'PRODUCT' or :ddl.get_base_table_owner() = 'PRODUCT') and :ddl.is_null_tag() = 'Y' and :ddl.get_source_database_name() = 'PKIO.LOUDCLOUD.COM' )) and ((:ddl.get_command_type() = 'TRUNCATE TABLE')))
    When the source side process that truncates and reloads the table, the apply process crashes. To workaround this I manually truncate the table on the target side and execute DBMS_APPLY_ADM.EXECUTE_ALL_ERRORS then restart apply.
    What do I need to do to replicate truncate statements with out replicating other DDL statements?
    Thanks!

    Hi,
    You can create rule for truncate using below:
    BEGIN
    DBMS_RULE_ADM.CREATE_RULE(
    rule_name => 'TRUNCATE_RULE',
    condition => '(:ddl.get_object_owner() = ''HR'' AND ' ||
    ':ddl.get_object_name() = ''TEST'') AND ' ||
    ':ddl.get_command_type() = ''TRUNCATE TABLE'' ');
    END;
    Thanks,
    Reena

  • Create a standby logical database in 10g

    Hi,
    My OS is Windows 2003, using oracle 10g software.. I want to know steps to create a logical standby database from primary database? I read the Dataguard concepts and administration guide, its confusing where it says to add the roles for primary and standby database in init.ora file? Could someone please provide steps to configure...
    Thank you.

    If you need the entire database to a single location ... use Data Guard.
    If you need to specify tables, columns, schemas, rules, and are in a
    publish-subscribe situation use Streams.
    Both are share a common architecture.
    refer this for comparison,
    http://www.heysky.net/digest/2009/07/comparison-between-features-rac-dataguard-streams-advanced-replication-and-basic-replication.html
    Thanks

Maybe you are looking for

  • Ipod won't play any files!

    I am using a fully updated ipod and itunes.This morning my son accidently disconnected my ipod while it was flashing do not disconnect.I was using Anapod explorer 8.9.6. Now none of my files will play at all. When I cue them up the ipod just cycles t

  • Copy Undeliverable Mail To / luser_relay no worky?

    Hi everyone, I know it's a despised feature, but I just need it working until I'm confident everything has been migrated well. I'm of course referring to "Copy Undeliverable Mail To:". When I first turned it on, and tested in, mail was still bouncing

  • Flash Builder 4.7 - AIR SDK 3.1: Directory does not contain a AIR SDK

    Im still having issues with using AIR 3.1 with flash builder 4.7 (see my previous posts) and would appreciate any help/ advice. Ive uninstalled FB 4.7, reinstalled and followed the procedure to overlay AIR 3.1. Im now getting the following error - AI

  • Possible to run several concurrent processes form pl/sql in background

    Hi, We have a procedure in package in pl/sql which we pass in year and month to. Rather than run these processese serially package.procedure(201301); package.procedure (201302);  etc would like to have these run concurrently in paralllel. What is bes

  • B210a red cast and ICM

    Hi have just installed a new B210a. On my 4x6 prints, there is a feint red cast on the prints. I also retouched the images in a popular piece of image software, but on printing, the images look like the originals and not the retouched versions - they