Sei sulla pagina 1di 8

2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira

ListoffunctionsinSAPLumira

ExploringDataVisualization
Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.

ExploringDataVisualizationtechniquesusingtoolslikeSAPLumira,MicrosoftPowerBI,D3
Forexample:

Sunday,October11,2015

Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
ListoffunctionsinSAPLumira
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
decimalplaces.
HereisalistofallthefunctionsinSAPLumiraforaquickreference:

<lhs>and Usesleftoperand(<lhs>)andrightoperand(<rhs>)Booleaninputstodeterminewhetheraconditionis
Forexample:
<rhs> trueorfalse

Forexample:

ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
trueandfalsereturnsfalse

<lhs>or Usesleftoperand(<lhs>)orrightoperand(<rhs>)Booleaninputstodeterminewhetheraconditionistrue
<rhs> orfalse

returns201106128:39:45.1230000PM
Forexample:

trueorfalsereturnsfalse

<matchExpr> Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).

Theformatincludes:
like<pattern> Theexpressionisnotcasesensitive.Itcanincluderegularcharacters,_(underscorematchesany
character),or%(percentsignmatcheszerotomultiplecharacters).Specialcharactersmustbeescaped
<yyyy>or<YYYY>=year(00019999)
witha\(backslash)beforetheycanbeusedasregularcharacters.
<mm>or<MM>=month(112)
<dd>or<DD>=day(131) Forexample:

<hh>or<HH>=hours(023)
HikingisfunlikeH%is_unreturnstrue
<mi>or<MI>=minutes(059)
<ss>or<SS>=seconds(059)
<testExpr>in Indicateswhetheraspecifiedfirstinput(<testExpr>)matchesanyvaluesinaspecifiedsecondinput

<ff>of<FF>=fractionalseconds.
<candidateLi (<candidateList>)
st>
Forexample:

3in[2,4,6]returnsfalse
Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
AddDayToDa Returnsthedateproducedbyaddingaspecifiednumberofdays(<periods>)toaspecifieddate
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.
te(<date>, (<date>).ThedatecanbeaDateorDatetimeobject. AboutMe
<periods>)
ShivasJayaram
Forexample:

