Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

runtime error when am adding a node to oop alv

Former Member
0 Likes
358

i am adding a node to alv tree using oop am passing a work area and when i execute it is going for a dump and it says UC_OBJECTS_NOT_CONVERTIBLE

and the below where it is bold and italic it is where the dump is occuring

METHOD ADD_NODE.

FIELD-SYMBOLS: <TAB1> TYPE standard TABLE,

<wa> type any.

assign mt_outtab->* to <tab1>.

  • insert line in outtab

DATA: L_INDEX TYPE SY-TABIX.

if is_outtab_line is initial.

  • create initial line

data l_dref_wa type ref to data.

create data l_dref_wa like line of <tab1>.

assign l_dref_wa->* to <wa>.

l_index = 0.

append <wa> to <Tab1>.

else.

<i><b> APPEND IS_OUTTAB_LINE TO <TAB1>.</b></i> endif.

L_INDEX = SY-TABIX.

  • add node to model

CALL METHOD ME->ADD_MODEL_NODE

EXPORTING

I_RELAT_NODE_KEY = I_RELAT_NODE_KEY

I_RELATIONSHIP = I_RELATIONSHIP

IS_NODE_LAYOUT = IS_NODE_LAYOUT

IT_ITEM_LAYOUT = IT_ITEM_LAYOUT

I_NODE_TEXT = I_NODE_TEXT

I_INDEX_OUTTAB = L_INDEX

IMPORTING

E_NEW_NODE_KEY = E_NEW_NODE_KEY.

ENDMETHOD.

1 REPLY 1
Read only

Former Member
0 Likes
322

Hi Mohsin,

Check the program : BCALV_TREE_MOVE_NODE_TEST

Regards,

Basha

Rewards points if it helps you.