cancel
Showing results for 
Search instead for 
Did you mean: 

Read Cost element attributes

Former Member
0 Kudos

Folks,

Cost Element InfoObject has a attribute "Type".

Different values for "Type" = 1,2,3

Cost element is a time dependent compounded InfoObject. Hence I need to pass the value of related controlling area and time.

How do I read the value of attribute "Type"?

I have tried using ATRV & ATRVT, but without any luck.

Would appreciate if you could give an example for deriving the attribute value from a compounded time dependent InfoObject.

Thanx,

Raghu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanx Anurag, but not very sure if I can use Charateristic relationship.

I need to obtain the value of the attribute in a fox function. Let me explain it further.

Background :

*************************************************

Planning area -


Charac----


KF

*************************************************

area1 -


Payscale group--- Amount

-


Cost element------AmountVR

_________________________________________________

area2--


Payscalegroup----KF1

-


KF2

-


KF3

*************************************************

Cost Element has an attribute "Type"

Value for attribute "Type" = 1,2,3

Based on the value of the attribute, the corresponding KF needs to be multiplied.

Logic :

If type = 1.

AmountVR = Amount * KF1.

elseif type = 2.

AmountVR = Amount * KF2.

elseif type = 3.

AmountVR = Amount * KF3.

endif.

The problem I'm facing is that I'm not able to read the data of attribute "Type". None of the below statement retrieve the value of the "Type".

TYPE = ATRV(Attribute,COSTELEMENT,CO_AREA)

or

TYPE = ATRV(Attribute,COSTELEMENT)

Could you please help me in reading from a time dependent compounding InfoObject?

Regards,

Raghu

Former Member
0 Kudos

Hi Raghavendra,

Welcome to SDN

Use the Characteristic Relationship feature for the same

refer below link

http://help.sap.com/saphelp_nw04/helpdata/en/ea/39a64281c611d5b3e50050dadfb23f/frameset.htm

Hope it helps

got the wrong link earlier

Message was edited by: Anurag Khungar