cancel
Showing results for 
Search instead for 
Did you mean: 

how to use formula to change 1 to "male" ???

Former Member
0 Kudos

Hi all,

Maybe an easy one but hopefully anyone can help me ..

if I deploy a BAPi I get GENDER = 1

I want to use a formula to change this 1 into "MALE" and if the value is 2 i want to see FEMALE.

And does anybody know an good overview of the formulas that can be use an so extra info about what to fill in, when and how,

the explanation in VC is not always clear to me

thanks !

Steven

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Guys,

It works !

Does any of you have a document in which a deeper explanation is given for the use of formulas

steven

Former Member
0 Kudos

Hi Steven,

check the help:

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/40/a228173435437394f54c56de571ca4/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/40/a228173435437394f54c56de571ca4/frameset.htm</a>

Best Regards,

Marcel

Former Member
0 Kudos

Hi Steven,

You can achieve this using an expression box or input field. Give the formula IF(@Gender == '1',Male','Female')

Regards,

Shemim

Former Member
0 Kudos

Steven,

click on the output port of the BAPI, add an additional element of type 'Text'. Here, calculate its value dynamically by applying a formula [IF(@Gender == '1',Male','Female')] to this element to get the desired result. Use this element for further processing rather than 'Gender' returned by your BAPI.

prachi