<?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 Report input enabled drop down list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494473#M1257163</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;Kindly go through these links below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 09:53:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-17T09:53:38Z</dc:date>
    <item>
      <title>ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494467#M1257157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am looking for one ALV report where one of the column is input enabled with drop down list and when when user chooses a value and presses SAVE button at the top, then the value should be saved into a table for that particular line item. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Atanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494467#M1257157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494468#M1257158</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;This can be done.&lt;/P&gt;&lt;P&gt;For the input enabled column in the ALV in the fieldcat You will have  to include edit = 'X' and f4availabl = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is done, you can use OO ABAP to design the ALV for F4 help. To get pointers to this see the program  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_F4&lt;/P&gt;&lt;P&gt;BCALV_GRID_F4_HELP_APPLICATIO&lt;/P&gt;&lt;P&gt;BCALV_GRID_F4_HELPM01&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_F4_HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More options on F4 would be in the program &lt;STRONG&gt;BCALV_TEST_GRID_F4_HELP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SAP USER on Apr 17, 2009 11:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494468#M1257158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494469#M1257159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Kindly refer Standard SAP Prog &lt;STRONG&gt;BCALV_EDIT_06&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;BCALV_EDIT_07&lt;/STRONG&gt; for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you in developing,&lt;/P&gt;&lt;P&gt;Pratik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494469#M1257159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T09:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494470#M1257160</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;For drop down list in alv refer:-&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BCALV_EDIT_06 --                  Dropdown Listbox at Column Level&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BCALV_EDIT_07 --                  Dropdown Listbox at Cell Level&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6448252"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code will reflect all the changes into the internal table that is being displayed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_program                = v_rep_id       " report id
     i_callback_pf_status_set          = 'PF'           " for PF-STATUS
     i_callback_user_command           = 'USER_COMMAND' " for User-Command
     is_layout                         = wa_layout      " for layout
     it_fieldcat                       = it_field       " field catalog
     it_sort                           = it_sort        " sort info
    TABLES
      t_outtab                          = it_final      " internal table
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2.

  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.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  pf
*&amp;amp;---------------------------------------------------------------------*
*       SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN
*       ON WHICH THE ALV GRID IS DISPLAYED
*----------------------------------------------------------------------*
*       --&amp;gt;RT_EXTAB
*----------------------------------------------------------------------*
FORM pf USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ZTG_STAT'.
ENDFORM.                    "pf

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
*       AND EXECUTE THE APPROPIATE CODE
*----------------------------------------------------------------------*
*      --&amp;gt;LV_OKCODE   used to capture the function code
*                     of the user-defined push-buttons
*      --&amp;gt;L_SELFIELD   text
*----------------------------------------------------------------------*
FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.

* assign the function code to variable v_okcode
  lv_okcode = sy-ucomm.

* handle the code execution based on the function code encountered
  CASE lv_okcode.

* when the function code is SAVE then save records into internal table
    WHEN 'SAVE'.

* to reflect the data changed into internal table
      DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new

      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.

      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid-&amp;gt;check_changed_data.
      ENDIF.

"now at this time you have modified internal table

* refresh the ALV Grid output from internal table
      l_selfield-refresh = 'X'.

"alv output is refreshed as per changes in internal table

  ENDCASE.

ENDFORM.                    "USER_COMMAND
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494470#M1257160</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-17T09:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494471#M1257161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;check the report BCALV_EDIT_06 is good for drop down and selection....but u need to write the coding for save in it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494471#M1257161</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-04-17T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494472#M1257162</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make it editable and dropdown enabled in the fieldcatalog. Along with the other data use the below two fields of the fieldcatalog structure to fulfill your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_fieldcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wa_fieldcat-edit        = 'X'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat_-drdn_hndl   = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   i_dropdown          TYPE lvc_t_drop,&lt;/P&gt;&lt;P&gt;          wa_dropdown         TYPE lvc_s_drop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_dropdown-handle = '1'.&lt;/P&gt;&lt;P&gt;  MOVE &amp;lt;required value&amp;gt; TO wa_dropdown-value.&lt;/P&gt;&lt;P&gt;  APPEND wa_dropdown TO i_dropdown.&lt;/P&gt;&lt;P&gt;  CLEAR : wa_dropdown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;required value&amp;gt; -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; the values you want to display in the drop down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494472#M1257162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T09:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494473#M1257163</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;Kindly go through these links below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494473#M1257163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T09:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494474#M1257164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have followed the above steps. But I'm getting Drop down(same drop down table) to all the columns in my ALV output.&lt;/P&gt;&lt;P&gt;But my requirement is i want it only to a particular column. &lt;STRONG&gt;How to fix the Internal table that I have created as Dropdown to my single column.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Steps I followed,&lt;/P&gt;&lt;P&gt;1) In Field catalog, DRDN-HNDL = '1' &amp;amp; EDIT = 'X'&lt;/P&gt;&lt;P&gt;2) Defined a drop down table of type LVC_T_DROP and appended a few entries to it.&lt;/P&gt;&lt;P&gt;3) ref_grid -&amp;gt; SET_DROP_DOWN_TABLE &amp;amp; passed my drop down table in Exporting table.&lt;/P&gt;&lt;P&gt;4) then displayed the ALV,&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;ref_grid&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 10pt;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;set_table_for_first_display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;where to give the condition.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 07:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494474#M1257164</guid>
      <dc:creator>dharma_esampalli</dc:creator>
      <dc:date>2013-01-12T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Report input enabled drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494475#M1257165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at your filedcatalog internal table.&lt;/P&gt;&lt;P&gt; write a case statement. This case statemnet will hold the field values for which you want the drop down. And, then append the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;LOOP AT gt_fieldcat INTO ls_fcat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE ls_fcat-fieldname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'FIELD1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_fcat-drdn_hndl = '1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY gt_fieldcat FROM ls_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'FIELD2'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_fcat-drdn_hndl = '2'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY gt_fieldcat FROM ls_fcat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDCASE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Namrata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2013 10:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-input-enabled-drop-down-list/m-p/5494475#M1257165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-13T10:10:46Z</dc:date>
    </item>
  </channel>
</rss>

