on 04-29-2011 12:37 PM
Hello Experts,
I have a specific requirement.
If an employee has data saved in particular infotype for example 0014 and for the same employee if another Infotype exists for example 0015.
In this case while running the payroll , in the payroll log a customized Warning message needs to be generated.
I have got some leads like using operation MESSG or operation XMES.
I have not got a clear idea on it.
Have anybody worked on it.
If anybody can help me out with the steps it would be of great help.
Thanks
Srijit M
You can create a custom payroll function to check (e.g. same wage type exists in both IT0014 and IT0015), and produce a message in the payroll log. Note that the message will be the pernr plus only 5 char message, and therefore may not be very descriptive.
Below is pseudo-code for your scenario :
FORM FUZxxxx .
...
"logic to check if same wt exists on both IT0014 and IT0015
...
if condition is true.
op+5(5) = '14-15' . "warning same wt exists in both IT. As mentioned, not very decriptive as you only have 5 char to play with
perform opmessg. "SAP routine tol dipslay message in the payroll log, same as using MESSGxxxxx if use in schema
endif.
ENDFORM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ted,
Thanks for your reply .
And Yes we can create a customized Function to check the logic and produce a message as output.
But I am trying to find out some more easy solution...Like any PCR that can be written where in It can be checked If both the Infotypes exist during a particular period...If yes then using operation XMES output a customised message...
Can anybody direct me how to write a PCR.....where in I can give condition to check the existence of both the Infotypes.
Thanks & Regards
Srijit R M
Hi Sikandar ,
Thanks for your reply,
Infotype level there is already an exit, which comes with the delete option for the other infotype , when we go for creating the first infotype.
But still some records are getting managed to retained, as the entry is completely using portal.
I tried a lot for the said issue ....to be solved using PCR...coz I knw we can generate the message in PCR...
But checking of Infotypes is the issue...
I think I have to go using the Custom Payroll function only
Thanks & Kind Regards
Srijit R M
Hi Sikandar ,
Before going for any custom payroll function.
I want to try using some wage types comparison..If I can get this work.
I am referring to your PCR above..
Here after this condition "SCOND=T IF this is one rule the next rule"
Is the * sub to this...also for 9210...is it not setting an amount there....
Best would be If you could send me the screenshot of this PCR to my id mentioned in my contact
Thanks a lot
Srijit R Menon
seems there is problem in your contact i tried but was not able to send you please check mine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sikandar ,
No problem.
I got the PCR right .
Instead of Infotypes , Wrote the pcr to compare the wage types and generate the warning message if both exists
This seems to be the simple solution , instead of going for cutom function.
Thanks a lot for your help.
Will close the thread once the testing is complete
Best Regards
Srijit R M
User | Count |
---|---|
91 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.