cancel
Showing results for 
Search instead for 
Did you mean: 

Save data in editable ALV

Former Member
0 Kudos

Hi all,

I am using an editable ALV in webdynpro using which I would like to save some data to a table. In the list of standard functions, I see only options like 'Insert row', 'Delete row' etc. There is no option to Save the edited data.

Even if I declare a user defined function, how do I specify the action it would trigger? Any help would be greatly appreciated. Thanks in advance.

Regards,

Nithya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nithya,

Once you edit an ALV, the data is automatically updated to the context node, you map in the DATA field of controller usage (of the component usage).

If you want to trigger event for change in ALV, see the below tutorial.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8">Using Events with ALV Tables

in Web Dynpro for ABAP</a>

If you want to trigger a event for user defined function,

  • Create a event handler method in the view. Specify event,

ON_FUNCTION of the interface controller of ALV for the event handler method.

  • The importing parameter r_param of the method contains unique ID of the

function for which the UI element is assigned.

For reference see the below tutorial. It will be useful.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110">Generating Self-Defined Functions for ALV in Web Dynpro for ABAP</a>

Hope it Helps

Rakesh

Answers (2)

Answers (2)

former_member226419
Contributor
0 Kudos

Hi,

I tried the same links. but its not working..

BR

Sumeet

Former Member
0 Kudos

Hi Rakesh,

Thanks a lot. This is what I was looking for.

Regards,

Nithya

Former Member
0 Kudos

Welcome

Former Member
0 Kudos

Can you please explain, how you solved the problem?

Thanks a lot!!

Best Regards

Ingmar