cancel
Showing results for 
Search instead for 
Did you mean: 

Subtraction in PCR

Former Member
0 Kudos

Hi,

I want to store subtraction of two wage type in a third wage type.

How to write this statement in a PCR.

Samriddhi

Accepted Solutions (0)

Answers (3)

Answers (3)

AhmedGamal
Explorer
0 Kudos

This message was moderated.

Former Member
0 Kudos

ADDWT should not be used, instead, use operation SUBWT (Subtract wage type to form subsequent wage type) which will help you to subtract. ADDWT is for addition.

I think, one would need more information to provide exact solution.

Let me know if you need more information about this. I can help you out.

Also if your question is answered, please allot points and close the question.

Thanks,

Dhiraj

Former Member
0 Kudos

Hi,

In my case I have two wage type

TA - Travelling Allowance

TR - Transport recovery

TA - TR = New wage type

Then how to write this statement in PCR.

Samriddhi

sikindar_a
Active Contributor
0 Kudos

hey

Dude thanks for correcting me

Former Member
0 Kudos

Any help.

Samriddhi

Former Member
0 Kudos

Try to use operation SUBWT to resolve your issue.

SUBWT 2222

Former Member
0 Kudos

Your case:

TA - Travelling Allowance

TR - Transport recovery

TA - TR = New wage type (NWT)

Soln:

You will have to check which rule creates TA and TR in output tables.

after that in the next rule, you can add (ADDWT to) TA to this NWT (eg: ADDWT /NWT) and then in subsequently subtract the wagetype NWT by TR (SUBWT /TR).

Hope this will give you desired resultant amount on NWT.

Former Member
0 Kudos

samridihhi,

correct me if i am wrong.....

both of these sound to be user input wage types and if that be so this subtraction can be done in a normal wage type by using indirect valuations...

hope his helps,

Amit

Former Member
0 Kudos

I agree...i missed the other picture totally...

Former Member
0 Kudos

can Amit or Dhiraj explain how we can use indirect evaluation in this scenario...should DIFFR be used but thts valid only for germany

Former Member
0 Kudos

Hi,

INVAL is already done for this WT.

Actually we are processing same WT in other way.

So our need will be fullfilled only through PCR.

Samriddhi

Former Member
0 Kudos

Hi,

If PCR is to be written then dhiraj's solution should work perfectly.

You will require more than 1 PCR.

In the first transfer 1 of the 2 WTs to IT using ADDWT.

In the second PCR subtract the 2 WT using SUBWT.

I just hope i have understood ur requirements.........

Amit

Former Member
0 Kudos

Hi,

I tried hard with PCR but no help.

Can you tell me which INVAL is used for subtraction of two wagetypes.

Samriddhi

Former Member
0 Kudos

Thanks

sikindar_a
Active Contributor
0 Kudos

did u checked ADDWT