cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in dynamic ALV

Aisurya
Participant
0 Kudos

Hi experts,

i am facing problem in Dynamic ALV.

I am having data in a dynamic node .

when am trying to pass the same node to the ALV am not getting the data,

code as below :

 

dyn_node = wd_context->get_child_node( name = 'TEST_BLOCK' )

 DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
 IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
   l_ref_cmp_usage->create_component( ).
 ENDIF.
** Pass context node to ALV
 DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
 l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
  l_ref_interfacecontroller->set_data( dyn_node )


"dyn_node" is having data in it..
.

Help me in this....

Thanks

Aisurya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hai,

Double click on component controller then click on controller usage button after that a popup window opens, in that select the alv . After that map the required node to the data node in component controller.

Former Member
0 Kudos

Hi Aisurya,

Your dynamic node is only refering to TEST_BLOCK. But you have not given any values to the node.

You first bind your values (i.e internal table values) using BIND_TABLE method.


               dyn_node = wd_context->get_child_node( name = 'TEST_BLOCK' ).
               dyn_node->BIND_TABLE ( itab ). 
               

Regards,

Harry

Aisurya
Participant
0 Kudos

Hi harry,

i am having data in my dynamic node...

Thanks

Aisurya.

Former Member
0 Kudos

Hi,

Just try with bindtable method.

checkout, whether view TABLE of the ALV component into the ViewContainerUIelement CONTAINER.

Thanks,

Shailaja Ainala.