Skip to Content
author's profile photo
Former Member

Customized Warning Message in Payroll Log

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

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Apr 29, 2011 at 02:31 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sikindar T

      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

  • Posted on May 03, 2011 at 12:02 PM

    seems there is problem in your contact i tried but was not able to send you please check mine

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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