Function or PCR

Hi Experts,
I have a scenario ,  employee needs to be paid one allowance based on grade ( IT0008)  & Nationality ( IT0002 ).
This amount will be varing time to time and hence the need arise to maintain in some custom view or T511K .
Please suggest the best option among Function or PCR.
My gut feeling is that to go function and query the view and populate the results.
Rather than going for PCR which require table query PA0002 and Grade  and frequent maintainance of T511K for each value for the combination of nationality and grade. Multiple level of nationality in the PCR.
Please advise.
Regards,
IFF

Hi,
I am getting error
TABLEP0002 Read table fields
VARGBNATIO Tab.field VVVVV v.ky
IN
OUTALTRFGR
I am getting error OUTALTRFGR is not a valid operation.
Even I am trying
TABLEP0002 Read table fields
VARGBNATIO Tab.field VVVVV v.ky
IN
TABLEP0008
VARGBTRFGR
I am also getting error : Variable argument may be only 8 characters long.
Please advise.
Regards,
IFF

Similar Messages

  • Function of PCR

    Hi Experts
    can u tell me the functions,and definition of PCRs.
    what is the function of PCRs in payroll exactly.
    please explain in briefly
    Thanks in advance
    Thanks

    Thanks a lot
    could u pls explain me briefly.
    How it is useful to calculate particular wage types for particular employee subgroups based on previously calculated payroll data, data on infotypes or other tables ?
    pls explain by giving an example
    Thanks

  • Access payroll variables from custom payroll function

    Hi All,
    I have a requirement to create a custom payroll function that returns some data from IT0006 and IT0032.
    I have written the code in PCBURZDE0, as the payroll is for Germany, it does read the data needed.
    My question is, how I can access the variables specified for the function in the payroll schema.
    Schema definition in PE01
    Zeile     Fkt        Par1  Par2 Par3 Par4 D Text
    000010 BLOCK BEG                              Fahrradleasing
    000020 _DFRD &PRO GEN
    000030 BLOCK END
    If I double-click Par1 for function _DFRD (&PRO), then I see he two variables I should write the data to:
    Zeile  VarArg. FZ T Operation        Operation Operation Operation Operation Operation *
           -------------+---------+------------------+---------+---------+---------+---------+
    000010                  AMT= PKWWRPRINT     *
    000020           1     AMT= ENTKM  PRINT
    So, as I understand I should write the two variables PKWWR and ENTKM, I have the values in the function code, but I don't know how to access these variables.
    Thanks for your help!
    Gyöngyi

    1 - PIT is a Function that is used in the Payroll Schema to "Process the Internal Table".
    2 - You mentioned that you had created a Custom Function to read IT0006 and IT0032, and I only suggested to you that you could have that Custom Function generate Information WageTypes and save them in the Input Table where they could then be used in PCRs.
    3 - I did not mention that you can read only one value through operation AMT, but I mentioned that using AMT=xxxxxx followed by AMT=yyyyyy means that the first statement is useless.  On the other hand, using AMT=xxxxxx followed by AMT+yyyyyy and AMT+zzzzzz will result in the amount being the total of the 3 values.
    4 - Please read some documents on Schemas, Functions and PCRs, such as in the Wikis on this site, and study your current Payroll Schema, it's sub-schemas, it's functions and the operations in it's PCRs.  Note that t-code pe01, pe02 and pe04 can be used to find some documentation on functions and operations.

  • Error in - PCR -G013 -

    Hi ,
    I got an error in GB Payroll -
    Under 'Gross Payment [time management, function - PIT , PCR - G013 , /001 Valuation basis 1
    I am getting an error , which says-  Division by Zero not performed -
    Do any one have any idea why the PCR is broken half way without performing the division , which it is supposed to do normally  -
    Normally the Rule - is processed in this way :
    Rule       ESGPCR       VaKey      Operations
    G013           3                             VWTCL 01
    G013           3                  5          WGTYP?
    G013           3                  5  ****   RTE=TSDIVP
    G013           3                  5  ****   DIVID ARR
    G013           3                  5  ****   ZERO= A
    G013           3                  5  ****   ADDWT *
    When the error is occurring the rule is truncated at step  4.
    Thanks & Regards
    Desia.

    Hi Brunda,
    Try switching to the table mode and again check the rule.
    If you don't get the error this time apply Note 945044 - Transaction PE02 does not recognize decision operations.
    This is a Basis problem.
    Regards,
    Dilek

  • Query Custom Infotype from a PCR

    Hi,
    Can we query a percentage stored in custom infotype from a PCR ? If yes, can you please explain how ?
    Appreciate if anyone could please help.
    Thanks,

    Hi,
    Create a custom function to do that.
    1. Go to t-code PE04, input function name and create
    2. Define country assignment and input/output parameters, if your function need access parameter(e.g function with PCR, p0014 xxxx), also define parameter list and values.
    3. Save and activate your function.
    4. Check the payroll driver again and will tell you form FU_XXXX  is missing, then create a include program with form FU_XXXX and implement your function logic.
    5. In payroll driver, find the proper location(customer function operation include) to include your program logic.
    Good luck,
    Chen Jian

  • PCR explanation needed

    Dear Consultants,
    Can any one explain below PCR
    Thanks & Regards,
    Navesh

    Hi Navesh,
    The function in PCR is ROUND. You can find help in PE04.
    If you go there you will see it's doing commerial rounding not round up or down. If you would do round up replace K in ROUNDGK100 with +. It will be like ROUNDG+100.
    Regards,
    Omid

  • Mapping of Perk value for Car transfer

    In our Company we have a scheme vide which Company's Car (which are Company's Assets) are transferred to the Employees at the depreciated value.
    As per IT Rules the same shall be calculated as Perk and added to the gross salary of the employee.
    The same is required to be mapped in the Payroll system of SAP.Can anyone suggest how to go about.
    With Rgds.,
    Rakesh Kumar
    [email protected]

    Hi,
      You woudl have to create a payroll function r PCR and add it
    in the schema before the tax calculations part.
    here move the amount to /127 annual perk.
    I think this should solve it.
    Points if helpfull.
    Regards,
    Sandeep.

  • Calculation of Perk value for Housing Deposits

    Our Company is offering Security Deposits for housing (mainly in case of Mumbai Employees)  as Interest free loans and getting it recovered in 36 instalments.
    The perk value as per IT rules shall be added in the annual gross salary of the employee.Standard interest rate @ 14% shall be calculated and added in the perk of the employee.
    We want to map the same in our SAP Payroll system.Can anyone suggest how to go about.
    With Rgds.,
    Rakesh Kumar
    [email protected]

    Hi,
      You woudl have to create a payroll function r PCR and add it
    in the schema before the tax calculations part.
    here move the amount to /127 annual perk.
    I think this should sole it.
    Points if helpfull.
    Regards,
    Sandeep.

  • Logical units

    Hi all
    I have read that "Personal calculation rules consists of operations and always processes Logical units."
    Plz elaborate what are logical units here.
    Thanks
    Nikki

    Hi,
    Functions in a schema retrive data required for the particular processing step.
    Some functions calls PCR to fine tune the data retrieved by them.
    PCR process datas in logical units is nothing but you segregate the retrieved data logically. For example you can mention how retrieved datas has to be processed further based on Employee Subgroup Groupings, if you want different calculations for different ESG groupings.
    Hope this helps.
    Regards
    Sairam Maharaj S

  • Diffrence between Schema IN00  ,INNR and INN1

    Hi,
    Pls let me know the differences between Schema IN00,INN1 and INNR and when we use which one?
    Regards,
    Anusuiya

    Dear
    in Schema IN00 we have sub schema INN1 , INNR 
    the first one is related to Gross to Net payment , Which includes all the statutory related function and PCRs the next one is relaed to Recovery of rounded amount
    Please take the help of F1 and read the documentation

  • Function to read CRT WT in PCR

    Dear Experts,
    I want to querry a CRT wage type in a PCR. I hav written the pcr.
    What function should i use to call that pcr. I tried with Actio, PIT but its not Iinput IT is passing as it to output IT.
    Please tell me how can i fix this issue.
    Charle

    Process PCR with function PIT, and use operation AMT=CYxxxx, NUM+CMxxxx or something similar, but don't forget that it will read the CRT of the previous Payroll results.
    I have one where I add the previous value of CRT to the WT's current value (AMT+CYxxxx) in order to create a temporary variable (ADDWT& xxxx) showing what will be the CRT value at the end of the current payroll period.

  • 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

  • Functions used to edit wage types using PCR

    Hi;
    Could anyone tell me what are the functions that are used to edit wage types using PCR.
    One right ans is PIT(Process Input Table).
    Is it possible to use WPBP for editing wage types using PCR?
    Please share your thoughts!!!
    Ramesh S.Prabu

    Hi Dilek;
    PE04 gives the whole list of functions and operations we can use.
    But as per i know, when we can categorise:
    Functions that imports infotype data are:
    WPBP
    RAB
    P0015
    P2010
    Function that process data according to the entries in the customizing table is:
    PAB
    Function that edit wage types using PCR is:
    PIT
    Is there any functions(particularly GWT, WPBP) that we can add in any of the above categories.
    Thanks for your time.
    Ramesh S.Prabu

  • MSS PCR followup function

    One of the standard PCR form scenarios (SPPD - Internal Transfer - Enhanced) does not have a "Change Form" follow-up function.  Does anyone know why it does not have the function, as other similar scenarios do have this follow-up function?  We are on ERP 2004, and even checking a resource that has ERP 2005 has indicated that this followup function does not exist for that scenario.  For the customer specific scenario, we added the followup function using the same function module as was provided for the same followup function in other scenarios, however, when changing the effective date on the form, an error is delivered stating "No positions were found".
    Can anyone shed some light on this?  Anyone else find this little interesting? 
    thanks in advance.

    Hi Suresh
    All required ESS/MSS transports have been imported from 000.
    We also compared to other ECC 6.0 system and the same standard scenarios/follow up functions exists in both systems.  This leads me to believes that all the required tables/objects are imported .
    The form opens, and a number of the other fields can be changed successfully, EXCEPT the effective date field.  Other similar scenarios using this follow-up function allows successful change of the effective date field.  Those scenarios are using the same function module to open the form.  It does not appear to be the function module for the form, but may some other logic that takes over upon form validation.  The initiator of the PCR is able to choose any date they wish for the effective date.  During the approval process, 1st and 2nd level approvers have no ability to change the effective date.  Their purpose is to either Approve, Reject or Send back to Author.  The back end processor must sometime change the effective date based on business need.  This is where the problem exists.
    thanks,

  • Some Questions on Time Management PCR's and Functions

    Hi Experts,
    I have Confusion while i am reading some PCR's related to Time Management. Please clarify..
    1. "FILLPV T "    why we are using this operation and what is the need?
    2. "OUTTPORIGS" what is the origin statuses and how many origin statuses are there in SAP and is there any table related to this please tell me.
    3. What is the difference between RPTQTA00 and RPTIME00?
    Please help me
    Thanks.

    Hi All,
    Please give me some examples to explain FILLPV. so that it can help me to understand easily.
    and how many ore there origin statuses are there in SAP.
    What is the INTKY operation why we are using that?
    How we can delete the Time Evaluation Results?.
    Thanks.

Maybe you are looking for

  • SWF in SWF sound problem

    Hi, I made a preloader, witch is a SWF file with a progress bar and a container, in this container will be loaded the page SWF witch is a flash presentation, my problem is that the page SWF has sounds for buttons over state, and if I run the SWF it w

  • Error In sub controcting

    hi friends, after service entry sheet , while doing ML81N i am getting some error like  "RC=     3  M8                   147 Account determination for entry 9000 WRX 0001 not possible" i maintained WRX for service valuation class also and i tried wit

  • Pan & Zoom effect in FCP 6

    Hello everyone, New to this forum and struggling with FCP to perform zoom and pan effect on scren cast movies. Can anybody give me som tips and tricks on how you best approach this or recommend a good effect for it? Thank You

  • Mail not working on macbook pro

         I have no problem accessing mail on my iphone or ipad 2, but on my macbook pro all i get is a spinning gear wheel and a triangle telling me to verify my setting. I've looked til I'm blue in the face and I cant work it out, anyone help!

  • Frame Detection Actionscript 2.0 Flash CS3?

    I'm wondering if there is a way for when multiple movie clips show certain frames, something could appear? For example, I am making a Dress Up Game, but I want other characters in it. The only problem is I want them to be unlockable with certain item