cancel
Showing results for 
Search instead for 
Did you mean: 

Rule in PE51 for +/552 and -/552 in different Windows

former_member424001
Participant
0 Kudos

Dear All,

I am stuck with the PE51 Rules, The scenario is, I want /552 displayed in different windows of same statement based on + OR - value. That means IF /552 is Positive in RT table it should appear in "earning" window and if  negative then in "Deduction" window.

I am using this rule but its just not working, Please advise me if I am missing something.

011
XRTBETRG    NLT'0
012
XRTBETRG    NGT'0

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

You have to write 2 different rules, one to use with wagetype at earning side and other to use with wagetype at deduction side. Rule 01 for Deduction and Rule 02 for Earning.

011
RTBETRG    NLT'0
021
RTBETRG    NGT'0

Hope it works.

Amit

former_member424001
Participant
0 Kudos

Dear Amit,

Bundle of thanks for input. Before your input,It was appearing in both windows.

but now its appearing in window where I places rule 01, which means first line condition got met and appeared in deduction window regardless in /552 value ( + or -). I also tried the continuation indicators (Space,* and S) but every time first line fulfills the condition.

As per my small knowledge I think LT  '0  is true in case of e.g. /552 = 120- as well as 120+

because  "-" is not taken care by the system and if this is the case then always first line will be true and requirement will not fulfilled. 

Any suggestions...? 

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi sap_how,

/552 is generated if there are any difference amount found after running retroactive accounting payroll run.

create two wage types ABCD & XYZZ FOR +amount and - amount.

if the difference is possitive pass the value to some ABCD wage type

                       is negative pass the value to some XYZZ wage type.

for this you have to make the function PDT as Z function and there with the help of abaper add the parameter to check whether the amount is possitive or negative and then pass the amount to respective wage types.

and add these wage types in the PE51 form at Earnings window and Deductions window.

your issue will be solved.

Regards,

khaja