cancel
Showing results for 
Search instead for 
Did you mean: 

Read a wage type

Former Member
0 Kudos

Hello Experts

How can i read a wage type amount in another wage type (from Rt table)

For Example:

WT Z001 coming with splis

Z001                       01                           20

Z001                        02                         300

Now, in custom wage type 9001 i have to read both values of split.

Scenario is:

Few employees having Split of WTZ001 and  few employees having single entry in WTZ001

How to cover borth these (single and split values for Different employees)

Regards

SK

Accepted Solutions (1)

Accepted Solutions (1)

former_member193210
Active Contributor
0 Kudos

Just before WT Z001 is transfered into RT, are it's values final?

If so, you could create a PCR at that point in the schema to transfer it's values into a temporary variable (using ADDWT&xxxx).  The temporary variable would then should be available to process in a PCR called by function PRT, and it would contain the sum of all occurrences of WT Z001.

Former Member
0 Kudos

Hello All

In this case is it fine to go with

Amt= Z001 (in split cases)

Addwt&9999 (9999 is temp variable i.e dummy wage type)

Regards

sk

Sanky
Active Contributor
0 Kudos

Hi SK,

Remove the split from Z001 wage type and then add to wage type 9001.

To remove the Split Use the below PCR and will use with PRT function.

*

Z001

       EILIMI *

and next PCR you calculate your WT9001 logic. If you will use this PCR then in final RT you will get Z001 with out split.

But if you want to keep split open then i will suggest you move the Z001 value to variable wage type and in the next PCR for calculation of WT9001 called up that variable wage type.

*

Z001

        ADDWT *

        AMT=  Z001

        ADDWT&VAR1

Hope so by this your issue will get solve.

Regards,

Sankarsan

Former Member
0 Kudos

Hello Sankar

How can i check whether Z001 is having split or not

For example

If Z001 have split means then i will pass to Variable wage type

I.e when i have split in the RT for WTZ001  i will go for below

Z001

        ADDWT *

        AMT=  Z001

        ADDWT&VAR1

Suggest me in this

Regards

SK

Sanky
Active Contributor
0 Kudos

Dont need to check whether having splits or not. Total value will move to VAR1.

Check.

Regards,

Sankarsan

Former Member
0 Kudos

Hello Sankar

We have reason for this please let me know to to check the split for WT Z001

Regards

SK

Sanky
Active Contributor
0 Kudos

OK.

Then use the operation WPALL.

Read this operation through PE04.

Regards,

Sankarsan

former_member193210
Active Contributor
0 Kudos

Yes, one way to insure that the amount of a WT is the sum of all it's splits is to transfer the information into a temporary variable.  Note that the temporary variable should be zeroed out (ZERO=& xxxx) at the beginning of the sub-schema where it is created (in case there is a loop) or after it is used (again, in case there is a loop).

As to check for splits, check the documentation on operation SPLIT, specially for SPLIT A?

shailvora
Participant
0 Kudos

Hi.

I have two Variable calculated i.e. ADDWT*9999 and ADDWT*9998 calculated separately in two conditions..

How do I add this ?

Answers (2)

Answers (2)

leelamohan_kavali
Active Contributor
0 Kudos

Dear SK,

Is Z001 amount has to be moved into 9001 ? or is there any scenario ?

If only for moving

Former Member
0 Kudos

Hello KV

I am nomoving value of  WT Z001. Just reading the amount of Z001 in WT 9001.

This is happening in final processing using PRT funtion

but for a employee Z001 having split and WT 9001 is reading a single (first) value of Z001

Regards

SK


Former Member
0 Kudos

Hi,

Please try this and revert

Regards,

Mahesh $

Former Member
0 Kudos

Hello Mahesh

What is the funtion need to be used for this PCR and where you have inserted this one.

Regards

SK

Former Member
0 Kudos

Hi,

You need to use PIT funcation for this PCR & you can use this wage type immediate after Funcation PA0014 (if you your Z001 wage type entered in IT - 14).

Regards,

Mahesh $