03-14-2007 10:10 AM
1)ONCE REPORT IS GENERATED THROUGH ALV GRID DISPLAY.........CAN I MAKE ANY COLUMN EDITABLE ON CLICKING ON AN BUTTON GIVEN BY ME IN APPLICATION TOOL BAR.
<b>REMB</b>: OPERATION IS TO BE PERFRORMED AFTER GRID DISPLAY.
-
2) ONCE I EDIT ANY FIELD OF THE COLUMN .........WILL THAT CHANGE BE REFLECTED IN THE INTERNAL TABLE AUTOMATICALLY OR I NEED TO DO SOME EXTRA CODE MANIPULATION,B'COS I HAVE TO POST IT USING BAPI.
<b>SAMPLE CODE IF NAY PLEASE POST IT.............</b>
03-14-2007 10:17 AM
Hi,
1. This is a normal requirement and just you need to trigger your EDIT event on the click of the button so handle user command for that and call the edit functionality there.
Check this thread -
2. For saving in internal table back you need to move it from work area to internal table, the above links will also help you in that too.
Regards,
Amit
Reward all helpful replies.
03-14-2007 10:20 AM
hi,
chk this link.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm
Regards,
Anversha.S
03-14-2007 10:23 AM
chk this blog
/people/community.user/blog/2007/01/10/displaychange-mode-of-editable-fields-in-alv-using-function-modules-but-not-custom-containers
03-14-2007 9:53 PM
Hi,
you can do this, but you have write the code for that.
1. To edit the field when a button is clicked you need to change the field catalog.
if sy-ucomm = 'your button function code'.
change the field catalog.
gs_fieldcat-edit = 'X'. --- Need to set this for your field.
endif.
2. In user command routine you need to update your internal table accordingly.
Meaning if sy-ucomm = 'your button function code'. then update your internal table with your recent changes.
3. In the above routine only you need to say refreshing your screen.
slis_selfield-refresh = X.
BCALV_TEST_GRID -- check this program as an example.
Br,
Laxmi