www.exploredataviz.com
AddDayToDate(ToDateTime(2015012023:59:45,yyyymmddhh:mi:ss),2)returns20150122
Viewmycompleteprofile
11:59:45PM
http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html
AddMonthTo Returnsthedateproducedbyaddingaspecifiednumberofmonths(<periods>)toaspecifieddate
Date(<date>, (<date>).
http://goo.gl/ffgS
<periods>) BlogArchive
Forexample:
2015(9)
AddMonthToDate(#20120101#,1)returns20120201 October(5)
Listof
functionsin
AddTime(<da Returnsthetimeproducedbyaddingaspecifiedamountoftime(<periods>)toaspecifiedtime SAPLumira
tetime>, (<datetime>),inthespecifiedformat(<format>).ThedatetimecanbeaDateorDatetimeobject.
ExportaSAP
<periods>, Lumira
<format>) Forexample: Storyto
PDF
AddDayToDate(ToDateTime(2015012023:59:45,yyyymmddhh:mi:ss),2)returns20150122
CreateaStory
11:59:45PM inSAP
Lumira
Theformatincludes:
Creatinga
hh=hours Geographic
mi=minutes al
ss=seconds Visualizatio
ninSAP
AddWeekToD Returnsthedateproducedbyaddingaspecifiednumberofweeks(<periods>)toaspecifieddate Lumir...
ate(<date>, (<date>).

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 1/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira
<periods>) Emaila
ListoffunctionsinSAPLumira
Forexample: visualizatio
nfromSAP
AddWeekToDate(#20120101#,1)returns20120108 Lumira

Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
AddYearToD Returnsthedateproducedbyaddingaspecifiednumberofyears(<periods>)toaspecifieddate
September
(4)
include regular characters,
ate(<date>, (<date>)._ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters

mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.
<periods>)
Forexample:

AddYearToDate(#20120101#,1)returns20130101

Forexample:
Ceil(<num>) Returnsthesmallestintegerthatisgreaterthanorequaltoaspecifiednumber(<num>).

Forexample:

Ceil(14.2)returns15
Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
decimalplaces.
Concatenate( Concatenatesonespecifiedstring(<str1>)withanotherspecifiedstring(<str2>)toformasinglestring.
<str1>,<str2>)
Forexample:

Forexample: Concatenate(Mr,Brown)returnsMrBrown

Contain(<whe Indicateswhetheraspecifiedstring(<whatStr>)isinsideanotherspecifiedstring(<whereStr>).The
ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
reStr>, expressionisnotcasesensitive.
<whatStr>)
Forexample:

returns201106128:39:45.1230000PM
Contain(Catsaregrey,aRe)returnstrue

CurrentDate() Returnsthecurrentdate.

Theformatincludes:
<yyyy>or<YYYY>=year(00019999)
<mm>or<MM>=month(112)
<dd>or<DD>=day(131)
<hh>or<HH>=hours(023)
CurrentDateTi Returnsthecurrentdatetime.
<mi>or<MI>=minutes(059)
me()

<ss>or<SS>=seconds(059)
<ff>of<FF>=fractionalseconds.

CurrentTime() Returnsthecurrenttime.
Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.

www.exploredataviz.com
DateDiffInDay Returnsthenumberofdaysbetweenaspecifiedstartdate(<start>)andaspecifiedenddate(<end>).
http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html
s(<start>,
<end>) Forexample:
http://goo.gl/ffgS
DateDiffInDays(#20120323#,#20120130#)returns53

DateDiffInMo Returnsthenumberofmonthsbetweenaspecifiedstartdate(<start>)andaspecifiedenddate(<end>).
nths(<start>,
<end>) Forexample:

DateDiffInDays(#20120323#,#20120130#)returns2

Day(<date>) Foraspecifieddate(<date>),returnsthedayofthemonthasanumber(1to31).

Forexample:

Day(#20120323#)returns23

DayOfWeek(< Foraspecifieddate(<date>),returnsthedayoftheweekasanumber(1forMondayto7forSunday).

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 2/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira
date>)

ListoffunctionsinSAPLumira
Forexample:

DayOfWeek(#20120323#)returns5

Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
DayOfYear(< Foraspecifieddate(<date>),returnsthedayoftheyearasanumber(1to365).
mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.
date>)
Forexample:

DayOfWeek(#20120323#)returns83

Forexample:

ExceptFirstW Returnsacopyofaspecifiedstring(<str>),withthewordbeforethespecifiedcharacter(<sep>)removed.
ord(<str>,
Forexample:
Hiking is fun
<sep>) like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
ExceptFirstWord(Level3,StandfordStreet,,)returnsStandfordStreet
decimalplaces.

ExceptLastW Returnsacopyofaspecifiedstring(<str>),withthewordafterthespecifiedcharacter(<sep>)removed.
ord(<str>,
Forexample:
<sep>) Forexample:

ExceptLastWord(james.brown@company.com,@)returnsjames.brown

ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
FirstWord(<str Returnsthewordbeforethespecifiedcharacter<sep>inaspecifiedstring(<str>)
>,<sep>)
Forexample:

returns201106128:39:45.1230000PM
FirstWord(SeniorDeveloper,)returnsSenior

Theformatincludes:
Floor(<num>) Returnsthelargestintegerthatisnotgreaterthanaspecifiednumber(<num>).

<yyyy>or<YYYY>=year(00019999)
Forexample:
<mm>or<MM>=month(112)
<dd>or<DD>=day(131)
Floor(14.8)returns14

<hh>or<HH>=hours(023)
<mi>or<MI>=minutes(059)
GroupValues( Returnsaspecifiedvalue(<newValue>)whenaspecifiedgroupofvalues(<ListOfValues>)isfoundina
<ss>or<SS>=seconds(059)
<column>, specifiedobject(<column>)
<ff>of<FF>=fractionalseconds.
<ListOfValue
s>, Forexample:

<newValue>)
GroupValues({CountryColumn),[USA,India,France],MyCountries)returnsMyCountrieswhenthe

Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
columnCountryColumncontainsthevaluesUSA,India,orFrance

morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.
Hour(<time>) Foraspecifiedtime(<time>),returnsthehour.ThetimecanbeaTimeorDatetimeobject.

Forexample:

Hour(ToTime(20:39:45),hh:mi:ss))returns20
www.exploredataviz.com

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html
if<cond> Returnsoneoftwospecifiedalternatives(<alt1>iftrueor<alt2>iffalse),basedonaspecifiedBoolean
http://goo.gl/ffgS
then<alt1> condition(<cond>).<alt2>isoptionalandisblankwhennosecondalternativeisentered.
else<alt2>
Forexample:

iftruethenwonelselostreturnswon

IsNotNull(<obj Indicateswhetheraspecifiedfield(<obj>)isnotempty.
>)
Forexample:

IsNotNull(8)returnstrue

IsNull(<obj>) Indicateswhetheraspecifiedfield(<obj>)isempty.

Forexample:

IsNull(8)returnsfalse

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 3/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira

LastDayOfMo Foraspecifieddate(<date>),returnsthedateofthelastdayofthemonth.
ListoffunctionsinSAPLumira
nth(<date>)
Forexample:

Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
LastDayOfMonth(#20120323#)returns20120331

include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.
LastDayOfWe Foraspecifieddate(<date>),returnsthedateofthelastdayoftheweek.
ek(<date>)
Forexample:

Forexample: LastDayOfWeek(#20120323#)returns20120325

LastWord(<str Returnsthewordafterthespecifiedcharacter<sep>inaspecifiedstring(<str>)
Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
>,<sep>)
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
Forexample:
decimalplaces.
LastWord(Red/Purple,/)returnsPurple

Forexample:
Length(<str>) Returnsthenumberofcharactersinaspecifiedstring(<string>).

Forexample:

Length(Howlong)returns8
ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)

Log(<num>) Returnsthenaturallogarithmofaspecifiednumber(<num>).

returns201106128:39:45.1230000PM
Forexample:

Log(100)returns4.605

Theformatincludes:
<yyyy>or<YYYY>=year(00019999)
Log10(<num Returnsthebase10logarithmofaspecifiednumber(<num>).
<mm>or<MM>=month(112)
>)
<dd>or<DD>=day(131)
Forexample:

<hh>or<HH>=hours(023)
Log10(100)returns2
<mi>or<MI>=minutes(059)
<ss>or<SS>=seconds(059)
<ff>of<FF>=fractionalseconds.
LowerCase(< Returnsacopyofaspecifiedstring(<str>),withallcharactersconvertedtolowercase.
str>)
Forexample:

LowerCase(GOODJOB)returnsgoodjob
Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.

Lpad(<str>, Returnsacopyofaspecifiedstring(<str>),withsspecifiednumber(<length>)ofspecifiedleading
<length>, characters(<pad>)added.

www.exploredataviz.com
<pad>)
Forexample:

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html
Lpad(Incompletefield,20,#)returns####Incompletefield

http://goo.gl/ffgS
MakeDate(<y Returnsthedateofthespecifiedyear(<year>),month(<month>),andday(<day>)inayyyymmdd
ear>, format.
<month>,
<day>) Forexample:

MakeDate(2011,6,12)returnsthedate20110612

MakeDateTim ReturnstheDatetime(combineddateandtime)thatcorrespondstothespecifieddateandtime.
e(<date>,
<time>) Forexample:

MakeDateTime(MakeDate(2011,6,12),MakeTime(20,39,45))returns201106128:39:45PM

MakeTime(<h Returnsthetimethatcorrespondstothespecifiedhours,minutes,andseconds.
our>,
<minute>, Forexample:

<second>)
MakeTime(20,39,45)returns8:39:45PM

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 4/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira

ListoffunctionsinSAPLumira
Minute(<time Foraspecifiedtime(<time>),returnstheminute.ThetimecanbeaTimeorDatetimeobject.
>)
Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
Forexample:

include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
Minute(ToTime(20:39:45),hh:mi:ss))returns39.
mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.

Mod(<num>, Returnsthequotientofdividingaspecifiednumber(<num>)byanotherspecifiednumber(<divisor>).
<divisor>)
Forexample: Forexample:

Mod(15,2)returns1

Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
Month(<date Foraspecifieddate(<date>),returnsthemonthasanumber(1to12).

decimalplaces.
>)
Forexample:

Month(#20120323#)returns3

Forexample:
not<bool> ReturnsthenegativeofaspecifiedBooleaninput(<bool>).

Forexample:
ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
notfalsereturnstrue

returns201106128:39:45.1230000PM
Power(<num> Returnsaspecifiednumber(<num>),raisedtoaspecifiedpower(<exponent>).
,<exponent>)
Forexample:

Theformatincludes: Power(2,3)returns8
<yyyy>or<YYYY>=year(00019999)
<mm>or<MM>=month(112)
Quarter(<dat Foraspecifieddate(<date>),returnsthequarterasanumber(1to4).
<dd>or<DD>=day(131)
e>)
<hh>or<HH>=hours(023)
Forexample:
<mi>or<MI>=minutes(059)
Quarter(#20120323#)returns1
<ss>or<SS>=seconds(059)
<ff>of<FF>=fractionalseconds.

Replace(<str> Foraspecifiedstring(<str>),returnsastringwithalloccurrencesofaspecifiedtargetstring(<target>)
,<target>, replacedwithanotherspecifiedstring(<replacement>)
<replacement
Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
Forexample:
>)
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.
Replace(Verygoodsong,o,u)returnsVeryguudsung

Round(<num Foraspecifiednumber(<num>),returnsthevalueroundedtoaspecifiednumberofdecimalplaces
www.exploredataviz.com
>,<digits>) (<digits>).

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html
Forexample:

http://goo.gl/ffgS
Round(14.81,1)returns14.8

Rpad(<str>, Returnsacopyofaspecifiedstring(<str>),withaspecifiednumber(<length>)ofspecifiedtrailing
<length>, characters(<pad>)added
<pad>)
Forexample:

Rpad(Incompletefield,20,#)returnsIncompletefield####

Second(<time Foraspecifiedtime(<time>),returnsthesecond.ThetimecanbeaTimeorDatetimeobject.
>)
Forexample:

Second(ToTime(20:39:45),hh:mi:ss))returns45.

Sign(<num>) Returns1ifaspecifiednumber(<num>)isnegative,0ifthenumberiszero,or+1ifitispositive.

Forexample:

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 5/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira

ListoffunctionsinSAPLumira
Sign(2)returns1

Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
SubString(<st Returnsasubstringofaspecifiedinputstring(<str>),startingatthepositionofaspecifiedcharacter
r>,<start>) (<start>)
include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.
Forexample:

SubString(Shivas,4)returnsvas

Forexample:
SubString(<st Returnsthenumberofcharters(<length>)inasubstringofaspecifiedinputstring(<str>),startingatthe
r>,<start>, positionofaspecifiedcharacter(<start>)
<length>)
Forexample:

Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
SubString(Shivas,2,3)returnshiv
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
decimalplaces.
TimeDiff(<star Returnstheamountoftimebetweenaspecifiedstarttime(<start>)andaspecifiedendtime(<end>),in
t>,<end>, thespecifiedformat(<format>).ThestartandendtimescanbeTime,Date,orDatetimeobjects.
<format>)
Forexample:
Forexample:
TimeDiff(MakeDateTime(MakeDate(2011,14),MakeTime(1,23,45)),
MakeDateTime(MakeDate(2015,1,15),MakeTime(6,40,58)),ss)

returns105433.
ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
Theformatincludes:
hh=hours
mi=minutes
returns201106128:39:45.1230000PM
ss=seconds

ToDate(<strin Convertsaspecifiedinputstring(<string>)inthespecifiedformat<format>toaDateobject.Theformat
g>,<format>) includes:
<d>or<dd>forthedayofthemonth(131)
Theformatincludes: <m>or<mm>forthemonthoftheyear(112)
<yyyy>or<YYYY>=year(00019999)
<y>or<yy>fortheyearwithoutcentury(099)or(yyyy>fortheyearwithcentury(forexample,2014)
<mm>or<MM>=month(112)
Allothersequencesareconsidereddelimiters.

<dd>or<DD>=day(131)
Forexample:
<hh>or<HH>=hours(023)
<mi>or<MI>=minutes(059)
ToDate(2015/09/15,yyyy/MM/dd)returnsaDateobjectthatrepresentsSeptember15th,2015

<ss>or<SS>=seconds(059)
ToDateTime( Convertsaspecifiedinputstring(<string>)inthespecifiedformat(<format>)toaDatetime(combined

<ff>of<FF>=fractionalseconds.
<string>, dateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractional
<format>) secondstoanaccuracyofsevendecimalplaces.

Forexample:

Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.
returns201106128:39:45.1230000PM

Theformatincludes:
<yyyy>or<YYYY>=year(00019999)
www.exploredataviz.com
<mm>or<MM>=month(112)

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html
<dd>or<DD>=day(131)
<hh>or<HH>=hours(023)

http://goo.gl/ffgS
<mi>or<MI>=minutes(059)
<ss>or<SS>=seconds(059)
<ff>of<FF>=fractionalseconds.

Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesare
provided,thevaluewillbepaddedwithzeros.Ifmorethan7decimalplacesareprovided,thevaluewill
betruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.

ToNumber(<p Returnsaspecifiedparameter(<param>),convertedtoanumericvalue
aram>)
Forexample:

ToNumber(12.34)returns12.34

ToText(<num Returnsaspecifiednumber(<num>),convertedtoastringandtruncatedtoaspecifiednumberof
>,<digits>) decimalplaces(<digits>)

Forexample:

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 6/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira
ToText(12.1451,2)returns12.14

ListoffunctionsinSAPLumira
ToText(<para Returnsaspecifiedparameter(<param>),convertedtoastring
m>)
Forexample:
Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
ToText(12.34)returns12.34

mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.

ToTime(<strin Convertsaspecifiedinputstring(<string>)inthespecifiedformat(<format>)toaTimeobject.
g>,<format>)
Forexample: Forexample:

ToTime(20:39:45,hh:mi:ss)

returns8:39:45PM
Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
Theformatincludes:
<hh>or<HH>=hours(023)
decimalplaces.
<mi>or<MI>=minutes(059)
<ss>or<SS>=seconds(059)

Trim(<str>, Returnsacopyofaspecifiedstring(<str>),withleadingandtrailingrepetitionsofaspecifiedcharacter
Forexample:
<toTrim>) (<toTrim>)removed

Forexample:

ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)
Trim(Aurora,a)returnsAuror

TrimLeft(<str> Returnsacopyofaspecifiedstring(<str>),withleadingrepetitionsofaspecifiedcharacter(<toTrim>)
,<toTrim>) removed
returns201106128:39:45.1230000PM
Forexample:

TrimLeft(Above,A)returnsbove

Theformatincludes:
<yyyy>or<YYYY>=year(00019999)
TrimRight(<str Returnsacopyofaspecifiedstring(<str>),withtrailingrepetitionsofaspecifiedcharacter(<toTrim>)

<mm>or<MM>=month(112)
>,<toTrim>) removed

<dd>or<DD>=day(131) Forexample:
<hh>or<HH>=hours(023)
Trim(Laura,a)returnsLaur
<mi>or<MI>=minutes(059)
<ss>or<SS>=seconds(059)
<ff>of<FF>=fractionalseconds.
Truncate(<nu Returnsaspecifiednumericvalue(<num>),truncatedtoaspecifiednumberofdecimalplaces(<digits>).
m>,<digits>)
Forexample:

Truncate(12.281,1)returns12.200
Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.
UpperCase(< Returnsacopyofaspecifiedstring(<str>),withallcharactersconvertedtouppercase.
str>)
Forexample:
www.exploredataviz.com
UpperCase(LittleBoy)returnsLITTLEBOY
http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html

http://goo.gl/ffgS
Week(<date> Foraspecifieddate(<date>),returnstheweekasanumber(1to52).
)
Forexample:

Week(#20120323#)returns12

Year(<date>) Foraspecifieddate(<date>),returnstheyearina4digitformat.

Forexample:

Year(#20120323#)returns2012

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 7/8
2/2/2017 ExploringDataVisualization:ListoffunctionsinSAPLumira

ListoffunctionsinSAPLumira
PostedbyShivasJayaramat8:38PM

Indicateswhetheraspecifiedcharacterstring(<matchExpr>)matchesaspecifiedpattern(<pattern>).Theexpressionisnotcasesensitive.Itcan
include regular characters, _ (underscore matches any character), or % (percent sign matches zero to multiple characters). Special characters
Labels:SAPLumiraFunctions,SAPLumiratutorialforbeginners,SAPLumriaforbeginners
mustbeescapedwitha\(backslash)beforetheycanbeusedasregularcharacters.

Nocomments:
PostaComment
Forexample:

Hiking is fun like H% is _un returns trueConverts a specified input string (<string>) in the specified format (<format>) to a Datetime
(combineddateandtime).Theformatis<yyyy><mm><dd><hh>:<mi>:<ss>.<ff>whereffspecifiesfractionalsecondstoanaccuracyofseven
decimalplaces.

Forexample:

ToDateTime(2011061220:39:45.123,yyyymmddhh:mi:ss.ff)

returns201106128:39:45.1230000PM

Theformatincludes:
<yyyy>or<YYYY>=year(00019999)
Linkstothispost
<mm>or<MM>=month(112)
<dd>or<DD>=day(131)
CreateaLink
<hh>or<HH>=hours(023)
<mi>or<MI>=minutes(059)
<ss>or<SS>=seconds(059)
<ff>of<FF>=fractionalseconds.

Home OlderPost

Subscribeto:PostComments(Atom)
Includeffonlyiftheinputstringcontainsfractionalseconds.Iffewerthan7decimalplacesareprovided,thevaluewillbepaddedwithzeros.If
morethan7decimalplacesareprovided,thevaluewillbetruncatedto7decimalplaces.Allothercharactersareconsidereddelimiters.

www.exploredataviz.com
Simpletemplate.Templateimagesbyenotpoloskun.PoweredbyBlogger.

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html

http://goo.gl/ffgS

http://www.exploredataviz.com/2015/10/listoffunctionsinsaplumira.html 8/8

Potrebbero piacerti anche