on 07-29-2014 7:45 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.