cancel
Showing results for 
Search instead for 
Did you mean: 

Get the gender of the employee?

Former Member
0 Kudos
3,688

Hi all,

In pa0002, there is a field called gesch, which gives the gender of the employee. But it is giving me the gender key, that is 1 for male, 2 for female.

But how can I get the text of that gender key??

Regards

Tarun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to first check the screen for IT0002 in table T588M according to your country grouping.

Options are available to select as radio button for gender key. You need to use screen modification for it.

Former Member
0 Kudos

Hi Vasehgal,

Didn't get you, what you want to say, please explain it in detail?

Regards

Tarun

Former Member
0 Kudos

Open IT0002 and

Go to System ->STATUS -> Copy Program Screen and screen number

Then search in position Table T588M.

Go to the screen and check the if Gender field is available.

refer

http://help.sap.com/saphelp_40b/helpdata/fr/49/5184ab7b35d111950d0060b03c6b76/content.htm

Former Member
0 Kudos

Hi I went to system, status, and copies the screen name that was SAPLSE16N and screen number 100.

But then I searched the screen name in t588m , but no entry exists for that.

What shall I do?

Former Member
0 Kudos

Hi,

When you go into PA30 and enter 0002 for infotype and click create or change you can go to system->status and get program name starts with MPxxxxx and screen # starts with 2xxx.

Please verify this in table T588M and T588N and see field GESCH for your variable key which generally indicated country grouping to identify module pool program and screen # that you copied when you were in PA30.

Thanks,

Ameet

Former Member
0 Kudos

Hi,

Someone reply, I am still waiting for the reply.

Regards

Tarun

Former Member
0 Kudos

Ameet is right...Please check and confirm.

Former Member
0 Kudos

Hi Ameet,

Thanks for the clarification.

I got the screen name (MP000200) and screen number (2040).

And in t588m , i found a record corresponding to that as :::: MP000200 2000 40 2040 P0002.

But I don't know what to do after that, how can I get the description of the gesch field...please specify in detail??

Regards

Tarun

Former Member
0 Kudos

Hi,

That was just to help you understand where the source field is coming from.

Verify link below.

http://help.sap.com/saphelp_afs64/helpdata/ja/43/bc7ad602454dece10000000a422035/content.htm

Hope it helps.

Thanks,

Ameet

Former Member
0 Kudos

Hi Ameet,

I understood what you want to say, but i want to implement this in my report program.

Please help out with some coding, so that I can understand how i can get the text for the gender field.

Regards

Tarun

Former Member
0 Kudos

Hi,

Go to SE11 and enter table name as PA0002.

Click display button.

Go to GESCH field and click on data element for GESCH.

Once done click on domain name and then look under field value or field help tab for table at very bottom which basically displays text for gender key.

Other option is to use function module in your code - HRWPC_RFC_GESCH_TEXT_GET.

Thanks,

Ameet

Former Member
0 Kudos

Thanks Ameet, the fm helped me out!

Answers (0)