<?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: enterable alv grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210346#M473334</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;thank you - but one problem persists...it gives me an error saying that data-object ls_fieldcat doesnt have a component "edit". I am on 4.6 and have ls_fieldcat defined as ls_fieldcat TYPE slis_fieldcat_alv,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 12:38:16 GMT</pubDate>
    <dc:creator>former_member5350</dc:creator>
    <dc:date>2007-04-24T12:38:16Z</dc:date>
    <item>
      <title>enterable alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210342#M473330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a quite simple requirement but i do not find the right approach to it, so i would be very happy if anyone could get me started:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i need is an enterable alvgrid where fieldnames along with checkboxes are displayed and where i can enter a value next to each row or add/delete lines, just as in SE 16. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KUNNR               cb                               20&lt;/P&gt;&lt;P&gt;ORT01                cb                               50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple and effective way to get this done ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks - points will be surely awared generously &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 12:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210342#M473330</guid>
      <dc:creator>former_member5350</dc:creator>
      <dc:date>2007-04-24T12:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: enterable alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210343#M473331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example od editable ALV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: g_container TYPE scrfname VALUE 'CUSTOM CONTROL',
      g_custom_container TYPE REF TO cl_gui_custom_container,
      g_grid  TYPE REF TO cl_gui_alv_grid,
      gs_layout TYPE lvc_s_layo,
      ok_code LIKE sy-ucomm,
      save_ok LIKE sy-ucomm.
.

DATA: gt_outtab TYPE TABLE OF sflight.


*---------------------------------------------------------------------*
*       MAIN                                                          *
*---------------------------------------------------------------------*
CALL SCREEN 100 STARTING AT 1 1..

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*

MODULE status_0100 OUTPUT.
  SET PF-STATUS 'MAIN100'.
  SET TITLEBAR 'MAIN100'.

ENDMODULE.                 " STATUS_0100  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  pbo  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE pbo OUTPUT.

  IF g_custom_container IS INITIAL.

    CREATE OBJECT g_custom_container
      EXPORTING
        container_name              = g_container
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5
        OTHERS                      = 6.
    IF sy-subrc &amp;lt;&amp;gt; 0.
*      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.


    CREATE OBJECT g_grid
      EXPORTING
        i_parent          = g_custom_container
      EXCEPTIONS
        error_cntl_create = 1
        error_cntl_init   = 2
        error_cntl_link   = 3
        error_dp_create   = 4
        OTHERS            = 5 .
    IF sy-subrc &amp;lt;&amp;gt; 0.
*      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    gs_layout-edit = 'X'.

    SELECT * FROM sflight INTO TABLE gt_outtab UP TO 10 ROWS.

*§1.Set status of all cells to editable using the layout structure.
    CALL METHOD g_grid-&amp;gt;set_table_for_first_display
      EXPORTING
        i_structure_name              = 'SFLIGHT'
        is_layout                     = gs_layout
      CHANGING
        it_outtab                     = gt_outtab
      EXCEPTIONS
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4.
    IF sy-subrc &amp;lt;&amp;gt; 0.
*      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

*§2.Use SET_READY_FOR_INPUT to allow editing initially.
    CALL METHOD g_grid-&amp;gt;set_ready_for_input
      EXPORTING
        i_ready_for_input = 1.

  ENDIF.
ENDMODULE.                 " pbo  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  pai  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE pai INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  CASE save_ok.
    WHEN 'EXIT'.
      PERFORM exit_program.
    WHEN 'SWITCH'.
      PERFORM switch_edit_mode.
    WHEN OTHERS.
*     do nothing
  ENDCASE.
ENDMODULE.                 " pai  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  exit_program
*&amp;amp;---------------------------------------------------------------------*
FORM exit_program .
  LEAVE PROGRAM.
ENDFORM.                    " exit_program
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  switch_edit_mode
*&amp;amp;---------------------------------------------------------------------*
FORM switch_edit_mode .

*§3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
  IF g_grid-&amp;gt;is_ready_for_input( ) EQ 0.
    CALL METHOD g_grid-&amp;gt;set_ready_for_input
      EXPORTING
        i_ready_for_input = 1.
  ELSE.
    CALL METHOD g_grid-&amp;gt;set_ready_for_input
      EXPORTING
        i_ready_for_input = 0.
  ENDIF.
ENDFORM.                    " switch_edit_mode&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 12:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210343#M473331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T12:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: enterable alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210344#M473332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to make the fields editable , in the fieldcatalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcatalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also chk BCALV_EDIT_05 program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 12:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210344#M473332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T12:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: enterable alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210345#M473333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes u can do that,&lt;/P&gt;&lt;P&gt;in the field catalog for check box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-field = vbeln.&lt;/P&gt;&lt;P&gt;fieldcatalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;for check box take a field and set its property as &lt;/P&gt;&lt;P&gt;fieldcatalog-box = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 12:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210345#M473333</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-24T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: enterable alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210346#M473334</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;thank you - but one problem persists...it gives me an error saying that data-object ls_fieldcat doesnt have a component "edit". I am on 4.6 and have ls_fieldcat defined as ls_fieldcat TYPE slis_fieldcat_alv,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 12:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enterable-alv-grid/m-p/2210346#M473334</guid>
      <dc:creator>former_member5350</dc:creator>
      <dc:date>2007-04-24T12:38:16Z</dc:date>
    </item>
  </channel>
</rss>

