cancel
Showing results for 
Search instead for 
Did you mean: 

Msg PG 508 - Payroll has not been run successfully for all personnel nos.

Former Member
0 Kudos

When incrementing my payroll control record I am getting a hard error, message PG 508 - Payroll has not been run successfully for all personnel numbers. In my development and QA systems the message is a warning message and not a hard error and thus I can return through the message and complete the exiting of my payroll control record. In my production environment the message is a hard error thus I am not able to complete the exit of my payroll control record. Is there a setting that determines whether message PG 508 is a hard error or a warning?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David,

If you check the code in program MP52XF00 you will see where the message is being raised:

CALL FUNCTION 'TR_SYS_PARAMS'                       "QNOK109736
             IMPORTING                                      "QNOK109736
                system_client_role = l_client_role          "QNOK109736
         EXCEPTIONS
              OTHERS             = 3.
* Ist der Mandant Produktiv?
        IF l_client_role = 'P' OR sy-subrc <> 0.            "QNOK109736
*Die Abrechnung ist noch nicht für alle PersNrs erfolgreich durchgeführt
          MESSAGE e508.                                     "QNOK029749
        ELSE.                                               "QNOK109736
          MESSAGE w508.                                     "QNOK109736
        ENDIF.                                              "QNOK109736

As you can see, the output of function module TR_SYS_PARAMS determines whether the message is an error or a warning.

If you client is set as a production environment (transaction SCC4) or no client role is specified then an error is returned else it's a warning as in your Q environment. Please check with your BASIS administrator for the same.

Advisable not to change it. Also refer note 645722 for some more insight.

Regards,

Adi

Former Member
0 Kudos

Thanks for the info. The section of code in MP52XF00 that you included is exactly where the issue is. We had previously did a core mod to comment out the error/warning message since we are not running payroll. The application of the service packs wiped out the core mode.

thanks again

Answers (2)

Answers (2)

sikindar_a
Active Contributor
0 Kudos

Contd to VK

u can have a look of incorrect personnel numbers thru tocde PA03 PY Area

in the menu EDIT feild u will get a pop up window there u can get it

if u want to chage the feilds of IT0003 check the tcode PU03

if it is in Bulk try RPUTRBK0

Vivek_V
Active Contributor
0 Kudos

Hi,

This message occurs when in IT0003 the Payroll Correction field is ticked for one or more employees.

This happens in case the payroll was run for an employee, then his record was changed by changing the status of control record to Released for correction and then the payroll was not run for this employee again.

You can have the list of incorrect personnel number from the T-code PA03.

Run payroll again for these employees and then do the exit.

It is correct system behaviour. In productive client this message is error message and in other clients this is waring message.

VK

Former Member
0 Kudos

Hi,

thx dear this message help me to resolove the issue without looking into the system .

Thanks

Sam