on 04-01-2007 4:40 PM
Hi,
I have a problem in ALV when used in webdynpro. I am reusing a component salv_wd_table. It also provides default buttons such as insert row, delete row. When i click on insert row it does inserts a new row in ALV, but i also wanted an automatic number to be generated along with it for a particular column. I dont know where to insert the autogeneration-code ie to which method or event handler to achieve this. Can anyone give a solution to this.
Points wud be rewarded graciously.
Thank you,
Jithesh
Hi Jithesh,
Try this pdf. It has a collection of practical tips about the use of ALV in WD.
how to manage and configure it runtime, etc.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4</a>
part of Table of Contents:
ALV in Web Dynpro.........................................................................................................................3
Use ALV in Web Dynpro.............................................................................................................3
Incorporate ALV........................................................................................................................3
Get reference to ALV component and configuration model.....................................................3
Hide / add function buttons in your ALV...................................................................................3
Enable the Settings dialog in your WD.....................................................................................4
Change the position of a column..............................................................................................4
Automatically set number of visible rows to number of items..................................................4
Set properties of individual columns.........................................................................................5
Put a button (or an other UI element) inside the cells of a column..........................................5
Use S/M/L text from domain for column header.......................................................................6
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jithesh C K ,
There is special package for ALV Demo .
<b> SALV_WD_DEMO .</b> It that you will got all possible ALV examples
Wait not just that teher are pdf avilable by following name
<b>Simple Example for Using ALV in Web Dynpro for ABAP</b> .
Generating Self-Defined Functions for ALV in Web Dynpro for ABAP.
Editing ALV in Web Dynpro for ABAP.
Programming the ALV Configuration Model in Web Dynpro for ABAP.
Search with these Titles you will get it in SDN.
Hope this is enough for time being.
Cheers
Parry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jithesh.
You can register for some events of the ALV component.
ON_STD_FUNCTION_AFTE After executing a standard ALV function
ON_STD_FUNCTION_BEFO Before executing a standard ALV function
So you have to create an event handler method in the controller of the component
that has the component usage to the ALV component. There you can select the
event you want to register for.
The ALV component then passes an object of type
IF_SALV_WD_TABLE_STD_FUNCTION to the event handler method. Then you can
check out what standard method was processed (Insert, Delete, ...) and add the
auto number to the new added row.
I did not test this so far, but I guess thats the way it works.
Hope this helps a bit.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jithesh,
Kindly check out following,
Please see Package SWDP_DEMO_TUTORIALS >> In webDynpro see
WDT_ALV.
Cheers,
Darshna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.