cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Dispaly issue in Webdynpro

former_member225134
Participant
0 Kudos

Hi All,

       in my requirement i want to display the ALV screen with the z-table entries..

So in my Main Screen i created one button (REPORT) , once the user clicks the button REPORT , i want to display the

Z-table entries in New screen...

Here i created the button (but1) , on event creation : (on action report) double click on this under this my code should like below..

In Properties i created ALV_TEST-SALV_WD-TABLE.

In that main view i embed the alv_test........

* create local data variable to access context information

  Data: context_node type ref to if_wd_context_node.

* create table based on context structure

  data: it_scarr type STANDARD TABLE OF if_view1=>element_ALV_TABLE,    -----------> context node

  wa_scarr like line of it_scarr.

*select data from required SAP table

  select *

  from scarr

  into table it_scarr.

* bind data to context used by ALV

  context_node = wd_context->get_child_node( name = 'ALV_TABLE').

  context_node->BIND_table( it_scarr ).

After that i dint get any ALV display....Kindly give me any suggestions  to display the report..

Thanks,

Nithya

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Nithya,

Please check the cardinality of the ALV context node. It should be 0..N or 1..N depending on your requirement.

Thanks,

Varuna

former_member225134
Participant
0 Kudos

Hi Varuna,

              Thanks for your Repli.

Is it possible to display the ALV on Same screen..When user Clicks the corresponding button,

that tym i want to display the ALV rpeort..Remainig time  the table should be blank(invisble table).

When users clicks the button that time only i want to sdisplay..

Can you suggest please?

Thanks,

Nithya

0 Kudos

Hello Nithya,

You can hide/display alv using context node visibility feature.

Please reward if useful.

Thanks,

Varuna

Former Member
0 Kudos

Hi...

         How you have done SALV_WD-TABLE external mapping and View container mapping?. Can you please share the screen shot of that..