You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

peoplecode action in ae program

2 replies [Last post]
Guest's picture
Guest

Hi,

My requirement is to calculate other fields based on 1 field in peoplecode action in ae program.if i run the program i'm unable to get calculated values.
Below is my code in peoplecode action.

Local number &SAL, &HR, &TA, &TOT;

&SAL = EXO_AEPC_AET.BANK_SAL;
If &SAL > 10000 Then
&HR = 1000 * 0.3;
&TA = 1000 * 0.5;
&TOT = &HR + &TA+&SAL;
Else
&HR = 100;
&TA = 200;
&TOT = 300;
End-If;
EXO_AEPC_AET.BANK_HRA = &HR;
EXO_AEPC_AET.BANK_TA = &TA;
EXO_AEPC_AET.BANK_TOT = &TOT;

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: peoplecode action in ae program

your code looks fine. What are you doing with the values after this action? Are you saving them into a table? writing them to a file? How do you know you are not getting any values?

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

PARITOSH's picture
User offline. Last seen 10 years 13 weeks ago. Offline
Joined: 06/16/2010
Posts: 19
Re: peoplecode action in ae program

Exactly,

Unless and untill you update the respective coloumns, values wont be get inserted like it used to insert when we use simple peoplecode.