Professional Documents
Culture Documents
Alv Row Editable
Alv Row Editable
White Paper
By
Vijay Agarwal
Abstract
To make single row editable in alv display based on certain condition using Function
Module ‘Reuse_ALV_GRID_DISPLAY’ .
In many of the business scenarios User wants Reports in ALV display and in that they
want ALV row editable based on certain criteria.
tions ia
output Abbrev
A LV
mo d if y to
wil l help out
is
o c u m ent. Th
s d
n. c a n u s e t hi
scree
A P m odule h e D o main
B t
SAP A About
Term Description
ERP Enterprise Resource Planning
Sábado, 17 de Septiembre del 2022
ABAP Advanced Business Application
Programming
Contents
Introduction........................................................................................................................................................... 2
The Deployment Logic........................................................................................................................................... 2
Steps involved........................................................................................................................................................ 2
Output.................................................................................................................................................................... 5
Conclusion............................................................................................................................................................. 6
References.............................................................................................................................................................. 7
Introduction
This document will cover the basic steps that should be followed to get a editable field at the
output of ALV.
Steps involved
The step that needs to be followed is as below.
1. G o to Se 37 , Create a Function module based on your naming
convention .
Define in Top da ta .
LVC_T_S TYL.
Fl ag,
V_INDEX = S Y - TABI X.
LS_EDIT-STYLE =
CL_GUI _ALV_GRI D=>MC_STYLE_ENAABLED.
LS_EDIT-STYLE2 = S P A C E
.
LS_EDIT-STYLE3 = S P A C E
.
LS_EDIT-STYLE4 = S P A C E
.
LS_EDIT-MAXLEN = 8 .
LS_EDIT-STYLE =
CL_GUI _ALV_GRI D=>MC_STYLE_ENABLED.
L S _ E D I T - STYLE2 = S P A C E
.
L S _ E D I T - STYLE3 = S P A C E
.
L S _ E D I T - STYLE4 = S P A C E
.
L S _ E D I T - MAXLEN = 8 .
ENDLOOP .
3. G o to Tables Define
While filling fieldcat pass following for the column you want to make as editable.
EXP ORTI NG
I T_ F I ELDCAT_ LVC =
I T_ F I ELDCAT
TABLES
T_OUTTAB = IT_VBAP[
]
E XC E P T I O N S
PROGRAM_ERROR = 1
OTHERS = 2.
Output
Conclusion
This code could be used to get a editable row in the ALV outupu screen.