<?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: Editable Tree ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676825#M1099878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP does not support editable ALV trees. What you can do is that if user double click on the line, the program displays pop up window where user can change values and then transfer these changes back to ALV tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 09:36:31 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2008-10-16T09:36:31Z</dc:date>
    <item>
      <title>Editable Tree ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676824#M1099877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;How can I edit ALV tree .please give me inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct Inputs are rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rasheed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 08:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676824#M1099877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T08:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Editable Tree ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676825#M1099878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP does not support editable ALV trees. What you can do is that if user double click on the line, the program displays pop up window where user can change values and then transfer these changes back to ALV tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 09:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676825#M1099878</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-10-16T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Editable Tree ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676826#M1099879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can implement it as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM frm_assign_budget.&lt;/P&gt;&lt;P&gt;  DATA: lt_selected_nodes TYPE lvc_t_nkey,&lt;/P&gt;&lt;P&gt;        ls_selected_node LIKE LINE OF lt_selected_nodes.&lt;/P&gt;&lt;P&gt;  DATA: ls_tree LIKE LINE OF gt_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*先取得选中的预算行&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;get_selected_nodes&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_selected_nodes = lt_selected_nodes&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_system_error = 1&lt;/P&gt;&lt;P&gt;      dp_error          = 2&lt;/P&gt;&lt;P&gt;      failed            = 3&lt;/P&gt;&lt;P&gt;      OTHERS            = 4.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;  READ TABLE lt_selected_nodes INTO ls_selected_node INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE 'You have not select any row'(011) TYPE 'I'.&lt;/P&gt;&lt;P&gt;    RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;get_outtab_line&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_node_key     = ls_selected_node&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_outtab_line  = ls_tree&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      node_not_found = 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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*检测选择的数据是否可进行预算分配&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  IF ls_tree IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE 'You have not select any row'(011) TYPE 'I'.&lt;/P&gt;&lt;P&gt;    RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ls_tree-asset_class EQ ''.&lt;/P&gt;&lt;P&gt;    MESSAGE 'You have not select any row'(011) TYPE 'I'.&lt;/P&gt;&lt;P&gt;    RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ls_tree-aufnr NE ''.&lt;/P&gt;&lt;P&gt;    MESSAGE 'The budget had been assigned cannot be edited'(012) TYPE 'I'.&lt;/P&gt;&lt;P&gt;    RETURN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*弹出输入框让用户输入预算&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;======================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  DATA: lt_sval TYPE STANDARD TABLE OF sval INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;        ls_sval TYPE sval,&lt;/P&gt;&lt;P&gt;        l_returncode TYPE c,&lt;/P&gt;&lt;P&gt;        l_budget TYPE z01fis4111-budget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'Z01FIS4111' TO ls_sval-tabname.&lt;/P&gt;&lt;P&gt;  MOVE 'WAERS' TO ls_sval-fieldname.&lt;/P&gt;&lt;P&gt;  MOVE g_waers TO ls_sval-value.&lt;/P&gt;&lt;P&gt;  MOVE '02' TO ls_sval-field_attr.&lt;/P&gt;&lt;P&gt;  APPEND ls_sval TO lt_sval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ls_sval.&lt;/P&gt;&lt;P&gt;  MOVE 'Z01FIS4111' TO ls_sval-tabname.&lt;/P&gt;&lt;P&gt;  MOVE 'BUDGET' TO ls_sval-fieldname.&lt;/P&gt;&lt;P&gt;  APPEND ls_sval TO lt_sval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'POPUP_GET_VALUES'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      popup_title     = 'Asset Budget Assignment'(008)&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      returncode      = l_returncode&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      fields          = lt_sval&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error_in_fields = 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;&lt;/P&gt;&lt;P&gt;  CHECK l_returncode EQ ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE lt_sval INTO ls_sval INDEX 2.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  MOVE ls_sval-value TO l_budget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK l_budget GT 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;change_item&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_node_key     = ls_selected_node&lt;/P&gt;&lt;P&gt;      i_fieldname    = 'BUDGET'&lt;/P&gt;&lt;P&gt;      i_data         = l_budget&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      node_not_found = 1&lt;/P&gt;&lt;P&gt;      OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;update_calculations.&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;frontend_update .&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 07:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-tree-alv/m-p/4676826#M1099879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T07:14:03Z</dc:date>
    </item>
  </channel>
</rss>

