<?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: Capturing Edited Fields in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222265#M768445</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;Thanks for the reply. Where is the part wherin only the selected row without using a checkbox or box in the is considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 03:40:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T03:40:06Z</dc:date>
    <item>
      <title>Capturing Edited Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222263#M768443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this requirement wherein a certain field in the ALV must be edited and captured. I am using a FM for the ALV (not the OOP). I also dont have a checkbox. The idea is whatever row the user choses to edit, only that row must be capture. For example I have 10 rows of data and only the second row was edited by the user. That row must be the only one considered for some other process (e.g. SAVING).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 01:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222263#M768443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T01:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Edited Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222264#M768444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this No need of check box. Do below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.First Declare a field like flag in your final internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Ex: flag &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA  : BEGIN OF ty_zaw_pol_plan.&lt;/P&gt;&lt;P&gt; DATA  :  flag TYPE c.&lt;/P&gt;&lt;P&gt;              INCLUDE STRUCTURE zaw_pol_plan.&lt;/P&gt;&lt;P&gt; DATA : END OF ty_zaw_pol_plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add flag to your layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Ex: gs_layout-box_fieldname = 'FLAG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Any how we are passing our layout to below FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program       = ws_repid&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set = 'GUI_STAT'&lt;/P&gt;&lt;P&gt;            i_callback_user_command  = 'STAT'&lt;/P&gt;&lt;P&gt;            is_layout                = gs_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat              = i_fieldcat[]&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab                 = i_zaw_pol_plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM gui_stat USING rt_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;***Here to create SAVE buttons or etc. you need  this PF **status .Double click on this and create button&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STANDARD' EXCLUDING rt_extab.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR text-005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**--Calling the subroutine when button clicked on output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM stat USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**When save pressed.Here capture your Function code of **your button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT i_zaw_pol_plan WHERE flag EQ c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Your logic here. to save the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 03:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222264#M768444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T03:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Edited Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222265#M768445</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;Thanks for the reply. Where is the part wherin only the selected row without using a checkbox or box in the is considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 03:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222265#M768445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T03:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Edited Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222266#M768446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  The value you have edited is automatically modifed in the internal table you pass to the ALV FM ,so you need to worry about the record that is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want to get the row which was edited you can check the value of the parameter RS_SELFIELD in the subroutine which handles the user command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;REPORT ZAR_ALV .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : catalog type slis_t_fieldcat_alv ,&lt;/P&gt;&lt;P&gt;       wa_catalog type slis_fieldcat_alv ,&lt;/P&gt;&lt;P&gt;       exclude type SLIS_T_EXTAB ,&lt;/P&gt;&lt;P&gt;       wa_exclude type slis_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_1 occurs 0 ,&lt;/P&gt;&lt;P&gt;         matnr type matnr ,&lt;/P&gt;&lt;P&gt;         werks type werks_d,&lt;/P&gt;&lt;P&gt;       end of it_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr werks&lt;/P&gt;&lt;P&gt; into table it_1&lt;/P&gt;&lt;P&gt; up to 10 rows&lt;/P&gt;&lt;P&gt; from marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_catalog-fieldname = 'MATNR' .&lt;/P&gt;&lt;P&gt;wa_catalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND WA_CATALOG TO CATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_catalog-fieldname = 'WERKS' .&lt;/P&gt;&lt;P&gt;APPEND WA_CATALOG TO CATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_EXCLUDE-FCODE = '&amp;amp;OL0'.&lt;/P&gt;&lt;P&gt;APPEND WA_EXCLUDE TO EXCLUDE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_CALLBACK_PROGRAM                = 'ZAR_ALV'&lt;/P&gt;&lt;P&gt;   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;   IT_FIELDCAT                       = catalog[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EXCLUDING                      = EXCLUDE[]&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                          = IT_1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                            = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 03:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222266#M768446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T03:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Edited Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222267#M768447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;              The question u r asked is very good.The answer for ur problem is, Actually u declared one internal table and that can be passed to GRID OR LIST function module.That means ur result is present in the internal table ok..U must declare another internal table with same structure and move the first internal table values into second internal table before u can pass internal table to GRID OR LIST function module.After u modify the values u can compare the values with second internal table record by record if sy-subrc &amp;lt;&amp;gt; 0. we can capture that record(we can pass that record to another internal table)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Award points if helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kiran Kumar.G&lt;/P&gt;&lt;P&gt;              &lt;EM&gt;Have a Nice Day..&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 04:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222267#M768447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T04:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing Edited Fields in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222268#M768448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi muralikrishna  , arun and kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. You guided me well and helped solve my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 06:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-edited-fields-in-alv/m-p/3222268#M768448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T06:04:53Z</dc:date>
    </item>
  </channel>
</rss>

