<?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 OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572319#M587455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The length of the fieldcat in that field is of 20 characters. But i can enter only 10 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked your answer but couldn't be resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 10:57:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T10:57:22Z</dc:date>
    <item>
      <title>ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572316#M587452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my requirement, my ALV Grid should be able to edit the cell. I achieved editing output. &lt;/P&gt;&lt;P&gt;But my doubt is When i edit a cell, I can enter a maximum of 10 characters in the editable cell even if i edit a cell which has 20 characters, but not more than that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the reason behind that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your efforts will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572316#M587452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572317#M587453</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;CHANGE THE LENGTH OF THE FIELD IN THE CATALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572317#M587453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572318#M587454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;length of that perticular field in field cat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572318#M587454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572319#M587455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The length of the fieldcat in that field is of 20 characters. But i can enter only 10 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked your answer but couldn't be resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572319#M587455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572320#M587456</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this gs_layout-edit = '20'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ok_code LIKE sy-ucomm,
      save_ok like sy-ucomm,
      g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
      g_grid  TYPE REF TO cl_gui_alv_grid,
      g_custom_container TYPE REF TO cl_gui_custom_container,
      gs_layout TYPE lvc_s_layo,
      g_max type i value 100.
 
DATA: gt_outtab type table of sflight.
 
*---------------------------------------------------------------------*
*       MAIN                                                          *
*---------------------------------------------------------------------*
CALL SCREEN 100 starting at 1 1..
 
*---------------------------------------------------------------------*
*       MODULE PBO OUTPUT                                             *
*---------------------------------------------------------------------*
MODULE pbo OUTPUT.
  SET PF-STATUS 'MAIN100'.
  set TITLEBAR 'MAIN100'.
  IF g_custom_container IS INITIAL.
    CREATE OBJECT g_custom_container
           EXPORTING container_name = g_container.
    CREATE OBJECT g_grid
           EXPORTING i_parent = g_custom_container.
*§1.Set status of all cells to editable using the layout structure.
    gs_layout-edit = 'X'.
 
    select * from sflight into table gt_outtab up to g_max rows.
 
    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.
*§2.Use SET_READY_FOR_INPUT to allow editing initially.
*   (state "editable and ready for input").
    CALL METHOD g_grid-&amp;gt;set_ready_for_input
          EXPORTING i_ready_for_input = 1.
 
  ENDIF.
ENDMODULE.
*---------------------------------------------------------------------*
*       MODULE PAI INPUT                                              *
*---------------------------------------------------------------------*
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.
*---------------------------------------------------------------------*
*       FORM EXIT_PROGRAM                                             *
*---------------------------------------------------------------------*
FORM exit_program.
  LEAVE PROGRAM.
ENDFORM.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SWITCH_EDIT_MODE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
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.
*§4.Use SET_READY_FOR_INPUT to switch between the substates.
    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;Check out these sample programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_01 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program illustrates how the events for print processing PRINT_TOP_OF_PAGE, &lt;/P&gt;&lt;P&gt;PRINT_END_OF_PAGE, PRINT_TOP_OF_LIST,PRINT_END_OF_LIST are handled. The &lt;/P&gt;&lt;P&gt;corresponding handler methods control the appearance of the list printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_02 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show a detail list in an amodal window. There is no second dynro needed in contrast to &lt;/P&gt;&lt;P&gt;BCALV_GRID_03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_03 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program implements a function on event DOUBLE_CLICK. According to the selected line data &lt;/P&gt;&lt;P&gt;from table SBOOK is selected and displayed by a second ALV Control in a dialog dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_04 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Illustrates the use of exceptions (lights or leds). According to the values of SFLIGHT-SEATSOCC, the &lt;/P&gt;&lt;P&gt;lights are set to 1 (red), 2 (yellow) or 3 (green).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_05 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demonstrate the creation of an own toolbar button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_06 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demonstrate the creation of an own context menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_07 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append a menu button to the standard toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_08 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append a menu with default button to the standard toolbar. It is exactly the same as &lt;/P&gt;&lt;P&gt;BCALVC_TB_WITH_MENU except for methods HANDLE_MENU_BUTTON and HANDLE_TOOLBAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Editable ALV grids&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_02 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This report illustrates how to set chosen cells of an ALV Grid Control editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_03 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE. &lt;/P&gt;&lt;P&gt;The report checks the input value(s) semantically and provides protocol messages in case of error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_04 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to &lt;/P&gt;&lt;P&gt;implement the saving of the new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_05 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example shows how to use checkboxes within an ALV Grid Control. You learn:&lt;/P&gt;&lt;P&gt;(1) how to define a column for editable checkboxes for an attribute of your list&lt;/P&gt;&lt;P&gt;(2) how to evaluate the checked checkboxes&lt;/P&gt;&lt;P&gt;(3) how to switch between editable and non-editable checkboxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_06 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example shows how to define a dropdown listbox for all cells of one column in an editable ALV &lt;/P&gt;&lt;P&gt;Grid Control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_07 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example shows how to define dropdown listboxes for particular cells of your output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_08 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This report implements an ALV Grid Control with an application specific F4 help. The following aspects &lt;/P&gt;&lt;P&gt;are dealt with:&lt;/P&gt;&lt;P&gt;(1) how to replace the standard f4 help&lt;/P&gt;&lt;P&gt;(2) how to pass the selected value to the ALV Grid Control&lt;/P&gt;&lt;P&gt;(3) how to build an f4 help, whose value range depend on a value of another cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link tooo&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/23/oops" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/07/23/oops&lt;/A&gt;&lt;EM&gt;ALV&lt;/EM&gt;in+ABAP&amp;amp;showComments=true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pavan praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572320#M587456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572321#M587457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gs_layout-edit is a character variable of size 1. It has values 'X' or '  '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_layout-edit = '20' has no significance.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572321#M587457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572322#M587458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread couldn't provide me answers, so i'm using another thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572322#M587458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572323#M587459</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;I want to edit specific cell in ALV using OOPS at runtime i.e. If there are 10 rows and 10 columns in a table&lt;/P&gt;&lt;P&gt;Now I select 5 rows randomly and I have to edit only one column for that selected 5 rows as well after edit i have to save that changed values to database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how can I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate if you will give me some examples&lt;/P&gt;&lt;P&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>Sat, 11 Feb 2012 13:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops/m-p/2572323#M587459</guid>
      <dc:creator>dipesh_kumar</dc:creator>
      <dc:date>2012-02-11T13:02:02Z</dc:date>
    </item>
  </channel>
</rss>

