Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Retrieve gender text

Former Member
0 Likes
3,325

Hi all,

I want to get the gender text from infotype 0021 (HR). The field FASEX in table PA0021 (which stands for family data) contains the gender code of a relative. I want to extract the text (i.e 'Female' ) but I cannot find the table which holds the relevant texts. Can you please point me to the correct table.

P.S.: A function module or class which retrieves the gender text automatically will also do.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,885

Hello

Use FM DOMAIN_VALUE_GET with

I_DOMNAME = 'GESCH'

I_DOMVALUE = PA0021-FASEX

Hi all,

I want to get the gender text from infotype 0021 (HR). The field FASEX in table PA0021 (which stands for family data) contains the gender code of a relative. I want to extract the text (i.e 'Female' ) but I cannot find the table which holds the relevant texts. Can you please point me to the correct table.

P.S.: A function module or class which retrieves the gender text automatically will also do.

6 REPLIES 6
Read only

Former Member
0 Likes
1,886

Hello

Use FM DOMAIN_VALUE_GET with

I_DOMNAME = 'GESCH'

I_DOMVALUE = PA0021-FASEX

Read only

0 Likes
1,885

Thanks, that FM did the trick.

Read only

0 Likes
1,885

Hello,

Use FM DOMAIN_VALUE_GET and pass

I_DOMNAME = 'GESCH'

I_DOMVALUE = PA0021-FASEX (Gender Keys : space, 1 or 2 )

and get the text in E_DDTEXT like ( Unknown, Male or Female)

Regards

Ganesh Reddy

Read only

0 Likes
1,885

The 'FICO_DOMAIN_VALUES_GET' has also good one. It will gives data at one time and you can use it as read statement.

Thanks

Jahnavee

Read only

0 Likes
1,885

This message was moderated.

Read only

Former Member
0 Likes
1,885

There are only 3 possible values for Gender key (Check Value Range of Domain GESCH)

<SPACE> Unknown

1 Male

2 Female

I think it will be ok to use a IF case...

Regards,

Trikanth