cancel
Showing results for 
Search instead for 
Did you mean: 

ALV in Webdynpro

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Jithesh,

Kindly check out following,

Please see Package SWDP_DEMO_TUTORIALS >> In webDynpro see

WDT_ALV.

Cheers,

Darshna.