Skip to Content

Problem in dynamic ALV

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2011 at 11:32 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2011 at 07:19 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.