Urgent:How to differentiate retro and payroll run in Fast Formula

I have written one fast formula. This fast formula is attached to “Basic Salary” element.
“Basic Salary” element has retro and proration setup.
We are using Enhanced retro process.
Enhanced retro process is calling this Fast formula to check the difference amount.
Similarly oracle payroll will also call the same fast formula while running payroll.
Now our requirement is:
Few lines in Fast formula should not execute when FF is called by retro, but it should be executed when it is called from Payroll.
So how could we know, whether FF is called by retro process or by payroll?
If I have some way to find this, I can execute this code by using this condition.
Any pointer in this regard will be highly appreciated.

None of the above.. just write one custom PLSQL function which will take the payroll action ID as context parameter & will return the action_type column from PAY_PAYROLL_ACTIONS table.. to the Fast formula. L is for Retro run.
In the fast formula, place your specific code in the if condition.
Attention: Making the formula calculate differently in normal payroll & retro can cause you serious consistency issues in payments/deductions and debugging them might become impossible in the long run.
Edited by: Rajkiran Bingi on Sep 22, 2011 7:00 AM

Similar Messages

  • Urgent : How to create Manager and Reportee of a User in Embedded LDAP in W

    Hi All,
    I have created user in Weblogic Server Embdeed LDAP (Console-->SecurityRealm)
    however how can I assign another user as Manager of this user and some other user as reportee of this user.
    Basically how to create Manager and Reportee of a User in Embedded LDAP in Weblogic 10.3.5
    ie I have a user A and user B created in Security Realm.
    Now I want user A to be as Manager of User B so that when I use getManager() function in Human Task,I get A as Manager of B.
    Thanks
    Edited by: Vivek on 28 Sep, 2011 3:54 AM

    To get an idea check these links.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/aaa1a890-0201-0010-eb93-ae3d2bb74a78
    BSP/HowTo - Customizing the design of System Logon page in NetWeaver '04
    -Aman

  • URGENT:HOW TO COMBINE CLUSTER AND TRANSPARENT TABLE..WITHOUT USING FOR ALL

    how can we join bkpf and bseg without using FOR ALL ENTRIES.HOW DO I COMBINE THE 2 TABLES SO THAT I GET BETTER PERFORMANCE.
    START-OF-SELECTION.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
    belnr = i_bkpf-belnr AND "A/CING DOC NO
    gjahr = i_bkpf-gjahr AND "FISCAL YEAR
    hkont = p_hkont. "General Ledger Account"
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bseg
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    ENDIF.
    IF NOT i_bseg1[] IS INITIAL.
    LOOP AT i_bseg1.
    IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
    v_sumgl = v_sumgl + i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
    v_sumgl = v_sumgl - i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont NE p_hkont .
    IF i_bseg1-shkzg = 'H'.
    i_bseg1-dmbtr = - i_bseg1-dmbtr.
    ENDIF.
    i_alv-hkont = i_bseg1-hkont.
    i_alv-dmbtr = i_bseg1-dmbtr.
    APPEND i_alv.
    v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
    ENDIF.
    ENDLOOP.
    regards
    Essam.([email protected])

    Hi Friend,
      I see your code.. there is no other way than using for all entries for your situation.. how ever i saw ur code and a small recommandation in the change of code.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    if not p_hkont is initial.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    i_bseg[] = i_bseg[]1.
    delete i_bseg where hkont ne p_hkont.
    else.
      Your existing logic...
    endif.
    In this way you can avoide writing two selects on bseg..
    Thanks
    Mahesh

  • How to setup SNMP and start run it in Xserve

    hello, any one who can tell me how to configure the SNMP in Mac Xserve and how to start up it? Thanks in advance!

    A google search returned this document
    http://docs.info.apple.com/article.html?artnum=107012

  • How to differentiate cancellation and return

    HI All
    if Material document with movement type 201 is cancelled it will take 202 automatically and at the same time users when ever they want return the material to stores from cost center can use  202, by using MBSM we can find list of cancelled documents  similarly  is there any standard report to find the list of Returned goods via mvt 202, 
    thanks in advance

    hi
    i think what options priyanka have been given are correct
    while making the return u should tag that with some remark like some TEXT
    like for returns give RETURN in text field
    then u can create a report  from which u can find it out
    but  finding out the returns and cancellation is difficult in this case
    or
    what u can do is copy the movemnt 202 with some other and use that for the RETURNS
    so from this u can differentiate the eturns and the cancellation
    regards
    KI

  • Urgent : how to display tabular and layout of a table on a same canvas ?

    Hi all
    I am developing a form application in which a single table must be displaied in this way : two of its columns must be displied in a tabular way , and all of its columns including the two above will be displaied in a layout mode so that when the cursor is in specified record in the tabular display then the values of the remaining columns are displaied in the layout display.
    How can I do this ?
    Thank you very much indeed.

    Create 2 block each based out of same table
    - Display 2 columns in tablular fashion in first block
    - Display ALL column in layout fashion in second block
    - Create a master detail relationship from first block to second block
    In case you want only one block where 2 columns should be tabular and rest of them in layout, you can do the following
    1. Create a block in tabular with 5 records visible
    2. Open up property palette of all the items (except 2 which needs to stay tabular) and then go to "items displayed" and assign it a value of 1

  • URGENT - How can I cut and paste Entensions - Log?

    I am getting a slew of errors which are showing up in Extensions - Log on startup. I cannot find this log on disk anywhere and can not figure out how to cut and paste it so I can post the errors here.

    Hi David,
    You should be able to save the log to a file: right-click in the log window and select Save As.
    Thanks
    Blaise

  • How to differentiate parent and child node in af:treeTable ?

    Greetings,
    I have a requirement, I display master child view objects using <af:treeTable> component, When user expands a parent row, I have to make parent row is in read only and expanded(child) row in editable. To accomplish this I have to identify the 'node' whether it belongs to parent or child view object. In this example Tree table binds with EmpVO, There is a view link beteween EmpVO and DepartmentVO.
    <af:treeTable value="#{bindings.EmpVO.treeModel}"
    var="node"
    rowSelection="single" id="tEqSum"
    summary="Employee Summary"
    <af:column sortProperty="#{bindings.EmpVO.hints.LocCity.name}"
    filterable="true" sortable="true" width="90"
    headerText="#{bindings.EmpVO.hints.LocCity.label}"
    id="c3">
    <af:outputText value="#{node.LocCity}" id="ot21"/>
    expandAllEnabled="false">
    </af:treeTable>
    Thanks in Advance,

    Hi,
    You can find out the node depth by using
    #{bindings.<your_tree_binding>.treeModel.depth}Based on the depth, you can decide whether its a parent node or child node (for a 1 level tree- say dept and emp, the depth for parent would be 0 and for the child it would be 1).
    -Arun

  • URGENT - how do I convert and image from colour to black and white?

    Hi,
    I'm new to Java, and I really need some code to convert an image from colour to black and white! I would really appreciate any help, but since I don't know much about Java I would prefer some code or links to websites with the code.
    Thanks!!!

    http://forum.java.sun.com/thread.jsp?forum=5&thread=368759

  • MBP (retina) get hot and fans run so fast

    Dear All,
    I have MacBook pro with Retina Display. I use it for designing, programming and web browsing
    I notice when I'm running Adobe Ps and Ai with (Firefox or Safari of Google chrome) and Parallels, ( also online movies)
    getting very hot and I little nosie speed fans
    so how to solve this problem
    it's need to return it to App store?

    the things you are describing are all very process intensive in their own rights and very much so if all running together on the mac at once. this would be expected product behavior while doing the things you mentioned.
    you can do SMC reset which regulates the fan in the mac this article tells how to do that:
    http://support.apple.com/kb/HT3964
    basically unless you can limit the types of apps you run at one time this may be ongoing issue for you since it's normal for the mac to run hot when the processor is running hard

  • Can we debug the Rule durring payroll run ?

    Hi SAP-HR Experts .
    Dear Sir can we debug the Rule durring payroll run ?
    I meant to say that if we put many break points i std program of PE02 .
    and run the payroll of a employee then why system processing do not stops on
    thsoe break points ????
    i want to see how a rule processed durring payroll run .?
    Any help / suggestions urgently required ..........
    Kind regards : rajneesh .

    Hy RM!
    The follow includes are used to control RULES inside report payroll driver (HXXCALC0).
    You can try, using break points inside this:
    include rpcbof00.        " operations
    include pcbofbr0.        " OPERATIONS BEGIN-WHILE for special country
    include rpcbu109.       " OPERATIONS SUB-Routines 1
    include rpcbu209.       " OPERATIONS SUB-Routines 2
    include rpcbu309.       " OPERATIONS SUB-Routines 3
    include rpcbu409.       " OPERATIONS SUB-Routines 4
    include rpcbu500.       " OPERATIONS SUB-Routines 5 travelling expens.
    include rpcbu600.       " OPERATIONS SUB-Routines   incentive wages
    include h99cavera.      "LIN (ADDED) New average functionality
    include h99cavera_old."don't use old average oeration MEANV "XUL
    include rpcbua09.        " Accruals                      "YLHAHRK006605
    Regards!

  • How to make OC4J and IIS on diffrent machines ?

    Hi,
    How to make OC4J and IIS running diffrent machines. following document tells use "standalone ONS daemon",Can anybody tell what standalone ONS daemon means and steps to be done to make IIS working on diffrent machine
    http://download-west.oracle.com/docs/cd/B25221_03/web.1013/b25211/oc4jplugin.htm#i638738
    Thanks & Regards
    Vino joy

    sender,
    the quantize menu is in the top info box in the arrange.
    if you double click on it, an extended parameter box appears with a lot of quantizing options. also RTFM about this bit.
    in the sample editor, there is an audio quantize feature.
    but it is old, and probably hasn't been updated in ten years........try it, you
    'll prolly hate it.
    there is also a quantize audio/groove plug, in the special menu.
    it works....sorta.
    if you're talkin' drums, on seperate tracks, like kik on one, and snr on the next, etc., try strip silence to cut the loop/file up, then select same in the arrange trk and quantize this, as above. (info box).
    this does work well provided you know just where you want the feel to be.
    you could also try making a groove template of the original clip/loop and use this as a timing reference.
    this also works well if you can get a clean footprint of the audio.
    best,
    DR9

  • Count and Sum running total

    Can i sum and couunt running total in formula?.
    Please let me know.

    Hey, we can do count and sum functions in Running total.
    These functions are available in crystal reports for  summary fields.
    We can create  the running total based on the type of summary like Sum, count, max, min, distinct count, etc.
    We can do Evaluation for each record or on group or on each field  and also be done by writing a formula.
    We can  do count or sum by manual running total by writing a formula in the formula workshop.
    Based on our requirement we can use both functionalities.
    Please let me know  if you have any queries.
    Regards,
    Naveen.

  • How to use DFF value in BG_ABSENCE_DURATION Fast formula

    Hi All,
    I would like to know how can we use DFF values in BG_ABSENCE_DURATION fast formula.
    Can we pass them as input values?
    Also, when we use them as DATABASE ITEMS how does Fast Formula identifies them.
    For example I have created a DFF value HALF_DAY that can take either "YES" nor "NO".
    I tried to use that as input value but that didnt work, not sure if it is possible at all or not.
    I also tried to use that as Data Base ITEM, as follows:-
    IF (ABSENCES_HALF_DAY WAS DEFAULTED ) then
    duration = 'FAILED'
    invalid_msg = 'DFF not working'
    Any help will be much appreciated.
    Thanks,
    Avinash
    but i am getting following error when i access SSHR
    Formula BG_ABSENCE_DURATION: ORA-01403: no data found ORA-01403: no data found Cause: During the PL/SQL execution part, an Oracle error was detected. Action: Please refer to your system administrator.

    Thanks Vigneswar  and Avaneesh for your helpful comments,
    Actually I want to retrive the DFF value that I pass while applying the Leave Request and not that already stored in the data base. I checked and found that the query you have mentioned is retriving the data from base tables.
    select target.ATTRIBUTE6 -- Attrinute6 is database item ABSENCES_HALF_DAY+
    from    per_absence_attendances                target,+
    per_all_assignments_f                  ASSIGN+
    WHERE   sysdate BETWEEN ASSIGN.effective_start_date+
    AND ASSIGN.effective_end_date+
    AND    ASSIGN.assignment_id                  = 647--&B2+
    AND    ASSIGN.assignment_type                = 'E'+
    AND    target.person_id                      = ASSIGN.person_id+
    AND    target.absence_attendance_id  =+
    *(select max (absence_attendance_id)*
    from   per_absence_attendances+
    where  person_id   =  ASSIGN.person_id+
    and    date_start <=  sysdate+
    I have only added folloing lines In my BG_ABSENCE_DURATION FF
    DEFAULT FOR ABSENCES_HALF_DAY is 'XX'+
    if (1 = 1) then+
    duration = 'FAILED'+
    invalid_msg = 'DFF not working: '+ABSENCES_HALF_DAY+
    But evry time output is *"DFF not working : Yes"* no matter what the value I am passing while applying leave. This value "Yes" is stored in DFF attribute 6 for the test employee and I guess FF is retriving this value from DATABSE not from current transaction.
    Could you please help how to retrive run time data.
    Thanks,
    Avinash

  • How to Override Company and Cost Center for FI Posting from HR Payroll

    Current problem:  A company code has been 'merged' into another one and the old company code can no longer be used.  In the last payroll run, there was a rate change that caused a retro back to the time of the old company code and since the old company code and cost center were closed, the FI posting error'ed out.  To correct, we had to delete the offending pernr from the cluster and back out the rate change until we came up with a solution. 
    Investigation has revealed a process called 'Substitute Cost Centers', but we tested it and a 'flusher' cost center is required to be set up in the old company code and FI refuses to open it up. 
    Also, I've located 3 user exits for RPCIPE00, but I do not see where  company and cost center can be changed.  So I've tried to code my own BAdi, but there seems to be a header company code that I'm not getting.  The item company code and cost center seem to be doable, but I don't know how to change the header company code.
    I am new to HR and Payroll having spent the last couple of years in BI and before that I worked with the material master and Purchasing.  It is my humble opinion that the company should not have been 'turned off' until Payroll was finished with it and that means 2 years until we archive.  In reading about symbolic accounts, several times it is written not ever to delete them.  Seems to me company code is the same.  But surely I must be wrong and there is a solution that will make everybody happy. 
    I would appreciate any and all ideas.  Thank you so much.

    Amosha, thank you for your response.  Here is PCP0 that shows what I mean by 'header company code' that I don't see how to change (I re-ran pd 26 2008--bi-weekly payroll, btw):
    06/30/2009 Posting Document
    Run                      0000002791
    Company Code    0057
    Document            0000008174
    PostingCurrency  USD
    Reference           HRPAY00009
    Doc. Type            ZB
    Run Type             PP
    Posting Date        12/01/2008
    Documant Type   G/L Account Document   
    Document Date    06/30/2009
    Bus. Transaction HRP1
        There are error messages for this document
    Account Number with Text
    21301000   Accrued Salaries & Wages   CCTR 14515      ...
    20303998   HR P/R Doc Split                                               ...
    Messages for Document 000008174
    Error in document: HRPAY 0000008174
    The CO account assignment object belongs to company code 0001, not 0057
    Company code 0057 is now closed and has been merged into 0001.  Cost center 14515 in the above doc was populated by my clone of RPCIPE00 and call to my BAdI which retrieved current company and cost center from PA0001.  You can see from above that the 'header' data still shows 0057 and indeed, my version of RPCIPE00 only changes P_ITEM-BUKRS, P_ITEM-KOSTL and P_ITEM-SGTXT.  It looks to me that fm HRPP_TRANSLATE_FICO gets the 'header' company code afresh.  I was planning to leave WPBP-BUKRS (and all other Payroll data) alone (ie, not override company code).
    As for your other question, we post retros to /551 and /552. 
    Thanks again.

Maybe you are looking for