Event-based proration formula group

follwing text is mentioned in the user's guide for formula OracleFast:

Write formulas of proration
When the payroll running encounters an event (such as a change of category) that you have
_defined as an event apportionment to the element being processed, it creates two execution results_
for the element - one for the period of pay until the day before the event and the other of
the date of the event for the end of the period. You define a formula to handle this
proration for part of treatment


Can someone tell why do two execution results? I don't need only one result!

Thanks in advance,

Hi user597685

I was just referring to GET_ASSIGNMENT_STATUS formula you to create a custom function mentioning. So instead of using the seeded GET_ASSIGNMENT_STATUS formula function, create a custom formula similar to the above but referring to a different pl/sql function that must be something like below.

function xx_get_Assignment_Status
(p_assignment_id number
p_effective_date IN Date) number IS back

CURSOR csr_get_asg_status (p_assignment_id p_effective_date DATE NUMBER) IS
SELECT decode(past.per_system_status,'ACTIVE_ASSIGN',1,'SUSP_ASSIGN',2,'TERM_ASSIGN',3,4)
BY the ADP per_all_assignments_f.
last per_assignment_status_types
WHERE paaf.assignment_id = p_assignment_id
AND p_effective_date BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND paaf.assignment_status_type_id = past.assignment_status_type_id;

number of l_return;
BEGIN
OPEN csr_get_asg_status (p_assignment_id, p_effective_date);
SEEK csr_get_asg_status INTO l_status;
CLOSE Csr_get_asg_status;

RETURN l_status;
END;

This function returns 1 for the active state of the assignment, 2 suspended, completed 3 and 4 for the other. Amend accordingly the logical formula. This should solve your problem.

Kind regards
Sharath

Tags: Oracle Applications

