Skip to Content
0

Need to use Pension Subtype into PCR for writing logic based on it

Jul 20, 2017 at 03:05 PM

23

avatar image
Former Member

Hi All,

Need an help on below requirement:

We have 2 pensions WT D03 and D04, in which I have to write a logic based on Subtype of it.

The approach I used to attain is:

Used P0071 Function and it generated PENS table. In a PCR used TABLE operatiomn to read PENS and saved VARGBSUBTY. In the decision gave 3 options ***. D03 and D04. The Payroll runs fine if the employee has pensions sub type but if the employee doesn't have any pensions then it is going into error. (Note: Used P0071 directly in table but getting the same issue).

Now I have to check whether the PENS has some content and if there is something in PENS then I will run over the PCR nor skip. Is there any way to achieve it?

Or any one have better solution to achieve this.

Am I doing anything wrong while using table operation, skeleton of code is given below:

TABLEPENS

VARGBSCREF (or VARGBSUBTY)

***

D03 - logic 1

D04 - logic 2

Please advise.

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

0 Answers