Skip to Content
0

PCR to calculate an allowance based on PA Code and ESG

Mar 01, 2017 at 09:16 PM

64

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sikindar T Mar 06, 2017 at 08:16 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Rémi Corriveau Mar 06, 2017 at 06:03 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded