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

Gender conversion SAP format

TimVDB92
Participant
0 Likes
1,890

Hi,

Is there a function module available for the conversion of Gender to the SAP Standard (1 : male, 2: female, 3 : unknown)

Example:

lv_var1 = 'Male'

lv_var2= 'Female'

lv_var1 = 'M'

lv_var2= 'F'

lv_var5 = ''

After the conversion:

lv_var1 = '1'

lv_var2= '2'

lv_var1 = '1'

lv_var2= '2'

lv_var5 = '3'

1 ACCEPTED SOLUTION
Read only

Juwin
Active Contributor
0 Likes
1,788

The topic title was too funny and misleading.....

10 REPLIES 10
Read only

former_member355261
Participant
0 Likes
1,788

Hi,

Try function module  HRWPC_RFC_GESCH_TEXT_GET

Regards

Read only

0 Likes
1,788

This is not working for me!

The result should be 1 or 2. The result of this function modules gives the long text?

Read only

0 Likes
1,788

The result of this FM would be : "Female", "Male", ...

I know you need the inverse, so you can take advantage of this FM to achieve your requirement.

Regards.

Read only

0 Likes
1,788

Hi,

Or you can try out the module function  CONVERSION_EXIT_GESCH_OUTPUT

Regards

Read only

0 Likes
1,788

This is not working for me!

Read only

0 Likes
1,788

Will be faster to write it fresh yourself.

A SAP Standard routine may need to know Language scenario's etc.

If you want this solved today, would recommend you write your own code.

Read only

Juwin
Active Contributor
0 Likes
1,789

The topic title was too funny and misleading.....

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,788

Yes, title is funny indeed. I HAD to open it!

Well, this is ABAP forum, so is there any reason you can't open data element in SE11 and see if there is a conversion function available? Or at least give us a technical name? Not every ABAPer is intimate with HR (I assume) module.

Read only

0 Likes
1,788

From the news these days, it seems like more and more HR departments will be asking about gender conversions in SAP...

Read only

0 Likes
1,788

probably cheaper than asking the doctor...