PCR Operation

Dear Experts,
I am new to PCRs,
I am want to to subtract values in one wage type with other. what operation i should use?
How can i do this?
Please help me.
Charle.

Hi Charle,
Wagetypes in PCR have 3 place holders for value RATE, NUMBER, AND AMOUNT, used in PCRs as RTE, NUM, and AMT.
Assume you have wagetype XXXX and YYYY. If you want to deduct the amount held in XXXX by the amount held in YYYY, then write a PCR for wage type XXXX and add the following:
AMT- YYYY
ADDWT *
where XXXX is the wage type and the line ADDWT * will add the values back into the IT table (Assuming you are dealing with the IT table, otherwise ADDWTE* will add it to the RT table).
Here is a link that helped me alot when i was started writing PCRs.
http://saphrexpert.blogspot.com/2008/09/schemas-and-personnel-calculation-rules.html
Chirag.

Similar Messages

  • PCR Operations

    Dear Experts,
    as per the PCR Operations such as VARSTABSWD
    I know that the operation itself VARST "Provides General Fields"
    and I know that VARSTABSWD as a whole tells me whether the EE is absence the whole day or not.
    but how do i get a complete list of the Second part of the operation (and what is that second part is called?? "Operand??")
    for example VARST could take
                     ABSWD
                     FREE
                     LAST
                     FIRST
    what are those values called and how do I get the whole list ?? (and this applies for all PCR Operations not only VARST)
    Thanks in advance
    Rovanna

    They could be found in the documentation maintenance transaction TCode: PDSY
    Document class: Operation(Time Management)
    Object Name      : VARST
    then all possible variations for VARST are mentioned with their description

  • PCR Operations/Functions

    Hi All,
    Can you pls let me know the operations to read  employee start date, a date type from IT 0041and leave start date in the PCR.
    Thanks,
    Karunakar

    Hi Karunakar,
    I doubt whether you can read the exact dates in date specification. But i have used those dates fo date comparision with current date.
    You can use HRS operation to fill the difference between current date with date specification.
    With Regards
    Shyam V

  • Time Schema & PCR - Operation Help

    Hello Gurus,
    I have a scenario where in I have to change the processing type / time type class in a PCR. I know that the configuration can be done for this in table T555Y table for this. But my requirement is that I should be doing this in a PCR in the custom schema. I am looking for a operation like colop XXXX , which changes the time type. I need to change the processing type / time type instead.
    FILLP operation does not serve the purpose as it can change the processing type entry in TIP table but not the processing type / time type entry in TIP.
    Any help in this regard is much appreciated.
    Thanks,
    Saroj.

    Hi,
    although SAP - documentation provices the following info:
    The processing type/time type class is determined when the time data i
    imported. For absence and attendance records from infotypes 2001/2002,
    this class is read according to the subtype in the "Absence: Time
    Evaluation" table (T554S), in the "Processing type/time type" field.
    For all other time data, field TIP-CLTIM has an initial value of "00".
    Field TIP-CLTIM can be queried using operation OUTTP and changed using
    operation FILLP.
    I can't figure out which parameter to use. Nor via documentation nor via some searching in the relevant coding for operation FILLP.
    Wilfred.

  • Operations from PCR in simple english.

    NUM= BWGRL
    NUM= PLANS
    NUM?0
    ZERO= N
    GCY X112
    ADDWT
    above are some of the operations from PCR  X012 Calculate valuation bases for alternative payment
    as we know, there is a logical meaning for all the operations listed above however there must be a simple English explanation for the same. I have created this thread so that all these technical operations can be deciphered in simple english.
    One example i would like to include is as follows
    ADDWT
    ADDWT     blank     -     Means Add Wage Type to      Output table(OT)
    ADDWT     A     -     Means Add Wage Type to      Previous employer table (VAG)
    ADDWT     C     -     Means Add Wage Type to      Cumulation table(CRT)
    ADDWT     D     -     Means Add Wage Type to      Difference table (DT)
    ADDWT     E     -     Means Add Wage Type to      Results table (RT)
    ADDWT     G     -     Means Add Wage Type to      Gross results table (GRT)
    ADDWT     H     -     Means Add Wage Type to      Alt. results table (AIT)
    ADDWT     I     -     Means Add Wage Type to      Input table (IT)
    ADDWT     L     -     Means Add Wage Type to      Results table last payroll (LRT)
    ADDWT     M     -     Means Add Wage Type to      Incentive wages results (LS)
    ADDWT     N     -     Means Add Wage Type to      Loan (LO) (can only be used with function P0045)
    ADDWT     O     -     Means Add Wage Type to      Output table (OT)
    ADDWT     S     -     Means Add Wage Type to      Cumulated and variable info (EX/ES)
    ADDWT     U     -     Means Add Wage Type to      Difference table (DFT)
    ADDWT     W     -     Means Add Wage Type to      Wage maintenance table
    ADDWT     X     -     Means Add Wage Type to      Cumulated tax table (SCRT)
    Please share your understandings of as many operations as possible as it can help non technical consultants understand the the meaning of operations easily.

    I believe that SAP has tried to translate in "simple english" the documentation of operations, and the same could be said of functions and features.  The problem is trying to explain all possibilities.
    For example, the documentation for operation ZERO= mentions that "Operation ZERO= initializes fields in the  current header entry of a table or variable" and that it's syntax is OOOOOSVVVV where OOOOO is the operation (ZERO=), S is the operation sign (blank or &) and VVVV is the name of the temporary variable or the field.  So:
    ZERO= RNA     means zero out the values in the Rate, the Number and the Amount fields of the WT being processed
    ZERO=&9999   means zero out the temporary variable 9999 (in table VAR)
    ZERO= N          means zero out the value of the Number field of the WT being processed
    When it comes to Payroll operations RTE, NUM or AMT, there are over a dozen operators and a multitude of operands, these last ones divided into 5 different structure variants, as in
    NUM=X nnnn           ......Wage types
    NUM=Xnnnnn           ......Table fields
    NUM=nnnnnn            ......Direct values
    NUM= nnnnn            ......Report layout fields (with one space between = and nnnnn)
    NUM=    nnnn          ......IT wage types (with two spaces between = and nnnn)
    The 2 examples in your PCR correspond to the 4th variant (a space followed by 5 characters) so they relate fo Report Layout Fields.  If you drill down in the documentation for operation NUM, 6 places operands, 4th variant, Record Layout Fields, you'll notice that BWGRL corresponds to Valuation basis per hour.
    But to come back to your PCR, operation NUM= BWGRL is useless since it is followed immediately by NUM= PLANS, which is like saying: Replace the number field by the Valuation basis per hour and replace the valuation basis per hour by the position (PLANS), the second instance of NUM= overwriting the first one.

  • Schemas and pcr's

    Hello every body,
                      i am little bit confused about  schemas and pcr's could someone tell me a website or any document where i can understand them easily.
      Thanks
    srikanth

    Hi Srikanth,
    Check out this document <a href="http://www.hrexpertonline.com/downloads/08-03.doc">Relationship of Payroll Driver, Schema (Functions), PCR (Operations) on www.hrexpertonline.com</a>
    Also see <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm">SAP help on HR Tools</a>
    Regards,
    Ahmad

  • PCR to equally distribute amount across WPBP splits

    Hi All
    Is there a PCR operation I can use to equally distribute an amount across WPBP splits?
    For example:
    WT currently processed as below (if a WPBP split occurs):
    /0Z1 02 50.00
    I need to write a PCR which then sets the WT as follows:
    /0Z1 01 50.00
    /0Z1 02 50.00
    I've tried the many WPBPC operations but they don't seem to work correctly for this.
    Any help would be appreciated.
    Thanks

    you can check the standrad PCR  U111 for the reference
    OPIND
    ELIMI A
    PRINT
    WPBPCD  add this for the custom specificatin of PRCL 47  for Rule X011

  • Import payroll hours from INF 2002 to table TIP

    Hi Gurus,
    is it possible to update number of hours field in TIP table according to Payroll Hours from infotype 2002 ?
    or :
    let's say i've created rounding rules AA in V_T559R
    can i call that rounding rules AA from PCR ? coz i read this in OPET ROUND documentations :
    Syntax Variant 2                                                                               
    OOOOOxynn                                                                               
    OOOOO       ROUND       Name of operation                                                                               
    x                       Rounding type                                
                              Use as in variant 1                                                                               
    nn                      Rounding rule                                
                  nn          nn represents the 2-character rounding number
                              from the "Rounding Rules" view (T559R).                                                                               
    Procedure                                                                               
    Times are rounded according to the rounding rule from the "Rounding  
      Rules" view (V_T559R). You can define as many rounding rules as you  
      require in this view.                                                
    what should i do?
    thanks b4

    In a PCR, operation FILLPN will update the number of hours field of the current TIP entry with the current value in the HRS variable.
    Is that what you mean?
    Regards
    Simon

  • What is MULTI Operator in PCR

    Dear Experts,
    Can anyone please brief me regarding the function MULTI  Operator in PCR from where the values are captures in the field AMT,RTE,NUM.It is Payroll Operator.Thanks well in advance.
    With Regards
    Shaik

    MULTI: Multiply
       Object
         Operation
       Use
         This operation multiplies two fields of the current entry of table OT
         and stores the result in a third field.
       Input
         The operation processed the following wage type fields:
         o   NUM (Number)
         o   RTE (Rate)
         o   AMT (Amount)
       Syntax
         OOOOO xyz
         OOOOO       MULTI       Operation name
         x                       first  factor
         y                       second factor
         z                       product
         For x, y, and z you can use the following parameters:
         o   N for the Number field (see operation NUM)
         o   R for the Rate field (see operation RTE)
       o   A for the Amount field (see operation AMT)
    Processing
       In theory each field can by multiplied with any field. However, not all
       the possible multiplications are useful.
       For example, you can multiply the Amount field by the Rate field.
       However, both fields are linked to the payroll currency, for example
       10000 ESP and 5000 ESP/h. The result in this case is ESP squared/h. This
       value cannot be mapped usefully in any of the fields Amount , Rate or
       Number.
       This peculiarity should be taken into account particularly for
       currencies with more or fewer than 2 decimal places. The number field is
       interpreted differently from the fields amount and rate, which are
       always seen together with the payroll currency. Currencies, that have
       more or fewer than two decimal places cannot be stored directly in the
       number field.
       Possible multiplications

  • PCR Social security: want to use wage type amount in decision operation

    PCR Social Security: Want to use wage type amount for comparison  
    Posted: Oct 21, 2010 11:00 AM                                  Reply
    Dear Guru's,
    hope u'll b fine and enjoying good health. Below is PCR for social security that I hav currently configured. Its working fine. However I have another scenario to add in this PCR.
    Existing PCR works on the following logic
    6% of Gross pay if employee's pay less than or equal to 10,000/-.
    KZPESI=10000 from T511K
    KZMESI=6 from T511K
    IZPESI=600 from T511P
    Now i want to add another comparison. also calculate Social security for employee those hire on pay less than or equal to 10,000 but currently have salary greater than 10K. for this I'll enter Social security amount in IT0014 subtype 6004. I
    ZSSM Personnal Calculation Rule ZSSM
    3
    6004 Social security Contrib
    AMT= 0001 Set
    AMT+ 0002 Addition
    AMT+ 0003 Addition
    AMT+ 0004 Addition
    AMT+ 1001 Addition
    ROUNDGK100 Round AMT to next
    AMT?KZPESI Comparison
    <
    AMT*KZMESI Multiplication
    AMT/100 Division
    RTE=TKSOLL Set
    RTE-TKAU** Subtraction
    ROUNDGK100 Round AMT to next
    ADDWT * OT Output table
    =
    AMT/TKDIVI Division
    RTE=TKSOLL Set
    RTE=TKAU** Set
    MULTI ARA Multipl.amt/no/rate
    AMT=IZPESI Set
    ROUNDGK100 Round AMT to next
    ADDWT * OT Output table
    >
    if there is a value in 0014 subtype 6004 then
    AMT/TKDIVI Division
    RTE=TKSOLL Set
    RTE=TKAU** Set
    MULTI ARA Multipl.amt/no/rate
    AMT=IZPESI Set
    ROUNDGK100 Round AMT to next
    ADDWT * OT Output table
    Want to know how I can use wage type amount in comparison. look at the above lines in bold where i want to apply
    kindly help
    Edited by: Imran on Oct 21, 2010 11:40 AM

    You say "if there is a value in 0014 subtype 6004 then...", so I will assume that you are talking of WT 6004 in Infotype 0014.
    So, in a PCR immediately after IT0014 is processed (with function P0014 in your schema), look for WT 6004.  If it exists with a number (or an amount), create a temporary variable to act as a "flag"  (as in ADDWT&6004 or ADDWT&HIRE).
    Then, in PCR ZSSM, you can query that temporary variable with the sequence of operations NUM=& HIRE NUM?0 (or NUM=& 6004 NUM?0 ). If the return value is =, it means that there was no IT0014 with WT 6004, and if the return value is * it means that there was.

  • Re: DIfference between Schemas, PCRS' FUnctions and Operations

    Dear SAPExperts,
    Can anybody pls tell me what is difference between Schemas, PCRS' Functions and Operations.
    Thanx in advance
    Regards
    Aniruddha

    Hi Aniruddha
    When the payroll driver is executed (for ex: PC00_M40_CALC for INDIA is executed) the schema IN00 (standard schema) is executed and it calls certain functions (functions may use Rules. Rules contain Operation) and also subschemas.
    Functions could be of four types
    1. Performing some payroll computations (E.g. INEPF function calculates the PF amount of an employee during payroll run)
    2. Calling rules (E.g. P0045 function calls a rule INLN to compute the loan details of a personnel number).
    3. Getting data from Infotypes (E.g. P0581 will get the data from Infotype-581 for payroll processing).
    4. For some decisions. (E.g. IF & ENDIF function is used to execute as per the true and false decisions) etc.
    When the PY is executed SAP uses lot of Internal Tables to store data and also provides data to other internal tables.
    The read and change access to Internal Tables is enabled using functions that are executed in a personnel calculation schema and using operations that are executed in personnel calculation rules.
    The following is just an attempt to provide some info on how Functions are processed during the PY Run. For ex: (functionality of subschema XIN0 and INBD)
    1. INITIALIZATION OF PAYROLL: When the Payroll is executed first the subschema XIN0 is called,   This subschema comprises the following main steps:
    I.     Specify program type (payroll or evaluation)
    II.     Set switch for database updates (YES/NO) all database updates are controlled via this switch (otherwise simulation)
    III.     Only infotypes from the HR master record which apply to the selected personnel number are read.
    IV.     All Time Management infotypes are imported.
    V.     Specify check against control record PA03 (test or live).
    2. READ BASIC DATA: Once the Initialization of Payroll is successful, the subschema INBD is called. This subschema reads the Basic data of an employee who is there in the Payroll execution. Basic Data includes, determining Employee Name, Reading Work Center/Basic Pay Data, Setting Financial Year Dates and Allowance Grouping Tables, Reading Previous Employment Tax Details, Reading Housing (HRA/CLA/COA), Reading Exemptions, Reading Income from Other Sources, Reading Section 80 Deductions, Reading Investment Details (Sec 88), Reading Provident Fund Contributions, Reading Other Statutory Deductions, Reading Car and Conveyance, Reading Long Term Reimbursements, Read ID Details. Function GON checks whether all the master data has been imported, no further processing of schema will occur unless certain data is present.
    The Subschema INBD calls the following functions in order to read the Basic Data:
    ENAME :
    Function ENAME reads the last valid name of the employee in the payroll period. The formatting used for the country in question is used when displaying this name.
    WPBP
    If an employee receives a pay increase within a payroll period, the Basic Pay infotype (0008) is changed and delimited as of a specific date. Two data records exist for one payroll period.
    During payroll, the system writes the Basic Pay wage type to the results table with two different indicators. These split indicators are a link to the WPBP table that contains the relevant values. The system takes into consideration both data records for the corresponding partial periods when calculating remuneration.
    ININI
    P0580
    P0581
    P0582
    P0584
    P0585
    P0586
    P0587
    P0588
    P0583
    P0590
    P185I
    GON :
                    Function GON checks whether all the master data has been imported. No further processing of the schema will occur unless certain data is present. Checking procedures vary from country to country. There must always, however, be a work center (P007).
    [Def. of Functions, Rules and Operations (copied from Raju's answer)
    Schema is a collection of functions
    A Rule is a collection of operations.
    An operation is a very basic piece of logic that is used, mostly, to manipulate wage types
    Best Regards
    Reddy

  • PCR XMOD and operation RTE=TSDIVP

    wat is the funcitonality of XMOD pCR, i read F1 in pe02.. but cud nt understand much.. plz. help me
    and also abt the operation plz....
    Thank you

    Operation XMOD sets the employee subgroup grouping for use in accessing tablesin Payroll..
    For example ESG grouping for PCR 1 will allocate the following groupings based on the MODIF valiues in the XMOD PCR
    MODIF A=01 --> Sets the Absence valuation rule Grouping for  accessing table T554C to 01.
    MODIF 2-01 ---> Sets the  Constant valuations Grouping for accessing table T510J
    etc...
    I hope this is clear enough...
    Edited by: Ahmed Salah on Mar 21, 2010 12:22 PM

  • UMOD PCR, MODIF operation

    Hi Experts,
    I am new to US Payroll module,
    Could any one help me in understanding PCR UMOD.
    I have gone through documentation but am not getting how operation MODIF works.
    Thanks & Regards,
    Jignya

    Hi Jignya,
    There are many tables relevant for absence valuation T554C, deduction limits T51D1, wage type valuation T510J, valuation of wage type for month end accrual which varies for employee grouping.
    This grouping is set to read from respective tables that you can look at documentation of MODIF in PCR.
    Employee grouping for different tables are read using this modifier.
    e.g. If your PCR has MODIF A=01 then it would mean that Absence valuation for respective country grouping (determined by Schema for country) would read all absence valuation rules under 01 employee grouping (for some tables also known as payroll modifier).
    Please note that these groupings are different than ESG grouping for PCR.
    Hope this helps.
    Thanks,
    Ameet

  • MSS-mySAP ERP 2004-PCR- Processing exception during a "Render" operation

    HI,
    When i navigate to the Personnel Change request,select an employee and select the scenario,say promotion,i get the error:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "Render" operation.Request start time: Tue May 09 16:41:47 IST 2006com.adobe.ProcessingError: Invalid XDP error while configuring the XMLForm module.Please validate the form template and try again: com.adobe.document.xmlform.InvalidXDPException:
    <b>After activating the ADS Trace,the deafult trace displays the following</b>
    1.5#0013D486EEA9004E0000001A00000D50000413A81B84E899#1147512643993#com.adobe.AdobeDocumentServices#com.adobe/AdobeDocumentServices#com.adobe.AdobeDocumentServices#ADSUser#615#SAP J2EE Engine JTA Transaction : [0ffffff8effffffc43e000ffffff86]###24f7cbf0e26311dab6b10013d486eea9#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/System/Server#Plain###Error while parsing form template: C:
    WINNT
    Temp
    adobewa_J2E_00_575593923
    DM805001759176685846.dir
    DM-4339515885940827304.tmp
    java.lang.Exception: SAX exception while extracting properties from form template: C:
    WINNT
    Temp
    adobewa_J2E_00_575593923
    DM805001759176685846.dir
    DM-4339515885940827304.tmp Application: PcrApplication Form: http://<server name>:50000/webdynpro/dispatcher/sap.com/msspcr/PcrApplication/wd_key0_1147512638024/unknown Client: 1
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Bad PUBLIC declaration(:main:, row:1, col:22)(:main:, row=1, col=22) -> com.sap.engine.lib.xml.parser.ParserException: Bad PUBLIC declaration(:main:, row:1, col:22): Trans(Sat May 13 15:00:42 IST 2006)#
    #1.5#0013D486EEA9004E0000001C00000D50000413A81BE28C3F#1147512650134#com.adobe.AdobeDocumentServices#com.adobe/AdobeDocumentServices#com.adobe.AdobeDocumentServices#ADSUser#615#SAP J2EE Engine JTA Transaction : [0ffffff8effffffc43e000ffffff86]###2a5eb360e26311dab9e10013d486eea9#SAPEngine_Application_Thread[impl:3]_30##0#0#Error#1#/System/Server#Plain###Processing exception during a "Render" operation.
    Request start time: Sat May 13 15:00:42 IST 2006
    com.adobe.ProcessingError: Invalid XDP error while configuring the XMLForm module.
    Please validate the form template and try again:
    com.adobe.document.xmlform.InvalidXDPException: IDL:com/adobe/document/xmlform/InvalidXDPException:1.0
    <b>I have done the following steps</b>:
    1)Copied the current scenario customizing from client 000 to the current client using transaction QISR_SM29 (object lists P46C_ISR_SCENARIO and AX8_ISR_SCENARIOX).
    2)Indicated the server on which the Web applications (Web Dynpro) are located in the IMG of the mySAP ERP system under Cross-Application Components> Internet/Intranet Services> Internal Service Request> Scenario Definition> Define Scenarios --> Details --> Additional Data for Scenario.
    If i preview the forms via transaction SFP, say form ISR_FORM_SPPM
    The form is displayed in German.
    <b>What all configuration eneds to be done?how to resolve the Error?</b>
    Regards,
    Malika

    Hi Malika
    upgrade the SP level to 11. (mandatory)
    u also upgrade ur SP level of R3 ECC 5.0 with help of BASIS
    don't use that link provide in note 849730.
    download it from following.
    service.sap.com/swdc->sap support package ->entry by application group-> sap application components->sap ERP ->sap erp 2004 ->entry by components ->sap xss (self services)
    from SAP ESS 100 download following file.
    ESS11P_5-10002965.sca Patch 5 for SAP ESS 100 SP11 
    https://smpdl.sap-ag.de/~swdc/012002523100000684532006D/ESS11P_5-10002965.sca?_ACTION=DL_DIRECT
    from SAP MSS 100 download the following file
    MSS11_0-10002964.sca SP11 for SAP MSS 100 
    https://smpdl.sap-ag.de/~swdc/012002523100000037692006D/MSS11_0-10002964.sca?_ACTION=DL_DIRECT
    from SAP PCUI GP 100 download following.
    PCUIGP011P_1-20000568.sca Patch for SP11 of SAP PCUI_GP 100  
    https://smpdl.sap-ag.de/~swdc/012002523100000287102006D/PCUIGP011P_1-20000568.sca?_ACTION=DL_DIRECT
    regards,
    kaushal

  • Operations in PCR

    Hi Gurus,
    May i what is the meaning of following  steps of a PCR:
    HRS=M9504 
    HRS+D9504
    ADDDBZR06Z
    regards,
    Evani
    Edited by: EVANI on Dec 8, 2010 12:43 PM

    Hi,
    Find here the explanation of the rule lines:
    HRS=M9504 means Hours equals to time type 9504 in the no. of hours field from table SALDO
    HRS=D9504 means hours equals to time type 9504 in the no. of hours field from table TES than
    ADDDBZR06Z means Overwrite the time type ZR06 value
    Regards
    Chandrashekar

Maybe you are looking for