<?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: regarding editable alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378230#M811146</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;First of all It is not a good programming practice to update database table directly from the program. It will avoid all the validations &amp;amp; there may be unknown other tables that need to be updated when you update your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following statement i feel is wrong, because table VBAP and I_FINAL are not the same structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY VBAP FROM TABLE i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE VBAP set &amp;lt;vbap field&amp;gt; = i_final-field&lt;/P&gt;&lt;P&gt;                              &amp;lt;vbap field&amp;gt; = i_final-field&lt;/P&gt;&lt;P&gt;                                ...&lt;/P&gt;&lt;P&gt;                               where VBELN = i_final-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;Harikrishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 07:49:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-18T07:49:25Z</dc:date>
    <item>
      <title>regarding editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378228#M811144</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;          Frnds i am working in editable alv using function modules not object oriented abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m trying to edit a Field(MATNR ) in my output list and finally update it with changed values in the DB table.&lt;/P&gt;&lt;P&gt;But i m getting syntax error like&lt;/P&gt;&lt;P&gt;"the work area i_final is not alligned properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below i m providing my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZEDITABLE_ALV1&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZEDITABLE_ALV1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: vbak,vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis. "ALV Declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: BEGIN OF i_final occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbap-vbeln,&lt;/P&gt;&lt;P&gt;      posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;      matnr like vbap-matnr,&lt;/P&gt;&lt;P&gt;      erdat like vbap-erdat,&lt;/P&gt;&lt;P&gt;END OF i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : C_X(1) TYPE C VALUE 'X',&lt;/P&gt;&lt;P&gt;       C_FC_MODIFY(6) TYPE C VALUE 'MODIFY'.&lt;/P&gt;&lt;P&gt;*DATA: i_final TYPE STANDARD TABLE OF T_FINAL with header line.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_temp type standard table of T_FINAL with header line.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*wa_final like line of i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA:i_final LIKE vbap OCCURS 0.&lt;/P&gt;&lt;P&gt;*DATA:wa_final LIKE vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ALV data declarations&lt;/P&gt;&lt;P&gt;DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;gd_tab_group TYPE slis_t_sp_group_alv,&lt;/P&gt;&lt;P&gt;gd_layout TYPE slis_layout_alv,&lt;/P&gt;&lt;P&gt;gd_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;*Start-of-selection.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM data_retrieval.&lt;/P&gt;&lt;P&gt;PERFORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;PERFORM build_layout.&lt;/P&gt;&lt;P&gt;PERFORM display_alv_report.&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	Build Fieldcatalog for ALV Report&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;FORM build_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'sales order'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 0.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'ERDAT'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'date'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 1.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'material no.'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 2.&lt;/P&gt;&lt;P&gt;fieldcatalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-fieldname = 'POSNR'.&lt;/P&gt;&lt;P&gt;fieldcatalog-seltext_m = 'line item no.'.&lt;/P&gt;&lt;P&gt;fieldcatalog-col_pos = 3.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-FIELDNAME = 'REC_SEL'.&lt;/P&gt;&lt;P&gt;fieldcatalog-NO_OUT = C_X.&lt;/P&gt;&lt;P&gt;APPEND fieldcatalog TO fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR fieldcatalog.&lt;/P&gt;&lt;P&gt;ENDFORM. " BUILD_FIELDCATALOG&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	Build layout for ALV grid report&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;FORM build_layout.&lt;/P&gt;&lt;P&gt;gd_layout-no_input = 'X'.&lt;/P&gt;&lt;P&gt;gd_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;gd_layout-totals_text = 'Totals'(201).&lt;/P&gt;&lt;P&gt;	gd_layout-totals_only = 'X'.&lt;/P&gt;&lt;P&gt;	gd_layout-f2code = 'DISP'. "Sets fcode for when double&lt;/P&gt;&lt;P&gt;	"click(press f2)&lt;/P&gt;&lt;P&gt;	gd_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;	gd_layout-group_change_edit = 'X'.&lt;/P&gt;&lt;P&gt;	gd_layout-header_text = 'helllllo'.&lt;/P&gt;&lt;P&gt;ENDFORM. " BUILD_LAYOUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	Display report using ALV grid&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;FORM display_alv_report.&lt;/P&gt;&lt;P&gt;gd_repid = sy-repid.&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 = gd_repid&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;i_callback_pf_status_set = 'GUI_STAT'&lt;/P&gt;&lt;P&gt;*i_grid_title = outtext&lt;/P&gt;&lt;P&gt;is_layout = gd_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = fieldcatalog[]&lt;/P&gt;&lt;P&gt;*it_special_groups = gd_tabgroup&lt;/P&gt;&lt;P&gt;*it_events = it_events&lt;/P&gt;&lt;P&gt;i_save = 'X'&lt;/P&gt;&lt;P&gt;*is_variant = z_template&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = i_final&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " DISPLAY_ALV_REPORT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;**&amp;amp; Form DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	Retrieve data form EKPO table and populate itab it_ekko&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;FORM data_retrieval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT a&lt;SUB&gt;vbeln a&lt;/SUB&gt;erdat b&lt;SUB&gt;matnr b&lt;/SUB&gt;posnr FROM vbak AS a&lt;/P&gt;&lt;P&gt;*INNER JOIN vbap AS b ON a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;*INTO TABLE i_final WHERE a~vbeln = b~vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select VBELN ERDAT MATNR POSNR up to 10 rows from vbap into corresponding fields of  table i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " DATA_RETRIEVAL&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	FORM GUI_STAT *&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	........ *&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	--&amp;gt; RT_EXTAB *&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;FORM gui_stat USING rt_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MODIFY' EXCLUDING rt_extab.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	FORM USER_COMMAND *&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	........ *&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;#149;	--&amp;gt; U_COMM *&lt;/P&gt;&lt;P&gt;*&amp;#149;	--&amp;gt; RS_SELFIELD *&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;FORM user_command USING u_comm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;DATA:selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*RS_SELFIELD-REFRESH = C_X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE u_comm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IF U_COMM = C_FC_MODIFY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'UPDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_final. " into wa_final."into wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*READ TABLE I_TEMP WITH KEY VBELN = I_FINAL-VBELN.&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;i_final-matnr = vbap-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*MODIFY I_final INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;MODIFY VBAP FROM TABLE i_final.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;*MESSAGE I000 WITH SY-DBCNT&lt;/P&gt;&lt;P&gt;*' Record(s) has been Updated'(020).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*append i_final.&lt;/P&gt;&lt;P&gt;*it_temp = i_final.&lt;/P&gt;&lt;P&gt;*append it_temp.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;**UPDATE sflight FROM TABLE sflight_tab.&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;*update vbap from table i_final.&lt;/P&gt;&lt;P&gt;*IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*MESSAGE s000(0) WITH 'records updated successfully'.&lt;/P&gt;&lt;P&gt;*ENDIF.&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;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frnds plz help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 07:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378228#M811144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T07:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: regarding editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378229#M811145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do Mark the Line....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 07:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378229#M811145</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-18T07:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: regarding editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378230#M811146</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;First of all It is not a good programming practice to update database table directly from the program. It will avoid all the validations &amp;amp; there may be unknown other tables that need to be updated when you update your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following statement i feel is wrong, because table VBAP and I_FINAL are not the same structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY VBAP FROM TABLE i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE VBAP set &amp;lt;vbap field&amp;gt; = i_final-field&lt;/P&gt;&lt;P&gt;                              &amp;lt;vbap field&amp;gt; = i_final-field&lt;/P&gt;&lt;P&gt;                                ...&lt;/P&gt;&lt;P&gt;                               where VBELN = i_final-field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;Harikrishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 07:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378230#M811146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T07:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: regarding editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378231#M811147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshu,&lt;/P&gt;&lt;P&gt;                  That syntax error got solved but my problem is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to edit the output field (matnr) but my problem is its not modifying and updating the table vbap .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me regarding this.&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;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 07:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378231#M811147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T07:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: regarding editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378232#M811148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this...ur code was not clear..i have done something u can understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First check that u r not trying to update the primary key field.&lt;/P&gt;&lt;P&gt;first before updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before updating select the record u r going to update from the main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from VBAP where &amp;lt;pass the key values&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move the rest of the values to the table header except the key values.&lt;/P&gt;&lt;P&gt;vbap-&amp;lt;field1&amp;gt; = value1.&lt;/P&gt;&lt;P&gt;vbap-&amp;lt;field2&amp;gt; = value2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after moving the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:st_vbap type vbap.&lt;/P&gt;&lt;P&gt;WHEN 'UPDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_final. " into wa_final."into wa_final.&lt;/P&gt;&lt;P&gt;select single * from vbap where vbeln = I_FINAL-VBELN.&lt;/P&gt;&lt;P&gt;move-corresponding i_final to vbap.&lt;/P&gt;&lt;P&gt;update vbap.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;wk_cnt = wk_cnt + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at last.&lt;/P&gt;&lt;P&gt;*MESSAGE I000 WITH SY-DBCNT&lt;/P&gt;&lt;P&gt;*' Record(s) has been Updated'(020).&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 08:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378232#M811148</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-18T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: regarding editable alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378233#M811149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi keshu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I like to say, it never recommand to change the table from any Z program. Although if your recommand are like that onyl then go ahead but try some bapi or BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the Table updation not happening,better you check your command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before doing the such things please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock the table,So that no one can else change the same table entry at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it may be use full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 08:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-editable-alv/m-p/3378233#M811149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T08:25:59Z</dc:date>
    </item>
  </channel>
</rss>

