<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ALV Editable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986598#M1161730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in field catalogue explicitly mention edit = ' '  for the 10th row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vikas Chinta on Jan 16, 2009 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2009 08:07:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-16T08:07:54Z</dc:date>
    <item>
      <title>ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986596#M1161728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI i am working on alv,in whcih i have alternate columns as editable,now in my display i will have only 10 rows.i want the entire 10th column with non editable fields,how can i do this plz let me know.&lt;/P&gt;&lt;P&gt;i made those fields above as editable by putting edit = 'x' for alternate columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 07:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986596#M1161728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986597#M1161729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not process the changes made on any column in the 10th row..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986597#M1161729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T08:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986598#M1161730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in field catalogue explicitly mention edit = ' '  for the 10th row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vikas Chinta on Jan 16, 2009 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986598#M1161730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T08:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986599#M1161731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you cant keep a single row as editable and rest as non-editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only specified column or a set of columns can be editable but for all records, not in this way that you take field2 and field3 as editable for some records and for rest take field4 and field5 as editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can work for columns to be editable for all records being displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986599#M1161731</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-01-16T08:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986600#M1161732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at sample report &lt;STRONG&gt;ZUS_SDN_ALV_GRID_EDITABLE_FM&lt;/STRONG&gt; in thread &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1185385"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same solution can be applied for OO-based ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986600#M1161732</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-16T08:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986601#M1161733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1185385"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986601#M1161733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986602#M1161734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;although your quest..is not so clear i assume that you want to have some editable and some no-editable field in the same column...&lt;/P&gt;&lt;P&gt;if thats true ...here is the solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.In your ALV internal table stucture include this filed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;CELLTAB TYPE LVC_T_STYL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. befor displaying loop the internal table...like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : ls_celltab TYPE LVC_T_STYL

LOOP AT &amp;lt;table&amp;gt;  INTO &amp;lt;waork area&amp;gt;
LS_CELLTAB-FIELDNAME = 'COUNT'.  "fild name
    IF LS_RATE_ANL_TAB-ACT_NEW IS INITIAL. " condition
      LS_CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED. "uneditable 
    ELSE.
      LS_CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_ENABLED. "editable
    ENDIF.

    modify LS_CELLTAB from  TABLE &amp;lt;work area&amp;gt;-CELLTAB. "modify table using index

endloop..

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.put this in layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GS_LAYOUT_F4-STYLEFNAME = 'CELLTAB'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vivek jain on Jan 16, 2009 9:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 08:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986602#M1161734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T08:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986603#M1161735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran,&lt;/P&gt;&lt;P&gt;use input = 'X' of field catalog to display the column editable..&lt;/P&gt;&lt;P&gt;check out this sample code.. it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  Y_SAMPLE.

****TABLE WORK AREA
TABLES:VBAK.

***SELECTION SCREEN***

SELECT-OPTIONS:S_VBELN FOR VBAK-VBELN. " Sales Doc

***DEFINE INTERNAL TABLE WITH HEADER LINE****

DATA:IT_JTAB LIKE VBAK OCCURS 0 WITH HEADER LINE.

****PROVIDE TYPE GROUP***

TYPE-POOLS:SLIS.

***MAINTAIN REPORT ID***

DATA:REPID LIKE SY-REPID,

****DEFINE COLUMN HEADING****

VBAK_B TYPE SLIS_T_FIELDCAT_ALV ,
fs like line of vbak_b.

****START-OF-SELECTION EVENT***
START-OF-SELECTION.


***FUNCTION MODULE COLUMN HEADINGS****

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING
I_STRUCTURE_NAME = 'VBAK'

CHANGING
Ct_fieldcat = VBAK_B.

data:  w_fnam(30) type c,
       t_fname like table of w_fnam with header line.
t_fname = 'VBELN'.
APPEND t_fname.

t_fname = 'ERZET'.
APPEND t_fname.
fs-input = 'X'.
modify vbak_b from fs
transporting input
where COL_POS eq: 2,4,6,8,10.   " to display first 10 columns in editable mode.
                                " here the first field is mandt so start from col2.

****REPORT ID SYSTEM VARIABLE****
REPID = SY-REPID.

SELECT * FROM VBAK INTO TABLE IT_JTAB WHERE VBELN in S_VBELN.

****FUNCTION MODULE OUTPUT DISPLAY***

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING
I_CALLBACK_PROGRAM = REPID
IT_FIELDCAT = VBAK_B
*IT_EVENTS = EVENTS_B

TABLES
t_outtab = IT_JTAB.
****END OF PROGRAM****
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 07:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable/m-p/4986603#M1161735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T07:41:02Z</dc:date>
    </item>
  </channel>
</rss>

