Introduction This document will cover the basic steps that should be followed to get a editable field at the output of ALV.
The Deployment Logic
Create your custom program
Define Field Catalog, Define Style table , Define Data Tab and include style table in this.
In fieldcatalog pass Edit Parameter checked for which column output should editable. Pass style into data table and call Function Module
On output you will find a single row based on condition editable.
Steps involved The step that needs to be followed is as below. below. 1. Go to Se 37 , Create Create a Function Function module module based based on your your naming naming convent convention ion .
Define in Top data . DATA: LS_EDIT TYPE LVC_S_STYL, LT_EDIT TYPE LVC_T_STYL.
Define : HANDLE_STYLE TYPE LVC_T_STYL, "FOR DISABLE In your data tab. e.g- it_vbap is data tab.where tab.where 2 fields for data vbeln,posnr vbeln,posnr . so added handle_style into data tab. e.g.
DATA: BEGIN OF IT_VBAP OCCURS 0, VBELN LIKE VBAP-VBELN, POSNR LIKE VBAP-POSNR, Flag, HANDLE_STYLE TYPE LVC_T_STYL, "FOR DISABLE END OF IT_VBAP.
2. In imp impor orti ting ng para paramet meter er Pas Passs FLAG a mandatory Flag to and mention default value 1 for 167 infotype . As shown blow. LOOP AT IT_VBAP INTO LS_OUTTAB WHERE FLAG = 'X'. V_INDEX = SY-TABIX.
Conclusion This code could be used to get a editable row in the ALV outupu screen. Objective of this white paper is to Standardize and automate the efforts of Architects in applying this solution and Developers using the logic to maximum effect so as to reduce the development cycle.Reusablity of efforts is key to deliver more in short time to reduce the turn around time in Project management.