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 |
why u can call(r using) ssf_function_module_name in smartforms?
Have you printed any report?
How to see the error message if we use call transaction method in BDC ??
which is not a table?
What are th control break events in abap?
what is the use of start-of-selection event? what is the difference betn end-of-page and end-of-selection?
what is meant by LUW?(Both at database level and screen level)?
what is the diff b/w error and exceptions
Have you set up a back ground job ? How to create a background job without a variant ?
what is the difference between Ale abd Bapi?
singleton class
What type of variables normally used in sap script to output data?