Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Save functionality

Former Member
0 Likes
1,036

Hi,

I have designed an alv with 10 columns,in which 5 are editable fields.

In user command , i have given

case sy-ucomm.

when '&DATA_SAVE'.

Loop at itab.

<THE ENTERED DATA COMING PROPERLY>

endlloop.

But if i give a new button in toolbar ('&SAVE'),The data is not coming in internal table.

I need to know that,if only &DATA_SAVE given,the data will be copied inside the program.

How to use different user command names apart from the &DATA_SAVE to save the data.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

so post the code you have for your sy-ucomm &SAVE button press....obviously you have something working when it's &DATA_SAVE...so what is different in your code between the two ucomm values?

3 REPLIES 3
Read only

Former Member
0 Likes
605

so post the code you have for your sy-ucomm &SAVE button press....obviously you have something working when it's &DATA_SAVE...so what is different in your code between the two ucomm values?

Read only

sjeevan
Active Contributor
0 Likes
604

When creating &SAVE button in SE41 I think you chose a "Reserved function keys" (F4 maybe?). Choose one from "Freely assigned function keys". See if it fixes your problem.

Also you don't have to use & in front you can just use SAVE, if you want.

Edited by: Jeevan Sagar on Nov 2, 2011 2:08 PM

Read only

Former Member
0 Likes
604

Thanks