Define rules of variant

hi
  can any body explain me about day type variant.and let me know how to write variant rule for a day 4 hrs working if next day  is holiday and it is Saturday.please explain me these variant which is in below
RULE     NO.     HOL.CLASS     HOL CLASS NXT DAY     DAY             VARIANT
01             01     *X******             XXXXXXXXXX                  XXXXXXX     B
01             02     XX.XXXXXXX      XXXXXXXXXX                   ***X*     B
01             03     X*********             XXXXXXXXXX               ****X     A
05             01     X*********             X********                       ****XXX     
25         01     XXXXXXXXX     XXXXXXXXXX               XXXXXX     
Thanks&regards
Manoj Kumar

... let me know how to write variant rule for a day 4 hrs working if next day is holiday and it is Saturday
RULE    NO.    HOL.CLASS     H.C.NEXTD     DAY        VARIANT
90      01     X.XXXXXXXX    .X.......     ....X..    X
Configure a selection rule as mentioned by Joker
For DWS
1.     Copy your DWS
2.     Maintain X after 4 character DWS name space. Maintain 4 hrs working time in thisu2014Save it
3.     Now you can see 2 entries one is for Original DWS & one with Variant X.
4.     In original DWS maintain selection rule u201890u2019.
5.     Generate work schedule.
Regards,
Lata

