on 05-22-2009 9:54 AM
Hi all.
I am working on webdynpro ALV.
Is there any way in which we can have ALV list display in web dynpros?.
If yes, let me know with a sample code if possible.
Please cooperate.
Thanks & regards,
Prati.
Hi,
Refer https://www.sdn.sap.com/irj/sdn/nw-ui?rid=/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8. [original link is broken]
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi prati,
Go to this link.
/docs/DOC-8715#section1 [original link is broken]
You will find tutorial on ALV.
Thanks and Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.
your point is clear to me.
I m already using the same in my programs.
Let me give you the details of what i m coding for.
I am taking bukrs and budat as input and depending on that m selecting corresponding entries from bsik,bsak,bkpf tables.
Then i make some calculations on amounts.
I then need to display a list say as follows:
amount paid within due date ..(calculated amount will appear here).
amount paid beyond due date ..(calculated amount will appear here).
total amount ..(calculated amount will appear here).
Later, when i click on a particular amt, i get a detailed alv table displaying the information in different fields.
Now, the summary that i have to display should obviously not appear as an ALV table.
I hope i was clear.
Thanks and regards,
Prati.
Hi Prati,
Try this.
Declare UI element table in view. in this table you can populate your three row as given.
amount paid within due date ..(calculated amount will appear here).
amount paid beyond due date ..(calculated amount will appear here).
total amount ..(calculated amount will appear here).
Now from Layout->Table->Events->OnleadSelect Declare one event. in that event you can write code for displaying further details in ALV or simple table. For displaying in ALV use this component salv_wd_table.
Regards
Vishnu Gupta
Hi Prati,
You can use link to action cell editor for your column. You can then implement the 'onClick' event and write the following code to get the selected amount.
* Get the index of the selected row
ind = r_param->index .
* Get element
l_elem = l_node->get_element( ind ) .
l_elem->get_attribute( exporting name = 'ATTRIBUTE NAME'
IMPORTING value = l_value ).
To create the link to action in your ALV column use the following code
* Column Settings
lr_column_settings ?= l_value .
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN 'CA_SUBJECT'.
lr_column_header = ls_column-r_column->get_header( ) .
lr_column_header->set_ddic_binding_field(
if_salv_wd_c_column_settings=>ddic_bind_none ) .
lr_column_header->set_text( 'Title' ) .
data:lr_link_to_action TYPE REF TO cl_salv_wd_uie_link_to_action.
* Create Link to Action
CREATE OBJECT lr_link_to_action.
lr_link_to_action->set_text_fieldname( ls_column-id ) .
ls_column-r_column->set_cell_editor( lr_link_to_action ).
* Set the column width
ls_column-r_column->set_resizable( value = abap_true ) .
ls_column-r_column->set_width( '200' ).
ENDCASE.
ENDLOOP.
Hi Radhika.
In my application for the summary output as i have shown above i m using a simple table.
I have a single row with 3 columns.
Is there a solution that provides me with a functionality in which different data is displayed on selecting data from different columns.
Link to action can be used with ALV table.
Now that a simple table is used, could you suggest me something applicable?
Or have I simply to use an ALV table?
Thanks,
Prati.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.