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

Editable ALV Grid: Append new rows

Former Member
0 Likes
898

Hi All,

I have developed a report which will displays output in editable ALV grid list. Users can modify the values in output and save. These values will be stored in one custom table.

My requirement is whenever user clicks on '+' mark (Create entries or Append or Copy: Standard toolbar) report should allow to enter new entries and save. How do I capture the selected function code? why becuase i need to display one value from the custom table in that added new row...

Regards,

Ramesh.

Now requirement has been changed...

4 REPLIES 4
Read only

former_member203501
Active Contributor
0 Likes
744

Hi Ramesh,

please check changed data event.....

please go through the reference link......

https://wiki.sdn.sap.com/wiki/display/Snippets/UpdatingtheInternalTable-AfterEditinALVusingFunctionModules

Regards,

Venkat

Read only

Former Member
0 Likes
744

in the ALV FM there is a event called USER_COMMAND you can pass your subroutine name in here as a parameter in I_CALLBACK_USER_COMMAD = 'SUB_USER_COMMAND'.

FORM sub_user_command

USING ucomm TYPE sy-ucomm fields TYPE slis_selfield.

this ucomm will hold the FCODE. you can check with this

endform.

Read only

Former Member
0 Likes
744

Thanks for your reply...

I have used the user-command, but it works only for our PF-STATUS. If you create PF-STATUS by our own and add some buttons and then the USER-COMMAND will triggered.

But wherein my case I am using stadard layout, thats the reason I am not able to catch that function code in my program. I have tried with Data_Changed method eventhough it is not triggering my method.

Regards,

Ramesh.

Read only

Former Member
0 Likes
744

Now requirement has been changed...