on 07-31-2016 4:30 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi...
How you have done SALV_WD-TABLE external mapping and View container mapping?. Can you please share the screen shot of that..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.