Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 30, 2007 at 08:38 AM

    Thanks Guys,

    It works !

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

    steven

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 29, 2007 at 10:29 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 30, 2007 at 07:53 AM

    Hi Steven,

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

    Regards,

    Shemim

    Add comment
    10|10000 characters needed characters exceeded