cancel
Showing results for 
Search instead for 
Did you mean: 

queries Related to Standard functions of XI!

Former Member
0 Kudos

Hi Experts,

I am a beginner. I cannot make out the application of the following standard mapping functions, with som examples. Hav gone through the SAP Knowledge ware house, but couldnt make out much!.I hav gone through this URL but couldnt make out much!

http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/frameset.htm

1.indexOf3

2.Formatnum:

3.collapseContexts

4. abs

5.ceil

Regards,

Arnab

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Arnab

The most important thing you need to understand is context for mapping

In XI default type is String and each field is having context of the higher field string

1.indexOf - this is same as Java.lang.String indexOf method this will help you get a particular string occurrence in a string

2.Formatnum - This is a java function of Java.text.DecimalFormat this we need to use when we want to change the format of number from source field to satisfy target. i have mostly used in some IDOC or JDBC scenario

3.collapseContexts - As i said above about the Contexts. This mostly you use after using SplitbyValue. This will remove the context you set using some operations earlier to an empty string context

4. abs - absolute value use it with arithmatic operations. you would have done earlier u2013| u20133 | = u2013(3) = u20133

5.ceil- it will bring to the smallest possible number near to the value you pass. You would have studied number line etc just think to understand it

Thanks

Gaurav

Former Member
0 Kudos

Point 1, 2 and 5 still not clear, can som i giv so examples!!

Former Member
0 Kudos

hi,

Ceil ex:

input ouput

5.55 5.00

5.40 5.00

indexOf3 :i guess it gets the value in 3rd position like for input 12345 it returns the value 3

Formatnum: this is a special standard function where you can round off any decimal or any integer .using these drop down ## or ##.00 .

Edited by: ROBIN C on Nov 13, 2008 5:09 PM

Former Member
0 Kudos

Hi,

> indexOf3

R = first position from position Z at which string Y is found in X and u20131 if Y does not occur at all.

x = abcdeabc

y = b

z = 4

return 6

x = abcdeabc

y = b

z = 1

return 1

x = abcdeabc

y = b

z = 7

return -1

> FormatNum

If you specify a format like #.00 your output will have always this format:

5.5 return 5.50

4 return 4.00

3.3465 return 3.35 (value gets rounded)

> ceil

The "ceiling" of a number is the smallest integer greater than or equal to

the number. Every integer is its own ceiling.

4.78

return 5

4

return 4

Regards

Patrick

Former Member
0 Kudos

removed.

Former Member
0 Kudos

Many Thanks to Robin and Patrik. But could not get what Sarvesh meant.

Points awarded and chain closed.

Regards,

Arnab .

Former Member
0 Kudos

Arnab,

Initially I have given some links, but due to some reason they were not opening so I removed them.

But, I think you got your ans from the experts.

Regards,

Sarvesh

Answers (2)

Answers (2)

SudhirT
Active Contributor
0 Kudos

Hi ,

Use search option available in SDN .

Check this sap help contains details of every standard function with example.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm

Thanks!

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

use SDN search

you will find standard function example

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Former Member
0 Kudos

kindly check your mail for mapping documents

thanks