Similar Questions

  • How to I raise an event based on the State of a button?

    I'm trying to trigger an event based on the State ON / OFF button.  When I click on the button, I want the structure of the event in a loop to trigger each iteration until the button goes back to the OFF position, manually or programmatically.  Is there an easy way to do this?

    Thank you very much.

    A structure of the event is absolutely necessary?  It's so simple with just a case structure, as shown in figure 1.  If you use a structure of the event, you can place the structure dealing with the push button inside the time-out event, as shown in Figure 2.

  • ASA VPN - allow user based on LDAP Group

    Hello friends

    I have create a configuration to allow connection based on LDAP Group.

    I m not specialize in the firewall and I tried to follow the links above, but both seem old, commanded several is not available.

    http://www.tunnelsup.com/Cisco-ASA-VPN-authorize-user-based-on-LDAP-group

    http://www.Cisco.com/c/en/us/support/docs/security/ASA-5500-x-series-NEX...

    Anyone know how I can do?

    Thank you

    Marcio

    I like to use the Protocol DAP (dynamic access policies) to control this.  Follow this guide:

    https://supportforums.Cisco.com/document/7691/ASA-8X-dynamic-access-policies-DAP-deployment-guide

  • BI report based on age groups?

    Hi all

    I need to create a simple OBIEE report on sales by sales based on age group of people:

    For example:
    Sales sales person
    ----------------
    25-35 years - > 30000 units
    36-45 years - > 10000 units
    46-55 years - > 5000 units
    56-65 years - > 20000 units


    I have the "* of_Birth Date_ *" field in the SalesPerson_Dimension and the No_units_sold by a seller in the fact table.

    My big question is to know how to create in OBIEE age brackets?

    Appreciate your help.

    You create a column of logic 'Age Band' in a logical table Dim. Use some physical table holds your DOB yourself as the LTS for this dimension. For the mapping to the LTS do something like:

    CASE
    WHEN TIMESTAMPDIFF (CURRENT_DATE, SQL_TSI_DAY, physical_table.dob_column)<= 20="" then="">
    WHEN TIMESTAMPDIFF (CURRENT_DATE, SQL_TSI_DAY, physical_table.dob_column)<= 30="" then="">
    ...
    ...
    ...
    ELSE ' 100 +'
    END

    You really want this field in a logical dim you usually want to group by. If the DOB column is a table of facts you don't, simply use this fact as the LTS table table and the ususal resort for this size normally does in the MDB layer.

    Don't forget a hierarchy, best practices even if no real level, not Total-> detail with your age range in detail. Don't forget your levels of content within the tab content of LTS.

    So all the logic of the band is run on each line.
    If your having probs let us know!
    See you soon
    Alastair

  • Documentation for tab.user_data with event based jobs

    Hello
    Are all the attributes for tab.user_data when used as part of a task of event based documented somewhere?
    I'm looking for, but all I can find are examples rather than explicit documentation.

    Thank you

    Pete

    Hi Pete,.

    The type of the tab.user_data object is the type used to create the queue in QA. So, it varies depending on the type that is used to create the queue.

    If you consume messages from the queue of the event planner, the type is sys.scheduler$ _event_info and to find out what areas there you can use

    sys.Scheduler$ _event_info / / DESC

    Hope this helps,
    Ravi.

  • ACS authentication with Active Directory based on ad groups

    Hello

    I'm trying to integrate Cisco ACS 5.4.0.46 with AD and I connected successfully GBA to AD and I used as a successful AD authentication for network devices but my problem now is that anyone with an AD account can connect to network devices that compromises security. I created a group in AD that I would use and I added the group under users and identity stores > external identity stores > Active Directory > groups directory. I also chose source of identity for Default Device Admin as AD1 and under the authorization, an authorization policy that uses a compound condition that uses AD1 and the custom group. However after you have set all that I am still able to connect to the switch with a user not in the custom group. Based on what I have explained to you can someone tell me if Miss me a step?

    Thank you

    Derek Velez

    Thanks for the update and the fence wire. Set default default rules to deny access when user legimitate if does not match a rule set by the administration of the CSA he should get denied access. In your case, it has been updated a permit so that both type of users access (members and non-members of ad groups).

    The best way to resolve these issues is to look at the monitoring and troubleshooting > attempt user > magnifying glass. You will see how this user has been allowed access.

    ~ BR
    Jatin kone

    * Does the rate of useful messages *.

  • Problem with PPR event based on two fields.

    Hello

    I am facing a problem in PPR case based on two fields

    There are two fields in the page based on its values, the third element should be required Yes/No

    foreigners and classification are the attributes of the field

    When the alien is N and the classification is CONFIDENTIAL_IND or SECRET_IND
    then the DCN is the area that should be mandatory

    But when I chenge foreign to Y then also the DCN field shows mandatory
    Please find the question where I did worng with the code that is selected is the area I am facing problem.

    DcnRequired is TransientAttribute



    Code sample of the RPP:

    Method
        public void handleShipmentCreateValidations(){
            OAViewObject vo = (OAViewObject)findViewObject("ShippingRequestCreatePVO1");
            OARow row = (OARow)vo.first();
            
            OAViewObject shipVo = (OAViewObject)findViewObject("ShippingRequestCreateVO1");
            OARow shipRow = (OARow)shipVo.getCurrentRow();
            String reason = (String)shipRow.getAttribute("ShipmentReason");
            String classification = (String)shipRow.getAttribute("Classification");
            String foriegn = (String)shipRow.getAttribute("ForeignShipment");
            Date expected = (Date)shipRow.getAttribute("ExpectedReturnDate");
           String receipt = (String)shipRow.getAttribute("ReceiptBackoutInd");
           
            if (receipt == null || "N".equals(receipt)){
                row.setAttribute("PoRequired","no");
            }
            else if("Y".equals(receipt))
            {
                row.setAttribute("PoRequired","yes");   
            }
            
            
        if ("OTHER".equals(reason))
            {
                row.setAttribute("ShipOtherRender",Boolean.TRUE);
            }
          /*  if (reason == null){
                row.setAttribute("ShipOtherRender",Boolean.FALSE);
            }*/
            else {
                row.setAttribute("ShipOtherRender",Boolean.FALSE);
            }
            *if (("CONFIDENTIAL_IND".equals(classification)||"SECRET_IND".equals(classification))*
            *&& "N".equals(foriegn)) {*
                *row.setAttribute("DcnRequired","yes");*
            *}*
            *if ("N".equals(foriegn) &&*
            *("CONFIDENTIAL_IND".equals(classification)||"SECRET_IND".equals(classification))){*
                *row.setAttribute("DcnRequired","yes");*
            *}*
            *else {*
                *row.setAttribute("DcnRequired","no");*
               
            *}*  
             if (expected == null){
                row.setAttribute("PaperworkNeeded","no");
            }
            else if (expected != null) {
                 row.setAttribute("PaperworkNeeded","yes");
            }  
            if (foriegn == null || "N".equals(foriegn)){
                  row.setAttribute("ContractRequired","no");
                  row.setAttribute("AttentionRequired","no");
                  row.setAttribute("PublicDomainRequired","no");
              }
              else if  ("Y".equals(foriegn))
              {
                  row.setAttribute("ContractRequired","yes");
                  row.setAttribute("AttentionRequired","yes"); 
                  row.setAttribute("PublicDomainRequired","yes");
                  
              }
              
    
        }   
    Co code
          if ("UpdateValidations".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))    
          {        
            am.invokeMethod("handleShipmentUpdateValidations");    
            } 
    and ppr UpdateValidations event name

    Published by: user1000 on September 28, 2010 08:45

    Published by: user1000 on September 28, 2010 08:56

    Krishna

            if ("N".equals(foriegn) &&
            ("CONFIDENTIAL_IND".equals(classification)||"SECRET_IND".equals(classification))){
               row.setAttribute("DcnRequired","yes");
            }
            else {
                row.setAttribute("DcnRequired","no");
    
            }
    

    Seems same code you wrote again. Try using above code.

    Yet one thing trying to debug when your code runs when you select foreigners there

    Thank you
    AJ

  • DENSE_RANK in partition based on specific groups

    Hello

    I'm looking for a function that can perform a dense row within a partition. However, the row should not be based on all the lines in the score, but grouped first by another field.

    i.e.

    Select
    -a load of other areas
    DENSE_RANK() over (PARTITION BY ID.
    ORDER BY time)
    as id_seq,
    Row_num() OVER (PARTITION BY ID.
    ORDER BY time)
    as id_seq
    table;

    The problem is that the dense_rank gives a new grade each single line (including all the fields in the select). However, I would like to have a new grade for each unique value in the field "category".

    I could group all of the query, but that will break another funstion analytical and case I which means that I have to completely separate the rank function.

    Is there a way to do this with a select?

    Thank you

    Dan
    http://danieljamesscott.org

    Published by: danscott on March 2, 2010 14:08

    Hello

    Sorry, I can't understand what you want.

    danscott wrote:
    Hello

    I'm looking for a function that can perform a dense row within a partition. However, the row should not be based on all the lines in the score, but grouped first by another field.

    i.e.

    Select
    -a load of other areas
    DENSE_RANK() over (PARTITION BY ID.
    ORDER BY time)
    as id_seq,
    Row_num() OVER (PARTITION BY ID.
    ORDER BY time)
    as id_seq
    table;

    The problem is that the dense_rank gives a new grade each single line (including all the fields in the select). However, I would like to have a new grade for each unique value in the field "category".

    That looks like you must "ORDER BY category".

    I could group all of the query, but that will break another funstion analytical and case I which means that I have to completely separate the rank function.

    Is there a way to do this with a select?

    I'm not there.

    Whenever you have a problem, you should post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.

  • Raising an event based on digital input? Treatment of a condition of emergency stop

    I'm working on a test sequence into LabVIEW.  I have a security which I am followed by a digital input the relay status, and I would like to pass to my failed state that I am in a State of emergency.  (In my case, this happens when a barrier is broken or emergency push button is pressed).

    It would be easy to do if I could use a digital input to trigger an event.  However, this doesn't seem to be possible.  I tried bind my digital input to a control, and then follow the State of the control as an event, but that doesn't seem to work.

    My main problem is that I can be in one of the stages of test 5 seconds approximately.  So far, I have not found a way to out or interrupt this step if my digital input changes state.  I can get it to transition to the failed state after the step in progress, but I want that it to transition immediately when the safety relay is broken.

    I've attached a picture that shows the basic structure of my program.  The actual program is much more complicated, so I hope this is enough information to get started.  I have stops in each loop attached together with the help of a subvi, which basically returns a Boolean TRUE if you press the 'stop' on the operator interface (it is one of the events of my structure of the event).

    It seems that it would be a fairly common situation that there must be some answer I'm missing.  Can anyone help? Thanks in advance...

    You need (somewhere) a loop that monitors the digital status and can detect the transition Fail.  The timing of this loop of 'surveillance' apply to how fast you can respond to failure.

    But now you need to trigger an event when this happens.  When I started programming in LabVIEW, I learned on the events of signs of value that could trigger programmatically a value indicator has changed.  However, a few years later I learned the user events, a more flexible method for generation "software interrupts' who have a number of advantages over value of signage.

    I don't know if you are looking for using LabVIEW or LabVIEW examples user events you'll find a good explanation for how to use these (use the Help Index, and then type user name).

    Bob Schor

  • event based sampling and exit

    Hello

    I have an application where I want to taste at the entrance of HAVE and deliver the output of AO based on the level of a meter. The meter measures the angle of a circular movement. When the angle changes at some levels, for example every 30 degrees, we want to take the extent of AI and deliver at the exit of the AO. Could someone tell me how to make this application? Thank you!


  • Create a custom event based on a time range

    I'm checking what past events have woken up my pc to sleep for the night. How can I set the custom display only all events between say 22.00 and 07.00 rather than having to go 24 hours every day. Furthermore, if this is not possible, can I just see beyond events that have become aware of my pc.

    Ron

    In paragraph 2.23 answered your initial question:
    http://www.gerryscomputertips.co.UK/syserrors6.htm

  • ISE 1.3 not allow authentication based on the group network

    ISE 1.3

    MS AD 2008R2

    Two groups: all employees, all students

    Problem: Students employee network connection

    I have two wireless networks, STUDENTS and EMPLOYEES. In ISE, I have two strategies for approval for these networks. In an effort prior to keep students to connect to the network employee, I set the permission policy:

    Employee: If (Wireless_802.1X AND AD1:ExternalGroups is equal to mydomain/accounts/all employees AND the AD1:ExternalGroups NOT_EQUALS mydomain/students/all students) then: Employee_Profile

    Unfortunately, it did not work. Students have their own username and password in AD and each faculty and staff member. I checked that students are using their identification and employee network connection information. Conversely, I can connect to the student network using the credentials of the employee. The main problem is with the students, employee network, they use all the applicable DHCP scope addresses.

    I need to not allow the network connection used by students and the network of students by employees.

    Any help would be appreciated!

    Kevin

    Glad you were able to solve your problem! Also thank you for taking the time to come back and share the solution with everyone (+ 5) to me.

    If your problem is resolved, you must mark the thread as "answered":) ".

  • How to recover Access Policy based on OUD groups

    I have a table named userdata with 3 columns

    1 user name

    2 take

    3 OUDgroup(associated with user)

    I need to find the access policy attached with this OUD group and then retrieve the role associated with this access policy. Please help me

    Concerning

    SuperCoolDamnAwsome

    Hello

    By joining the POL, POG and UGP tables, we can get the name of role associated with the access policy.

    Here is the query to get the name of role associated with the access policy.

    Select p.pol_name, u.ugp_name, u.ugp_rolename in pol p, u of the PMU, pog where p.pol_key = pog.pol_key and you.ugp_key = pog.ugp_key;

    Hope this helps

    Thank you

  • Restart rank comes not correct based on column group

    Hello PL/SQL gurus and experts.


    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64-bit Production version
    I have table-

    drop table t2;
    create table t2(Hospital,Test_Range,Total) as select
    'Batra','> 10 Mph','20000' from dual union all select
    'Fortis','1-3 Mph','24500' from dual union all select
    'Max','5-10 Mph','10600' from dual union all select
    'Columbia','< 1 Mph','27700' from dual union all select
    'Nimhans','< 1 Mph','50000' from dual union all select
    'Meenam','< 1 Mph','11000' from dual union all select
    'Meeran','5-10 Mph','24625' from dual union all select
    'Mnagamani','> 10 Mph','12000' from dual union all select
    'Murari','> 10 Mph','20600' from dual union all select
    'Triveni','5-10 Mph','16500' from dual union all select
    'Batra','5-10 Mph','14700' from dual union all select
    'Max','< 1 Mph','170000' from dual union all select
    'Apollo Medical Centre','> 10 Mph','19000' from dual union all select
    'MLal','1-3 Mph','22600' from dual union all select    
    'Columbia','< 1 Mph','28900' from dual union all select
    'Asian','1-3 Mph','27900' from dual union all select
    'A.G.M.','< 1 Mph','22700' from dual union all select
    'Aashiana','5-10 Mph','23450' from dual union all select
    'Amar Hospital','1-3 Mph','21325' from dual union all select
    'Childs Trust','5-10 Mph','22775' from dual union all select
    'Crescent ','< 1 Mph','20025' from dual;
    

    I use the following DML-

    select Test_Range "Test_Range",
    SUM (Total) "Total",
    decode(grouping(Hospital), 0, Hospital, 'Total') "Hospital",
    decode(grouping(Hospital), 0, max(rank), null) Rank
    from
    (
    SELECT Hospital,
             Test_Range,
             SUM (Total) Total,
             DENSE_RANK ()
                OVER (PARTITION BY test_range || Hospital ORDER BY SUM (Total) DESC)
                AS RANK,
             ROW_NUMBER ()
                OVER (PARTITION BY test_range || Hospital ORDER BY SUM (Total) DESC)
                AS rk
        FROM t2
    GROUP BY Hospital, Test_Range
    )
    group by grouping sets((Hospital, Test_Range),())
    order by Test_Range, Rank;
    

    Get the following output-

    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    1-3 Mph       24500 Fortis                         1
    1-3 Mph       21325 Amar Hospital                  1
    1-3 Mph       22600 MLal                           1
    1-3 Mph       27900 Asian                          1
    5-10 Mph      14700 Batra                          1
    5-10 Mph      22775 Childs Trust                   1
    5-10 Mph      10600 Max                            1
    5-10 Mph      23450 Aashiana                       1
    5-10 Mph      16500 Triveni                        1
    5-10 Mph      24625 Meeran                         1
    < 1 Mph       20025 Crescent                       1
    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    < 1 Mph       50000 Nimhans                        1
    < 1 Mph       56600 Columbia                       1
    < 1 Mph       11000 Meenam                         1
    < 1 Mph      170000 Max                            1
    < 1 Mph       22700 A.G.M.                         1
    > 10 Mph      12000 Mnagamani                      1
    > 10 Mph      20000 Batra                          1
    > 10 Mph      20600 Murari                         1
    > 10 Mph      19000 Apollo Medical Centre          1
                 610900 Total
    21 rows selected.
    

    While I am looking for following output-

    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    1-3 Mph       27900 Asian                          1
    1-3 Mph       24500 Fortis                         2
    1-3 Mph       22600 MLal                           3
    1-3 Mph       21325 Amar Hospital                  4
    5-10 Mph      24625 Meeran                         1
    5-10 Mph      23450 Aashiana                       2
    5-10 Mph      22775 Childs Trust                   3
    5-10 Mph      16500 Triveni                        4
    5-10 Mph      14700 Batra                          5
    5-10 Mph      10600 Max                            6
    < 1 Mph      170000 Max                            1
    < 1 Mph       56600 Columbia                       2
    < 1 Mph       50000 Nimhans                        3
    Test_Ran      Total Hospital                    RANK
    -------- ---------- --------------------- ----------
    < 1 Mph       22700 A.G.M.                         4
    < 1 Mph       20025 Crescent                       5
    < 1 Mph       11000 Meenam                         6
    > 10 Mph      20600 Murari                         1
    > 10 Mph      20000 Batra                          2
    > 10 Mph      19000 Apollo Medical Centre          3
    > 10 Mph      12000 Mnagamani                      4
                 610900 Total
    21 rows selected.
    

    Kindly help me and thanks in advance for your time, effort and assistance

    Hello

    If you want a separate set of numbers (1, 2, 3,...) for each value of test_range, without seeking to hold account of the hospital, then the PARTITON OF only test_range, not to mention the hospital.

  • receive alerts of events based view

    Is there a way to define an alert message when certain types of errors occur in the view event log?

    No notification by email box at the moment.  You may be able to use SQL to query the database of events and send something.

Maybe you are looking for