Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Userdefined Function

Hi ,

i need to use an user defined function.. can any body give me the exact code.. for doing that.. because.. my requiremnt is i have one source struture and multiple receivers..

If the Nmae starts with Mr means.. those perosons details will goes to MALE RECEIVER..

IF the name starts with Ms then those details will moves to FEMALE RECEIVERS..

for this i'm useing an user defined in that i wrote this code. but it's not working... so, plz check this.. and correct it..

-


int i;

int mr=0;

int ms=0;

for(i=0; i<a.length;i++)

{

if( a<i>.substring(0,2).equals("Mr") && mr==0)

{

result.addValue("<b>MALE RECEIVER</b>"); ****my first receiver

mr=1;

}

if( a<i>.substring(0,2).equals("Ms") && ms==0)

{

result.addValue("<b>FEMALE RECEIVER</b>"); ****my second receiver

ms=1;

}

}

</textarea>

-


for helpful answers will be rewarded

thanks

BABU

Former Member
Not what you were looking for? View more on this topic or Ask a question