Similar Messages

  • Define Rules for Variants under Daily Work Schedules.

    Hi All,
    Can anyone explain me what is the use of Define Rules for Variants under Daily Work Schedules.
    Also can some one explain what is the meaning of below representation
    Rule   No      Holiday Class     HolClNextDay          Day     Varaint
    01     03         X.........              XXXXXXXXXX      .....X.     A
    Thanks in Advance
    David

    Hi David,
    Thanks for putting this question .  I was also searching for its answer because when variant is applied on Friday and if any full day public holiday falls on Friday then variant would be null and void.
    I got confused with the holiday class 2 which is half day public holiday, what if it falls on Friday?
    Variant in itself is reduced working hours and half day is one and the same thing.
    I have tried rules in many ways to trigger variant on Friday:
    Rule          HC current.                    HC next day.                   Days.                      Variant
    XX.     01   XX.XXXXXXX                XXXXXXXXX                   ....X..                      B
    XX.     02      ..X...........                       XXXXXXXXX              XXXX.XX            
    Or
    Rule          HC current.                    HC next day.                   Days.                      Variant
    XX.     01   XX.XXXXXXX                XXXXXXXXX                 ....X..                        B
    In the 1st case the 2nd condition is unnecessary confusing, however things are working fine with only 1st condition.
    Please clarify what is the difference in 1st and 2nd case?

  • Define Rules for Variants (Daily Work Schedules)

    Hi All,
    I wanted to set up the following rule for varients :
    If Holiday Falls on SUnday then Monday should be change Off.
    I have created Varient for DWS.  as NORM , NORM - "C".
    01     03     .X........     X.........                          ......X     C
    01     04     X.........     XXXXXXXXXX     X......     C
    But above setting turing all Mondays to Varient C.
    How can I make only Monday  as Varient as C when its previous day is SUnday and Holiday Class 1.
    Regards,
    Kamal Rawal

    Hi Kamal,
    In SCAL- At the time of creating public holiday you can define in Guaranteed section as Public Holiday on Sundy (Select Sunday) , then move to next day  or move to previous day
    Pls check & revert..
    Regards,
    Mahesh

  • Data not coming from DOE to Mobile After defining Rule for device attribute

    Hi All,
    I have created a DO and rule for it.In case of Bulk Rule for all definition when i triggere extract from Portal then all the data comes to outbound queue but when i define rule for Device attribute then no data comes to my Outboun queue.Here is the scenario what i am doing :
    1. I have order header in my backend which has a field named "Work_Center" and this will be criteria field.
    2. In CDS table i have all the records for all the work center.
    3. Now in RMM under customized , i have added an attribute named "Work_center".
    4. Now i defined a rule with Device attribute mapping and activated the rule.
    5. Now on Portal i assigned this data object and in the device attribute tab i assigned the value(this value exist in CDS table for few orders) of a   Work center to the attribute "Work_Center" .
    6. Then i triggrere extract but its Outbound queue is empty, what could be the reason.
    Is my approach is correct
    Regards,
    Abhishek

    Hi Abhishek,
    You can check one ore thing, after you have performed all the steps till step 5, i.e. just before triggering
    extract. Check if the AT table for ur DO has entries based on the criteria specified by you...
    1. In the workbench click on the Data Object, and then right click and select "View Metadata".
    2. Select Distribution Model tab.
    3. Now select your DO's Association table.
    4. For the input field DEVICE ID specify your corresponing device id,and also for status field specify it 
        as "I"  and execute
    If there are any entries now in the AT table, and on triggering extract if they are not coming to the
    outbound Q there is some EXTRACT Q blocked. And is there were no entries in the AT then the rule
    specified is not  the satifying.
    Thanks,
    Swarna
    Now if you have entries w

  • How to use negation in user defined rules?

    Hi,
    Can you please show me an example to use negation in user defined rule? I created a rule like below (the rule says if a patient has a fever problem and not have penicillin hypersensitivity, then recommend medication1):
    INSERT INTO mdsys.semr_myMedicineRB VALUES('rule1',
    '(?p rdf:type :Patient) (?p :present ?c1) (?c1 rdf:type :Fever) (?c2 rdf:type :Penicillin_Hypersensitivity)',
    '(NOT_EXISTS(p :present c2))',
    '(?p :recommendation :medication1)',
    SEM_ALIASES(SEM_ALIAS('','http://www.example/medicine#')));
    The rule successfully inserted into the rulebase. However, I cannot pass the entailment creation phase and got the errors:
    ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    ORA-06512: at "MDSYS.SDO_SEM_INF_INTERNAL", line 16453
    ORA-06512: at "MDSYS.SDO_SEM_INFERENCE", line 302
    ORA-06512: at "MDSYS.SDO_SEM_INFERENCE", line 352
    ORA-06512: at "MDSYS.RDF_APIS", line 118
    ORA-06512: at line 2
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    According to the post built-in primitives(noValue,remove) for user defined rules, it seems negation is not supported in user defined rules. Can you please advice how to implement negation in user defined rules?  Thanks a lot in advance.
    Hong

    Hi Hong,
    Let's look at this similar but simplified problem:
      if (?p  rdf:type  :Patient) and (NOT_EXISTS(?p  :present  :c2)) ==> (?p :recommendation :medication1)
    You can use something like this in the user defined inferencing:
    -- First get the numeric IDs for the relevant URIs
    recomID := sdo_sem_inference.oracle_orardf_add_res('http://..../recommendation');
    medID := sdo_sem_inference.oracle_orardf_add_res('http://..../medication1')
    rdfTypeID := sdo_sem_inference.oracle_orardf_res2vid('... full URI for rdf:type');
    patientID := ...
    presentID := ...
    c2ID := ...
    -- Now this query will find out ?p that satisfy (?p  rdf:type  :Patient) but not
    -- (?p  :present  :c2)
    sqlStmt := '
      select ids1.sid  sub
         from ' || src_tab_view || ' ids1
        where ids1.pid= ' || to_char(rdfTypeID,'TM9') || '
          and not exists (
             select 1
               from ' || src_tab_view || '
              where sid = ids1.sid
                and pid = ' || to_char(presentID, 'TM9') || '
                and oid = '|| to_char(c2ID,'TM9') || '
    insertStmt := '
      insert /*+ parallel append */
       into ' || output_tab || '(sid, pid, oid)
      select sub, '||to_char(recomID,'TM9') || ',' || to_char(medID,'TM9') || '
       from (' || sqlStmt || ')'
    More details can be found in
    http://docs.oracle.com/cd/E16655_01/appdev.121/e17895/inference_extension.htm#CHDDBGEC
    Hope it helps,
    Zhe Wu

  • ESS - Define Rules

    Hi everyone,
    In the "Define Rule for Object Selection" via SPRO we have created
    a custom rule Z_ESS_LEA_RULE5 which is based on the evaluation path
    O-S-P. This brings back a list of employees for a particular Org. Unit.
    This is working perfectly. However, I now need to add some extra functionality
    to the list of employees that it is selecting.
    i.e. just need to bring back people that have a certain SAP role allocated to them.
    Can anyone tell me if this can be done? Where does the ABAP get called??
    I can't to see anywhere any ABAP code anywhere where I could make a custom copy
    and add some new code.
    Any help would be much appreciated.
    Andy

    Hi mate, thanks for replying again.
    I am very new to all this ESS stuff !!!!
    Can you tell me what the standard FM's are called ??   I presume they start with HRWPC?????
    We have a new custom rule using the evaualtion path O-S-P. I need to change the ABAP behind
    whatever the rule is calling but I don't know where to look?? That is my biggest problem
    Thanks again for replying, much appreciated
    Andy

  • About user defined function in user defined rule

    Hi,
    I am wondering if I can use a user defined function in a user defined rule in oracle sem.. I've seen examples of user defined function used in sparql query filter clause in that dev. guide. However, I don't know if I can define a function in oracle sem. database and use it in the rule body or head. For example, I want to define a duration function that calculate the date difference between two dates.  Then, I want to define a rule like this: event1 :has_start_date d1 and event1: has_end_date d2 and duration (24, d1,d2) then event1:date_satisfiable "yes". Does oracle support this kind of rule? Thank you very much.
    Hong

    Hi Hong,
    The user defined rules are quite similar to a CONSTRUCT SPARQL query, where the FILTER clause is implemented in SQL.
    I think we have already written rules like you want :
    You have to write a PL/SQL FUNCTION that returns a NUMBER (not a BOOLEAN, think you are in SQL) :
    FUNCTION DURATION(HOURS INTEGER, D1 VARCHAR2, D2 VARCHAR2) RETURN INTEGER
    IS
    BEGIN
         IF(.................)
            THEN RETURN 1;
            ELSE RETURN 0;
         END IF;
    END;
    Maybe you will have to GRANT EXECUTE ON DURATION TO MDSYS.
    Then include the following in the FILTER clause of the Rulebase "[owner].duration (24, TO_CHAR(d1),TO_CHAR(d2)) = 1"
    Hope this helps.

  • Creating rules for variant

    Hi gurus,
    How to create rules for variant in work schedules.....Explain clearly.....
    iam unable to understand x and . under holiday calender....
    Explain it by taking example of having only 4 working hours before a public holiday.
    thnx in adv.....
    Regards,
    praveen.

    hi u use day of varient when u want to disrupt ur dws for some day.
    here u shd know what r the holiday classes 0 is workday.
    1 is holiday  .2 is half day holiday and 3-9 are customer specific holiday classes.
    rule NO  hclas     hcla n.d.   weekday      var
    ZA 01     X.X.......   .X........  XXXXXXX       1
    this is how we may write ur requirement .
    4 hours of working before public holiday.
    that day on which u want to apply the rule that shd be either workday or halfday so x.x 
    the next day u want as a public holiday so check 1 that is fullday holiday. 
    which workdays u want to apply this u can decide in 3rd collumn.
    this varient u give in DWS.
    and there u change ur work schedule to only 4 hrs.
    clarify with other members too.since i might be wrong.
    regards,
    raj.

  • Driving processing with user defined rules

    Hi,
    I am looking for some examples of user defined rules for file processing.
    So I have a file loaded in to the application in a staging table, user will want to define rules to process the data and then an output will be created.
    Very vague question I know but has anyone got any examples where they did something similar which might help?
    Thanks.

    Roger,
    Here's one that I found that may not look very simple but it actually is if you just break it down piece by piece.
    create or replace FUNCTION              "SQL_IP_SUBNET" (
    p_octet1 in varchar2,
    p_octet2 in varchar2,
    p_octet3 in varchar2,
    p_octet4 in varchar2,
    p_slash in varchar2,
    p_status in varchar2)
    return varchar2
    as
    l_select varchar2(1000);
    l_octet1 varchar2(200);
    l_octet2 varchar2(200);
    l_octet3 varchar2(200);
    l_octet4 varchar2(200);
    l_slash varchar2(200);
    l_status varchar2(200);
    l_cidr varchar2(50);
    l_where varchar2(1000);
    l_order_by varchar2(100);
    l_sql varchar2(32767);
    begin
    l_select := q'!select id, get_ip_addr(octet1, octet2, octet3, octet4) ip_addr, slash, description, !';
    l_select := l_select || q'! octet1, octet2, octet3, octet4 from poc_subnets where 1=1!';
    if (p_octet1 is not null) then
    l_octet1 := q'! and octet1=!' || p_octet1;
    end if;
    if (p_octet2 is not null) then
    l_octet2 := q'! and octet2=!' || p_octet2;
    end if;
    if (p_octet3 is not null) then
    l_octet3 := q'! and octet3=!' || p_octet3;
    end if;
    if (p_octet4 is not null) then
    l_octet4 := q'! and octet4=!' || p_octet4;
    end if;
    if (p_slash is not null) then
    if substr(p_slash,1,1) != '/' and length(p_slash) = 2 then
      l_cidr := '/'||p_slash;
    else
      l_cidr := p_slash;
    end if;
    l_slash := q'! and slash='!' || l_cidr || q'!'!';
    end if;
    if length(l_octet1) > 0 then
    l_where := l_octet1;
    end if;
    if length(l_octet2) > 0 then
    l_where := l_where || l_octet2;
    end if;
    if length(l_octet3) > 0 then
    l_where := l_where || l_octet3;
    end if;
    if length(l_octet4) > 0 then
    l_where := l_where || l_octet4;
    end if;
    if length(l_slash) > 0 then
    l_where := l_where || l_slash;
    end if;
    if length(p_status) > 0 then
    case
      when p_status = 'YES' then
       l_status := q'! and assigned = 'YES'!';
      when p_status = 'NO' then
       l_status := q'! and assigned = 'NO'!';
      else
       l_status := null;
    end case;
    end if;
    if length(l_status) > 0 then
    l_where := l_where || l_status;
    end if;
    -- do the order by clause
    l_order_by := q'! order by octet1, octet2, octet3, octet4!';
    if length(l_where) > 0 then
    l_sql := l_select||l_where||l_order_by;
    else
    l_sql := l_select||l_order_by;
    end if;
    return l_sql;
    end;
    Just so you know, this is not necessarily the best way to do what you're asking. It does get the job done however.
    If you inspect the code it's basically just a bunch of string concatenation operations based on the presence or absence of each of the input parameters. Pretty much what you were asking about.
    Earl

  • User defined rule for missing triples

    Hi,
    i would like to know if there is a way to define a user defined rule for triples that are not contained in a model. With curly brace syntax it could be something like this:
    INSERT INTO mdsys.semr_validation_rb VALUES(
    'test_rule',
    '{?s ?p ?o. OPTIONAL{?s rdf:type ?t}}',
    't is null',
    '(?s <hasType> "false")',
    null);
    Unfortunately this is not working. Has anybody a suggestion to solve this problem with user defined rules?

    Hi,
    This is related to the following post.
    built-in primitives(noValue,remove) for user defined rules
    Note that there is something you need to pay a bit attention to.
    Say your original graph contains
    :John :fatherOf :Mary
    but not any type classification for :John (i.e. no match for {:John rdf:type ?t})
    Assume you add the following triple according to the rule you described
    (:John <hasType> "false")
    Now, what happens if :John is classified as a :Person (or :Parent, :Father),
    do you want to withdraw* :John <hasType> "false"?
    Thanks,
    Zhe

  • Question for customs "Define rules for default document data"

    Hello all,
    we would like to set up the data for AES. We set the country of origin, as you can see on the below screenshot.
    The problem is that the country of origin is not forwarded to AES. In the export declaration under the item detail there is an empty field at the country of origin.
    What do we have to change in the set up "Define rules for default document data"?
    Thanks in advance.
    Sven Sklarek

    Hi Sven,
    Sorry to take the conversation in a different direction, but it's very unusual to propose the Country of Origin (CofO) by default, and not usually accepted by the Customs authority.  Generally the CofO depends on where you obtain the goods.  If that doesn't change much, it's usual to set the CofO on the Material Master record in the ERP system - in that case the value copies automatically into the GTS Export Declaration item.  That is why there is no standard configuration having IT_CUCOO as a Target Field.
    Also, in many countries, CofO is not mandatory in the Export Declaration (although always mandatory in the Import Declaration).  You might want to check the situation in your area.
    Regards,
    Dave

  • OADP settings for MSS Services - Define Rules for Object Selection

    Hi
    Our client wants to extend MSS to all managers, and to begin with want option of "Only B002 Relationship" in drop down of Team Calendar.
    I have tried all standard options but unable to find a suitable rule(Define Rules for Object Selection) which would restrict the list of employee to only B002 Relationship of Manager.
    Any ideas on how to achieve it?
    Regards
    Yash

    Hello Yash,
    I think first concern here should be to make things work at your end...thus I am not focusing on your evaluation path...that you have set....
    Just to kick off things so that they start work for you.....
    you need to set the evaluation path as I have mentioned in my earlier reply....
    These evaluation paths have been working for me...
    To correct yours as per mine you need to set
    ZB2 as
    10 S B 002 Is Line superior of * S
    and set
    ZB3 as
    20 S A 008 Holder * *
    Now if still things does not work then...you need to check the Tcode PPOM_OLD and see if the correct reporting relationship (B002) exists for the logged in user.....
    These evaluation paths are very confusing for me.....and so I am not trying to correct what you have set in ZB2 and ZB3....
    And also note that there can be more then 1 way to achieve your goal with evaluation paths.....
    Yash here on we will focus on this thread only.......Let Upendra clear his doubts with that thread.....right..?
    Object and Data Provider evaluation path to get subordinates.
    Edited by: Saurabh Agarwal on Jul 24, 2011 7:44 AM

  • Does the pre-defined rules provide by SAP in PC 10?

    Hi Everyone
    I have two question about Process Control 10.
    1. Rules, sample controls and scripts provided by SAP in PC 2.5.
    Does the pre-defined rules provide by SAP in PC 10?
    2. If it provide, how many?
    I've read a lot of information about PC 10(RKT, Application Help, Master, Installation, Upgrade, Migration, and Operations Guides),but I can't find it..
    Regards
    Naoto

    Hi Nato,
    I believe GRC 10.0 versions are only avalaible for ramp-up's. There is a live expert session being arranged by SAP.
    You could attend one of these for more info.  You could look at this [thread|GRC Access Control 10; for more details about the webinar.
    Thanks,
    Chinmaya

  • User-defined rules with SPIN (SPARQL CONSTRUCT)

    Hi,
    We are looking at SPIN as an alternative to define and execute user-defined rules. It is very expressive and in that point looks superior over Jena, SWRL and Oracle type of user-defined rules with IF (filter) -> THEN type of syntax. Although, SPIN is TopQuadrant's, it is entirely SPARQL, and Oracle supports SPARQL CONSTRUCT via Jena Adapter. TopBraid Composer provides and excellent tool support and rule editor for SPIN rules as well.
    There is no problem to execute SPIN rules via Jena Adapter, and I believe even via TopQuadrant's SIN API, which is TopQuadrants's SPARQL based infrence engine's API.
    My question is about whether Oracle has looked into supporting SPARQL CONSTUCT based user-defined rules in its native inference engine?
    Do you have a recommendation for how to use SPIN based user rules in combination with Oracle inference today?
    Thanks
    Jürgen

    Hi Jürgen,
    We are actually looking into a general mechanism that allows users to plug in their own queries/logic during inference. Thanks very much for bringing SPIN up. This general mechanism is very likely going to cover CONSTRUCT queries.
    To extend the existing inference engine using the existing Jena Adapter release, one possible way is as follows.
    1) Assume you have an ontology (model) A.
    2) Create an empty model B.
    3) run performInference on both A and B using OWLPrime.
    4) run SPARQL CONSTRUCT queries against A, B and inferred data
    5) store the query results (in the form of Jena models) back into model B.
    6) If the size of model B does not change, then stop. Otherwise, repeat 3)
    Note that model B is created to separate your original asserted data from inferred data.
    If you don't need such a separation, then don't create it.
    Thanks,
    Zhe Wu

  • Decidability issue of oralce user defined rules

    Hi,
    Accoring to some online posts (http://weblog.clarkparsia.com/2007/08/27/understanding-swrl-part-2-dl-safety/, http://protege.cim3.net/cgi-bin/wiki.pl?SWRLLanguageFAQ), SWRL in general is undecidable.However, we can add some restrictions to SWRL to regain decidability: Variables in DL Safe rules bind only to explicitly named individuals in ontology. Adding this restriction is sufficient to make SWRL rules decidable. So, I'm wondering how Oracle user defined rules achieve the decidability. Does it adpot the way simliar to SWRL? Thanks a lot in advance.
    Hong

    Hi Hong,
    This is a good question. Yes we have adopted a similar idea. The forward chaining based inference engine in Oracle Database will only bind existing known RDF resources to variables in rules. We will not generate a new RDF resource that does not previously exist in the ontologies. This is very important because it ensures the inference process will finish in a finite amount of time.
    The above does not apply to user defined inferencing (a 12.1 new feature) though.
    Thanks,
    Zhe

Maybe you are looking for