cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect country grouping 40 (country grouping for run: 99)

Former Member
0 Kudos

Hi All

i was getting following error while posting in prod. this is my first posting doc in prod: -

Incorrect country grouping 40 (country grouping for run: 99)

guide what are all i need to check.

regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I also encountered this issue and from debugging, I saw that the same error was happening because of the SELECT statement in Class CL_HR_MOLGA>GET_INSTANCE_FOR_ABKRS.

SELECT werks FROM pa0001 UP TO 1 ROWS

                       INTO  lv_help_werks

                       WHERE abkrs EQ ABKRS

                       AND   werks IS NOT NULL.

In the code, it says it will only select up to one row and because the master data (table PA0001) in my scenario, the werks maintained for the abkrs has a MOLGA field of 99 in table T001P instead of 40. It could be an incorrectly entered master data. This is the information I passed on to the HR functional consultant, and what they used to solve the error encountered.

Former Member
0 Kudos

Hi,

PLease check the personnel Sub area grouping for Country of PSA in configuration.

Regards,

Kapil

Former Member
0 Kudos

HI,

I also faced the same prob in development. Later found somebody had hired and employee in different country grouping in PA, PSA. Check in PA0000 even if one emp is in 99 grouping system gives an error for any other emp in that payroll area.

Regards,

Saureb

jayantvenkata
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

please have the following checked in your system

SE16

Table PA0001

-> Select the relevant Payroll Area then take all the values in P0001-WERKS.

-> Go with this values to table T001P and check if the MOLGA is always the right one.

For some reason there is in the payroll area selected for posting an employee that has a personnel area (P0001-WERKS) which country grouping (MOLGA) is 40 instead on 99. Please go to trx SE16 -> table PA0001 -> select the relevant Payroll Area then take al the values in P0001-WERKS.Finally go with this values to table T001P and check MOLGAS are always 99.

Regards

Ramana

Former Member
0 Kudos

Hi Ramana & Jayanti,

I am really thankfull to you post. I had a similiar problem; only difference was in Country codes; Incorrect country grouping 99 (country grouping for run: 10).

I knew that there is some problem with the assignment which are standard but your post assisted me to find it soon.

Just to share, I got this error due to assignment of my Payroll area to one employee created by Standard SAP companies CABB. Now this was a co-incidence that my Payroll area and this payroll area matched.

Thanks once again...

Cheerzz..!