on 11-12-2008 5:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.