cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Append and Insert

Former Member
0 Kudos

Hi Friends,

IN ALV I want to write some coding on "Append Row" and "Insert Row" .

But the Events ON_DATA_CHECK,  BEFOR_ACTION and AFTER action is not triggering for those actions.

Can anyone help me how to do that?

Thanks & Regards,

Ashok

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

I have found answer my self. thanks.

Regards,

Ashok

amy_king
Active Contributor
0 Kudos

Hi Ashok,

I'm glad you were able to solve it. Please post your solution so that anyone with the same issue who finds this post will see your solution.

Cheers,

Amy

Former Member
0 Kudos

Sure Amy,

I am not using any ALV events because it's not suitable for my requirement.

Since i need to have DropDown column in ALV.

So while appending i used the view hook method WDDOAFTERACTION of the view which ALV is embeded.

Inside that method read the ALV context table . and identify the empty row and populate the value set for the empty row.

This may not be the actual way... But i'm not able to find another way.

But this resoled my issue......

Thanks&regards,

Ashok

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Ashok,

Please take a look at Thomas Jung's document, Web Dynpro ABAP - ALV Controlling Standard Buttons, which describes how to intercept ALV standard functions to add custom logic.

Cheers,

Amy

Former Member
0 Kudos

Hi Amy,

Thanks for your response.

I already had a look at this document. He has written the code using ON_DATA_CHECK event.

but my requirement is to have a list box in ALV.

So while clicking APPEND or INSERT , before the new line been added to ALV, i need to populate the value set.

So for this case we can't use ON_DATA _CHECK event.

Please reply back if you have got some idea.

Thanks&Regards,

Ashok