cancel
Showing results for 
Search instead for 
Did you mean: 

PCR to calculate an allowance based on PA Code and ESG

Former Member
0 Kudos

Hi

I have a PCR which currently pays Shift Allowance based on an ESG . It picks the relevant constant from V_T511K to pay the amount. However , now I want a further variable to be introduced so that I can do the following

if ESG="H*" then if OUTWPPLANT="XXXX" pick constant 1

if OUTWPPLANT =" ZZZZ" pick constant 2 etc

Somehow am not able to achieve the same the current rule snippet is given below

9703 Shift Allowance A
TABLE 503 Read table fields
VARGBPERSK Tab.field VVVVV v.ky
**
TABLE 503 Read table fields
VALEN 1 Set length - v.key
VARGBPERSK Tab.field VVVVV v.ky
*
A
RTE=KZY019 Set
MULTI NRA Multipl.amt/no/rate
ADDWT * OT Output table
GCY ZP141 With exact w.types
B
RTE=KZY019 Set
MULTI NRA Multipl.amt/no/rate
ADDWT * OT Output table
GCY ZP141 With exact w.types
H
RTE=KZY011 Set
MULTI NRA Multipl.amt/no/rate
ADDWT * OT Output table
GCY ZP141 With exact w.types
I
RTE=KZY011 Set
MULTI NRA Multipl.amt/no/rate
ADDWT * OT Output table
GCY ZP141 With exact w.types
O
RTE=KZY021 Set
MULTI NRA Multipl.amt/no/rate
ADDWT * OT Output table
GCY ZP141 With exact w.types
P
RTE=KZY013 Set
MULTI NRA Multipl.amt/no/rate
ADDWT * OT Output table
GCY ZP141 With exact w.types

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193210
Active Contributor
0 Kudos

What field are you trying to read from T503?

If it is PERSK, then perhaps you should use Operation OUTWPPERSK (instead of TABLE VARGBPERSK) since that information is directly linked to the employee.

sikindar_a
Active Contributor
0 Kudos

I think you want to Query ESG grouping not ESG right ?

PERSK is ESG where as in T503 you will have Groupings for that ESG