cancel
Showing results for 
Search instead for 
Did you mean: 

lead select ALV

Former Member
0 Kudos

I just made my first alv.

But I wonder where to paste code? Or how to speak with the alv table?

Can sombedy give an exampe? how i can make a lead selection?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check the link for [ALV|https://www.sdn.sap.com/irj/sdn/nw-wdabap?rid=/webcontent/uuid/c0edbceb-3bad-2910-0bae-8bc63fc18b97] [original link is broken];

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

For ALV we need to Include one Standard Component SALV_WD_TABLE, In that Component Contain many Events,

ON_AFTER_CONFIG After loading the settings of a view

ON_CELL_ACTION

ON_CLICK After cicking in a cell of the ALV output

ON_DATA_CHECK After the call for checking the data modification

ON_FUNCTION After calling a self-defining application-specific function

ON_LEAD_SELECT After changing the lead selection

ON_STD_FUNCTION_AFTE After executing a standard ALV function

ON_STD_FUNCTION_BEFO Before executing a standard ALV function

For On Lead selection , We can use ON_LEAD_SELECT event .

In View Create one Event Handler method using ON_LEAD_SELECT event, within that event we can write our code for Lead Selection.

Regards,

Vijay

Former Member
0 Kudos

I have SALV_WD_TABLE.

And now i don't know what to do next.

I write code in wddoinit() ?

ON_LEAD_SELECT After changing the lead selection

ON_STD_FUNCTION_AFTE After executing a standard ALV function

ON_STD_FUNCTION_BEFO Before executing a standard ALV function

For On Lead selection , We can use ON_LEAD_SELECT event .

In View Create one Event Handler method using ON_LEAD_SELECT event, within that eve

Former Member
0 Kudos

I mean, my problem is more general.

How to communicate with my alv?

I write in my view in the method that on selectign the function lead_select should be excuted?

I think I need just a structural hint....

Former Member
0 Kudos

Hi

In your method tab, create a new method of type 'Event Handler' and select event as ON_LEAD_SELECT.

so this method will invoke when ON_LEAD_SELECT event will be fired. You can write coding in that method which willexecuted on trigger of ON_LEAD_SELECT event.

Regards

Naresh

Former Member
0 Kudos

ok, i think thats my problem:

how can i fire the event "on lead_select" from with alv?

how does it know that i pressed the button in front of the alv grid?

Former Member
0 Kudos

these are the standard events given by the standard ALV component.ON_LEAD_SELECT event will be fired when you select any row in the ALV.

we have option to trigger our own methods on triggering of these events.so we can attach our methods to these events.

Former Member
0 Kudos

1. I have now in my view an event handler ON_LEAD_SELECT with a break-point in it.

2. I start running the application.

3. i pressed onto the table but it does not jump to a break point...

Former Member
0 Kudos

Please check the following points

1. have your created a method of type event handle

2. have you put break-point inside method.

3. have you selected a row in ALV to trigger ON_LEAD_SELECT.