Skip to Content
author's profile photo Former Member
Former Member

Add wagetype to payroll result

Hi experts, iam a beginner in SAP HCM

Can you please help me in solving this issue ?

the attached screenshot for PCR calculating amount of wagetype 2001 devided by 30 then *8

i want the result to be in wage type /008 then appear in payroll data

Thanks in advance

pp.JPG (32.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Dec 04, 2014 at 02:32 PM

    Your Syntax is not correct

    Give Double Space betweem AMT= 2001

    and when you say company code it can be from single character to four character




    ADDWT *


    ADDWT *


    ADDWT *


    ADDWT *


    ADDWT *

    Your PCR should have logic for company codes other than 2000 even though if you are not maintianing in the configuration

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2014 at 06:13 PM

    In your Payroll Schema, this PCR will be called by a function. Since it seems that you want to read the amount of WT 2001 from the Input Table, you will probably use function PIT, using Par1 to enter your PCR and the values of Par2 and Par3 (blank/blank, GEN/blank, blank/NOAB, GEN/NOAB) will depend on how you build your PCR.

    Since you want to process WT 2001, you could modify it so that for ESG * and WT ****, the only operation would be ADDWT *, but for ESG * and WT 2001, you would make your decision on the Company Code and then on the termination.

    As mentioned by Sikindar, it is always better to consider all return values to your queries, so for operation OUTWPCOMPY, there should be at least 2 return values (**** and 2000).

    Finally, after PPPAR A, since the operations are identical no matter the return value, there is no need to make the decision (you make a decision when the output will differ depending on the return values), and before operation AMT= 2001, you may want to add operation ADDWT * if you don't want to loose WT 2001 from the Input Table.

    Note that your PCR could be called by function ACTIO if the amount from WT 2001 would already be in a temporary variable and you were to replace AMT= 2001 by AMT=& 2001 in your current PCR.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2014 at 03:31 PM

    I am not sure but shouldn't AMT be without space i.e. AMT=2001

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2014 at 11:38 AM

    I have applied all what you said but still the wagetype /008 not added to the payroll result 😔

    Please provide me with any idea or advise

    Thanks and regards

    Add a comment
    10|10000 characters needed characters exceeded

    • If you are calling your PCR through Function PIT and are using GEN and NOAB as Par2 and Par3, that means your PCR will process each WT in the Input Table.

      For each WT, it will start by checking the Company Code, and if it's not 2000 it will trow an error (because you have not given anything else as a possible return value - look at Sikindar's comment).

      If it's Company Code 2000, it will look if there is a termination in the current payroll period, and this is where you have an other problem. No matter what is the return value, the processing will be identical (so there is no need for operation PPPAR A) Next, the WT being processed is not returned to the Input Table (so it will "disappear").

      What are the other Company Codes that exist?

      In the Input Table to PCR YPP6, does WT 2001 exist?

      What should happen when there is a termination in the period (month),and what should happen when there is no termination in the period?

      . Just found your double post, where you take into account a company code that is other than 2000 (but you don't complete it with operation ADDWT * , thereby "loosing" all WTs from the Input Table for employees from other Company Codes) and where you query the amount from /559 instead of from WT 2001. Again, the sequence of operation is identical wether there is a termination or not (so you would not need to use operation PPPAR A), and for each WT from the Input Table being processed you would add an additional amount into /008.

  • Posted on Dec 08, 2014 at 03:40 AM


    You can use both operations ADDWT /008 (To move to IT Table for further process)

    and also you can use operation ADDWTE/008 (Move to RT Table)

    Try, this will help you out.

    Thanks & Enjoy

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.