cancel
Showing results for 
Search instead for 
Did you mean: 

node value changning

Former Member
0 Kudos

hi all,

I have a node with 2 subnodes

BOOK_DET ( cardinality 1:1)

BOOKING_TOTAL type i

BOOKING_AMOUNT type string

and both are bound to 2 textedit controls and it's not readonly.

I tried to change the contents using supply functions.

LV_BOOKING_AMOUNT = 'some value'.

LO_EL_BOOK_DET->SET_ATTRIBUTE(

EXPORTING

VALUE = LV_BOOKING_AMOUNT

IMPORTING

NAME = `BOOKING_AMOUNT`

).

but it's shows error that,

the field 'booking_amout' cannot be changed.

what the really happens here ????

regards

jose

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi jijo.....

first of all.... i am sure that you are referring BOOK_DET ( cardinality 1:1)

as a node and

BOOKING_TOTAL type i

BOOKING_AMOUNT type string

as attributes.

when you are using set_attribute, you should not have an importing parameter.

it should be like this

LO_EL_BOOK_DET->SET_ATTRIBUTE(

EXPORTING

name = LV_BOOKING_AMOUNT

value = `BOOKING_AMOUNT`

).

---regards,

alex b justin

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

use SET_ATTRIBUTE property for the attribute which you want to change

Former Member
0 Kudos

Hi,

For Set attribute use the following code :

LO_EL_BOOK_DET->SET_ATTRIBUTE(

EXPORTING

NAME = `BOOKING_AMOUNT`

VALUE = LV_BOOKING_AMOUNT

).

Thanks.

Edited by: Viji on Apr 17, 2008 10:37 AM