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 |
How can you see the errors displayed in IDOC?
What are the various types of BDC's?
If yes then why do we require logical database
Static and instance variable and method with live example. Why and when to use
How is time management and payroll is integrated? : sap abap hr
Is it possible to write code in LSMW if so when will you write?
what are the tools you are using for performance tuning in a object?
3 types of buffering techniqes. 1.bufering not allowed 2.buffering swithed on 3.buffering not allowed but switced on what does it means?
Can we create field without data element? If yes, how?
In scripts, i have 10 address lines there were blanks in between rows how can i avoid those
who is vendor?
How to copy table across clients?