cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data from a ALV hierarchy table..

Former Member
0 Kudos

Hi experts..

I have an ALV table with display type hierachy..

Thats editable..Now i want to save the changes back into the database ...

So how do i get the data of the table in to an internal table.........

Jagruti

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182190
Active Participant
0 Kudos

Hi Jagruti,

Did you write this line of code

node_test = wd_context->get_child_node( 'ALV_TABLE' ).

where 'ALV_TABLE' is the name of the context node that has been bound to the ALV .

After this call the get_static_attributes_table method.

Try this if you have not, may be of some help.

Regards,

Ismail.

Former Member
0 Kudos

hi..

ya have tried this..it doesnt work..

jagruti

Former Member
0 Kudos

hi

good

your query is bit incomplete,try this process hope ll get some help.

1- go to Se38

2- put BCALV*

3-press F4

4- you ll find lots of example related to ALV,test them and use as per your requirement.

thanks

mrutyun^

Former Member
0 Kudos

hi mrutyunjay...

Hey i want to do it in Webdynpro...Are these examples for web dynpro ABAP

jagruti

former_member182190
Active Participant
0 Kudos

Hi,

You would have declared a Context node that binds to the ALV table. So declare an internal table of the type of the context node and read the content of the ALV table.

Please find below the code snippet which may be of some help;

Assume the name of your view is Firstview and the node you have used for ALV is ALV_TABLE.

Data:lt_table type if_firstview=>elements_alv_table, “table to hold data

Node_table type ref to if_wd_context_node.

node_table = wd_context->get_child_node( 'ALV_TABLE' ).

CALL METHOD node_table->get_static_attributes_table( IMPORTING

table = lt_table ).

You will get all the data into an Internal table lt_table .

Now you can proceed to do your further proceedings with the Internal table.

Regards,

Ismail.

Former Member
0 Kudos

Hi Ismail...

No ismail this doesnt work since the ALV table has the display type as hierarchy...It is an ALV tree..

so when i say:

node_test->get_static_attributes_table( IMPORTING table = it_update ).

it_update has nothing ...

Can we use any other method...

Jagruti..