cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute in BO ?

Former Member
0 Kudos

Hi Experts,

I want to fetch the purchase group. iam using bus2105. i create a Virtual attribute. but iam not getting the Purchase group value.

i write the code as below.

Please Correct me.

Attribute = PurGroup

-> Virtual Attribute

ABAP Dictionary:

Reference table : EBAN

Ref field: BANFN

GET_PROPERTY PURGROUP CHANGING CONTAINER.

data:Purgroup type eban-ekgrp,

lv_banfn type eban-banfn.

select single ekgrp from eban into purgroup where banfn = lv_banfn.

SWC_SET_ELEMENT CONTAINER 'PurGroup' object-PURGROUP.

END_PROPERTY.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184495
Active Contributor
0 Kudos

Hi AK,

GET_PROPERTY PURGROUP CHANGING CONTAINER.

data: purgroup type eban-ekgrp,

lv_banfn type eban-banfn.

lv_banfn = object-key-number.

select single ekgrp from eban into purgroup where banfn = lv_banfn.

SWC_SET_ELEMENT CONTAINER 'PURGROUP' purgroup.

END_PROPERTY.

Hope it helps.

Aditya

Edited by: Aditya Varrier on Jul 8, 2010 11:00 AM

Answers (1)

Answers (1)

former_member650566
Active Participant
0 Kudos

Hi,

The field lv_banfn is blank. set lv_banfn = object-key-number.

Regards

Kedar