Your Syntax is not correct
Give Double Space betweem AMT= 2001
and when you say company code it can be from single character to four character
*
OUTWPCOMPY
*
ADDWT *
**
ADDWT *
***
ADDWT *
****
ADDWT *
2000
ADDWT *
Your PCR should have logic for company codes other than 2000 even though if you are not maintianing in the configuration
In your Payroll Schema, this PCR will be called by a function. Since it seems that you want to read the amount of WT 2001 from the Input Table, you will probably use function PIT, using Par1 to enter your PCR and the values of Par2 and Par3 (blank/blank, GEN/blank, blank/NOAB, GEN/NOAB) will depend on how you build your PCR.
Since you want to process WT 2001, you could modify it so that for ESG * and WT ****, the only operation would be ADDWT *, but for ESG * and WT 2001, you would make your decision on the Company Code and then on the termination.
As mentioned by Sikindar, it is always better to consider all return values to your queries, so for operation OUTWPCOMPY, there should be at least 2 return values (**** and 2000).
Finally, after PPPAR A, since the operations are identical no matter the return value, there is no need to make the decision (you make a decision when the output will differ depending on the return values), and before operation AMT= 2001, you may want to add operation ADDWT * if you don't want to loose WT 2001 from the Input Table.
Note that your PCR could be called by function ACTIO if the amount from WT 2001 would already be in a temporary variable and you were to replace AMT= 2001 by AMT=& 2001 in your current PCR.
I am not sure but shouldn't AMT be without space i.e. AMT=2001
Hi,
You can use both operations ADDWT /008 (To move to IT Table for further process)
and also you can use operation ADDWTE/008 (Move to RT Table)
Try, this will help you out.
Thanks & Enjoy
Add a comment