cancel
Showing results for 
Search instead for 
Did you mean: 

IT0021 Gender inconsistency on Overview and Detail screen

Former Member
0 Kudos

Hi All,

On Infotype 0021 when creating a Subtype 'Spouse' for a Male employee, we save the Gender as 'undeclared'.


However when you look at the overview screen, the Gender is displayed as Female.

I have checked table PA0021 for this employee in SE16N and the Spouse's Gender field does not have a value associated with it.

I have tested the contrary whereby if you create a Subtype 'Spouse' for a Female employee and save the Spouse's Gender as 'undeclared', the Overview screen displays the Gender as Male.

We need the overview screen to display the Gender as Undeclared.

Has anyone seen this before? Any ideas?

Thanks,

~Anri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anri,

seems to be a clear SAP error, which you should raise as a support ticket (low priority, I guess).

For the US special screens are called for the full screen (2010) as well as list screen (3010). However, the list screen 3010 is only processing the international output module P0021 from module pool include MP002120 in the flow logic. And there you find a piece of coding to do exactly what you described:

it automatically changes the gender of the spouse to the opposite sex of the employee, if the gender of the spouse is not declared:

"1" is the standard subtype for Spouse.

In the full screen dynpro, for the US a special US output module P0021_US from module pool include MP00212U is processed before and after the international one:

This module is specifically designed to prevent the international part to switch to the opposite sex, be changing FASEX (spouse gender) to "3", rather space. You can check the coding - it's very obvious.

I haven't looked at it in detail, but it may be enough to call the module pool p0021_us in screen 3010 in the same way as in screen 2010 - or it may require slight coding changes. in any case, this would be a modification. So, if you can wait, hopefully SAP will rectify it, when you raise a message.

Another solution to get around it with config only, would require you to create a custom subtype for IT0021 as "Spouse" and use that instead of "1". however, this would require you to change all existing data and if the "1" is hard-coded here in the dynpro logic, it may well be hard coded elsewhere, e.g. benefits, so a custom subtype may shoot down other functionality. Therefore, as funny as it may look: IF you want to change this urgently, the suggested modification would be safer than the config solution (to be removed, once SAP provides a note)

Best, of course: you raise the error and can wait until SAP provides a note. I guess, you can copy most of my text here to explain the issue to SAP - and half of the solution already

best wishes

Sven

Former Member
0 Kudos

Strong American influence on the SCN, I guess.

When you read "the opposite ***" above I used the normal colloquial word you'd use in Europe instead of "gender" and the editor automatically translates it into *** assuming I'm referring to an activity rather than a biological category.

eww - If you don't here from me again, the language police has come after me. It was nice to work with all of you in the community

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you very much Sven for your timely, clear and comprehensive answer! I will be using your advice in my resolution

Kind Regards,

~Anri

Former Member
0 Kudos

Hi Anri,

these screens and screenlogic depend son the country.

Am I right to assume that the employee you are looking at is assigned to the US country modifier?

Are your screen configuration in T588M and related features changed or in SAP standard state?

kind regards

Sven