In alv Reports,how the Output is displayed ad editable and how
i can edit the same and how it will reflect the DB?Please
help...........
Answers were Sorted based on User's Feedback
In ALV Reports,the output is displayed by using the function
module:
REUSE_ALV_GRID_DISPLAY or REUSE_ALV_LIST_DISPLAY
Input for the above function modules is
program name and fieldcatalog and data internal table.
You can edit the records in the ouput list by using EDIT =
'X' option in the field catalog.
while filling the field catalog we have to consider the
field EDIT = 'X'.
But this is used for print purpose only we cannot save into
database.
Is This Answer Correct ? | 29 Yes | 7 No |
Answer / buddula15
It is possible to save in the database also by using OO ALV
by using event DATA_CHANGED and method CHECK_CHANGED_DATA
from class CL_GUI_ALV_GRID.
Buddula15
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / deepa
we can edit that by using field catalog , for that
particular field for which one we want to make in edit mode
make FIELDCATALOG-EDIT = 'X' and we can save in the data
base also.
by first we will modify the work area.then transfer that
value to temporary internal table.update the database by
using this value by using key word 'UPDATE or MODIfy based
on your requirement. But modify the Z table only. For sap
table use BDC or LSMW or BAPI.
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / chandra
It is possible to update data into database, using
i_callback_user_command in ALV FM
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE sy-ucomm.
WHEN '&DATA_SAVE'.
***write ur code here to update the tables*****
ENDCASE.
After editing click on save, which inturn saves data into DB
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / deepa
Hi
We can edit by using field catalog Edit as X.And in
selection screen you can edit that value and to update the
database you can use the statement like move the valu to a
temp table.then edit the database from that temp table.
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / chandra shekhar
In the field catalog we can make the option as
FIELDCATALOG-EDIT = 'X'.
And on the User command event we can read the Internal
table and can update the database.
Is This Answer Correct ? | 3 Yes | 2 No |
What are spa/gpa parameters (sap memory)?
Explain the difference between free and refresh?
hoe can we write the include programs in reports
what is the use of help view?how can we create search help for a field?in how many ways we can give search help?
What are the different types of mode (run code) in call transaction method?
What is IMG in SAP?
How many types os LSMW are there anyone knows please tell me?
How do you retrieve the data for repetitive structures
What are the different types of work process?
After sending the data(any type) from SENDER to RECEIVER can we send the same data to SENDER by using ALE?
With out any Write statement will the Top of the Page and End of Page trigger?
What is lock object ? : abap data dictionary