cancel
Showing results for 
Search instead for 
Did you mean: 

Calculated Attributes.

Former Member
0 Kudos

Hi,

I have never come across a scenario which requires a calculated Attribute.Please

throw some light on this.Also setCalculatedAttributeAccessor method what does it

correspond.

Any help would be appreciated.

Regards

Amit

Accepted Solutions (1)

Accepted Solutions (1)

former_member182416
Active Contributor
0 Kudos

Hi There !

This Blog has all the Answers to you Questions.

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3596%3Fpage%3Dlast%26x-showcontent%3Doff"; [original link is broken] [original link is broken] [original link is broken]>Calculated [original link is broken] [original link is broken]

regards

rajendra

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you guys.

It really gave me a good idea of the calculated attribute.

Regards

Amit

Former Member
0 Kudos

Hi,

For eg. ur attribute is Name then

First u have to set the properties for an attribute as CALCULATED=TRUE

Automatically it will create two methods in implementation outline -


> getName( ) and setName( ) whatever u want write the code inside that method.

check the below link u can get idea about Calculated attributes...

http://help.sap.com/saphelp_nw70/helpdata/en/7f/a0384162316532e10000000a1550b0/frameset.htm

Former Member
0 Kudos

Hi Amit,

If u create a value attribute then there will be a property called "calculated".If u set that property as true then u get two methods called "getter" and "setter".This is to be used for setting some values to our variables and getting that.In java this is to be used for Encapsulation purpose.