<?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>Question Re: BSP lost data in the events in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaa-p/14052993#M4907769</link>
    <description>&lt;P&gt;After the user click on the pushbotton (GeraProj)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clayton_barbosa_0-1742573438865.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/241057iD824806E771C2306/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clayton_barbosa_0-1742573438865.png" alt="clayton_barbosa_0-1742573438865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 16:10:46 GMT</pubDate>
    <dc:creator>clayton_barbosa</dc:creator>
    <dc:date>2025-03-21T16:10:46Z</dc:date>
    <item>
      <title>BSP lost data in the events</title>
      <link>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaq-p/14052931</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have 1 internal table on the page of the bsp, and a pushbotton (GeraProj) to execute a code with some commands.&lt;/P&gt;&lt;P&gt;The internal table is filled with a select on the OnCreat and it is shown allowing to change some cells of the grid.&lt;/P&gt;&lt;P&gt;But now the problem was that the user needs to click on the pushbotton (GeraProj) to execute the command by the 'OnInputProcessing' event, the internal table is empty. All the data that he changed is lost.&lt;/P&gt;&lt;P&gt;Can someone suggest me how to trigger the events to avoid this problem?&lt;/P&gt;&lt;P&gt;OnCreate:&lt;BR /&gt;SELECT * FROM ZPST00001_PERTMP&lt;/P&gt;&lt;P&gt;THE SCREEN:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clayton_barbosa_0-1742570305932.png" style="width: 564px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/241028i25591A1FAD656BE2/image-dimensions/564x155?v=v2" width="564" height="155" role="button" title="clayton_barbosa_0-1742570305932.png" alt="clayton_barbosa_0-1742570305932.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;INTO TABLE gt_zpst00001_pertmp&lt;BR /&gt;WHERE project_definition = gs_tmp-project_definition&lt;BR /&gt;AND uname = gs_tmp-uname.&lt;/P&gt;&lt;P&gt;OnInputProcessing:&lt;BR /&gt;...&lt;BR /&gt;CASE event_id.&lt;BR /&gt;WHEN 'proj'.&lt;BR /&gt;gv_perproj = perproj.&lt;BR /&gt;SELECT SINGLE * FROM TCJ41 TO &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(LS_TCJ41)&lt;BR /&gt;WHERE PROFIDPROJ = &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/168285"&gt;@GV&lt;/a&gt;_perproj.&lt;BR /&gt;IF sy-subrc = 0.&lt;BR /&gt;MOVE-MATCHING LS_TCJ41 TO gs_zpst00001_proj.&lt;BR /&gt;gs_zpst00001_proj-zpspid = project.&lt;BR /&gt;gs_zpst00001_proj-pspid = project.&lt;BR /&gt;gs_zpst00001_proj-profl = gv_perproj.&lt;BR /&gt;gs_zpst00001_proj-pwhie = ls_tcj41-waers.&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;Attribute:&lt;BR /&gt;gt_zpst00001_pertmp TYPE ZPSTT00001_PERTMP&lt;/P&gt;&lt;P&gt;Layout:&lt;BR /&gt;&amp;lt;input type="submit" value="GeraProj" name="oninputprocessing(proj)"&lt;BR /&gt;style="border: 1px solid #000000; width:150px; height:30px; font-size:15px;"&lt;BR /&gt;onclick="Save();"/&amp;gt;&lt;BR /&gt;.....&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;data : ref iterator type for ZCL_ITERATOR_PST.&lt;BR /&gt;create iterator object.&lt;BR /&gt;%&amp;gt;&lt;BR /&gt;&amp;lt;htmlb:gridLayout columnSize = "10"&lt;BR /&gt;rowSize = "2"&lt;BR /&gt;cellSpacing = "5"&lt;BR /&gt;width = "70%"&lt;BR /&gt;style = "TRANSPARENT" /&amp;gt;&lt;BR /&gt;&amp;lt;%-- &amp;lt;htmlb:document disableBackspaceNavigation = "TRUE" /&amp;gt;--%&amp;gt;&lt;BR /&gt;&amp;lt;htmlb:tableView id = "tv1"&lt;BR /&gt;visibleRowCount = "10"&lt;BR /&gt;selectionMode = "MULTILINEEDIT"&lt;BR /&gt;allRowsEditable = "true"&lt;BR /&gt;design = "ALTERNATING"&lt;BR /&gt;onRowSelection = "MyEventRowSelection"&lt;BR /&gt;table = "&amp;lt;%=gt_zpst00001_pertmp%&amp;gt;"&lt;BR /&gt;width = "100%"&lt;BR /&gt;iterator = "&amp;lt;%=iterator%&amp;gt;"&lt;BR /&gt;onHeaderClick = "onHeaderClick" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/htmlb:form&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 15:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaq-p/14052931</guid>
      <dc:creator>clayton_barbosa</dc:creator>
      <dc:date>2025-03-21T15:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: BSP lost data in the events</title>
      <link>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaa-p/14052993#M4907769</link>
      <description>&lt;P&gt;After the user click on the pushbotton (GeraProj)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clayton_barbosa_0-1742573438865.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/241057iD824806E771C2306/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clayton_barbosa_0-1742573438865.png" alt="clayton_barbosa_0-1742573438865.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 16:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaa-p/14052993#M4907769</guid>
      <dc:creator>clayton_barbosa</dc:creator>
      <dc:date>2025-03-21T16:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: BSP lost data in the events</title>
      <link>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaa-p/14059337#M4908505</link>
      <description>&lt;P&gt;Hi! I solved the problem.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creating a Subclass of CL_HTMLB_TEXTVIEW&lt;/STRONG&gt;&lt;BR /&gt;Since CL_HTMLB_TEXTVIEW is an SAP class, you cannot create a new one with the same name.&lt;BR /&gt;What you can do is create a subclass to extend functionality.&lt;/P&gt;&lt;P&gt;DATA: lo_textview TYPE REF TO zcl_htmlb_textview,&lt;BR /&gt;lt_formfields TYPE tihttpnvp.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Create the ZCL_HTMLB_TEXTVIEW class inheriting from CL_HTMLB_TEXTVIEW.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Add custom methods if necessary.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Use FACTORY to instantiate TEXTVIEW.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: Creating ZCL_HTMLB_TEXTVIEW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CLASS zcl_htmlb_textview DEFINITION INHERITING FROM cl_htmlb_textview.&lt;BR /&gt;PUBLIC SECTION.&lt;BR /&gt;METHODS get_formfields RETURNING VALUE(rt_fields) TYPE tihttpnvp.&lt;BR /&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;CLASS zcl_htmlb_textview IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD get_formfields.&lt;BR /&gt;rt_fields = me-&amp;gt;mc_formfields. " Permite acessar os campos do formulário&lt;BR /&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now ZCL_HTMLB TEXTVIEW can be used to access MC_FORMFIELDS and customize TEXTVIEW.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the CLASS ZCL_ITERATOR_PST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.&lt;/STRONG&gt;&lt;BR /&gt;DATA: lo_textview TYPE REF TO zcl_htmlb_textview2,&lt;BR /&gt;lt_formfields TYPE tihttpnvp.&lt;/P&gt;&lt;P&gt;CASE p_column_key.&lt;BR /&gt;WHEN 'XXXXX'.&lt;BR /&gt;" Criar objeto do TextView customizado&lt;BR /&gt;CREATE OBJECT lo_textview.&lt;BR /&gt;" Obter campos do formulário&lt;BR /&gt;lt_formfields = lo_textview-&amp;gt;get_formfields( ).&lt;BR /&gt;READ TABLE lt_formfields INTO DATA(ls_formfields)&lt;BR /&gt;WITH KEY name = p_cell_id.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 19:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/bsp-lost-data-in-the-events/qaa-p/14059337#M4908505</guid>
      <dc:creator>clayton_barbosa</dc:creator>
      <dc:date>2025-03-27T19:14:53Z</dc:date>
    </item>
  </channel>
</rss>

