Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to add created element to node?

hi experts,

I am having node structure like this :

CLAIM <--- NODE

CLAIMITEM <--- NODE

EXPENSETYPE <--- NODE

expvar <--- ATTRIBUTE

DATEVAR <--- ATTRIBUTE

i m BIND ing node CLAIMITEM to datasource property of table control , having two fields expensetype as dropdown and date.

i am using table for input purpose. so in component controller , where i create the element for claimitem node like this,

DATA:

NODE_CLAIM TYPE REF TO IF_WD_CONTEXT_NODE,

NODE_CLAIMITEM TYPE REF TO IF_WD_CONTEXT_NODE,

ELEM_CLAIMITEM TYPE REF TO IF_WD_CONTEXT_ELEMENT,

STRU_CLAIMITEM TYPE IF_COMPONENTCONTROLLER=>ELEMENT_CLAIMITEM .

NODE_CLAIM = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_CLAIM ).

CALL METHOD NODE_CLAIM->CREATE_ELEMENT

RECEIVING

ELEMENT = ELEM_CLAIMITEM.

now if i want to add this element to node claimitem how its possible?

because if i execute application i am getting table in noneditable form..

Thanks,

saurin shah

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question