Skip to Content
avatar image
Former Member

Rule in PE51

Hi All,

Can someone please help me in understanding the Rule below. I am not able to get any clue on this..

Regards

Mohinder

rule.png (26.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 07, 2015 at 04:48 PM

    Hey Mohinder,

    What country grouping is this form in and which rule (1-9) are you not understanding? All of them?

    Thomas

    Add comment
    10|10000 characters needed characters exceeded

    • Basically, a rule is called from a single field or line layout in a form (look under subobjects on pe51 screen) . What a rule does is compare a field from a table to a value you specify in column 'value 1'. If the field is true, then it populates the field on the form with the value specified in columns 'table' and 'new value'.

      For example, rule #2 is comparing FPBEG in table XRT to 'EVP-BEGDA' (which is  pay period begin date) and if they are equal, the field will be left blank (because nothing specified in 'value' column) or if they're not equal, then the field will populated with constant 'P'. This is why rule #2 has 2 parts.

      You'll see that there are no values in column offset and comp.length and these fields are only used if you want to compare certain chars in the string. If you want to use a constant in 'value 1', you use a ' char before the value which is what you see in rules 6-8 in your screen-print. The column 'value 2' gets used only if the operator is BE but it's rarely used. The last 3 columns are basically just telling the rule where to print and how to print. Click F1 to open system help window, the explanation is quite easy to understand so you shouldn't have a problem.

      Regards,

      Thomas

  • Jan 07, 2015 at 06:56 PM

    Dear Mohinder,

    Thanks for posting the query in SCN Forum 😊

    Basically, In HR Forms, (T-Code PE51) , A rule controls the selection of information.

    For example, you can specify that particular information (say Birth day Wish) is only printed if its value meets a specific value(Employee 's Birth day is 8th Jan, then in Jan month payslip for that employee Birthday wish will be populated ), or that different information is printed under particular conditions.

    If a rule is assigned to a piece of variable information, the system checks whether the condition defined in the IF component is met when the form is created. There are two possible outcomes:


    (i ) Condition is fulfilled:


    In this case, the THEN component is processed first. This means the replacement value stored there is taken into account. The subsequent component is then interpreted.



    (ii) Condition is not fulfilled:


    In this case, the subsequent component is interpreted immediately.

    If several rule lines must be processed for a rule, the substitute values stored in the accompanying THEN component are taken into account for each condition met. To make sure that the substitute values for several filled conditions do not overlap, you must select the substitute values accordingly.

    If the specified condition is not met in any rule line, the information assigned to the rule is not printed on the form.

    However, writing these rules don't impact your payroll results table such as RT/CRT level . These are meant for display purpose only in payslip.

    Please don't get confused with PCR rules written via PE02 and rules in PE51.

    Rules written in PCR has an impact in your Payroll results table 😊

    Hope it helps 😊

    In case of any further queries let us know .. 😊

    Regards,

    Niladri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 08:42 AM

    Hi All,

    If anybody can help me here

    Add comment
    10|10000 characters needed characters exceeded