<?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: CharTop missing after refresh in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524390#M4694580</link>
    <description>&lt;P&gt;Just an update regarding this issue, I've figured that every time I completed a process and going back to the previous screen adds another child from the object which does not have the CharTop count, the rest of the child has a CharTop count, what I did is I just to ignore the first child and proceed to the other child.&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 06:03:03 GMT</pubDate>
    <dc:creator>former_member793492</dc:creator>
    <dc:date>2022-05-04T06:03:03Z</dc:date>
    <item>
      <title>CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaq-p/12524384</link>
      <description>&lt;P&gt;hi Team,&lt;/P&gt;
  &lt;P&gt;Just want your expertise regarding the issue i'm facing, currently i am using CharTop as an identifier of a Hierarchy in SAP, after sometime and after a process some orders an i need to go back to the main screen, Chartop is now not available, how can this happen?&lt;/P&gt;
  &lt;P&gt; Set obj_Gridview = sapSession.FindById("wnd[0]/usr/")&lt;/P&gt;
  &lt;P&gt; Set gridKey = obj_Gridview.Children&lt;/P&gt;
  &lt;P&gt; For Each objkey In gridKey&lt;/P&gt;
  &lt;P&gt; 'Return errors after completing some task/ seems like element change after completing some task&lt;BR /&gt; If objkey.CharTop &amp;gt;= 3 Then&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaq-p/12524384</guid>
      <dc:creator>former_member793492</dc:creator>
      <dc:date>2022-04-20T13:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524385#M4694575</link>
      <description>&lt;P&gt;SAP GUI Scripting is reinstantiating all the GUI elements after each user function like pressing function  keys, button click, menu selection, scrolling, etc. (except high-level non-GUI elements like session, etc.) Repeat FindById to get the last valid instance of each GUI element you need.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 18:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524385#M4694575</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-20T18:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524386#M4694576</link>
      <description>&lt;P&gt;Hi Sandra, Thank you for your input, FindByID is actually within the loop, the issue i'm having is that when i reinitiated the FindByID after completing some task, CharTop is now missing even when it is in the same tcode/session as before, &lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 06:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524386#M4694576</guid>
      <dc:creator>former_member793492</dc:creator>
      <dc:date>2022-04-21T06:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524387#M4694577</link>
      <description>&lt;P&gt;hmmm which other loop? I see that obj_Gridview is set before For Each. If the screen is refreshed in that loop, obj_Gridview becomes obsolete.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524387#M4694577</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-21T07:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524388#M4694578</link>
      <description>&lt;P&gt;Apologies, Sandra. did not post all the script, basically the for loop is within another loop, i used dictionary scripting to check if CharTop which i used as an identifier has already been processed, if it's already available in the dictionary it will loop to the next heirarchy, please see below script, i removed the processing part of the script is that it will not be hard to the eyes &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Process_Again:&lt;BR /&gt;    bl_bar = False&lt;BR /&gt;    &lt;BR /&gt;    collappsedRows.RemoveAll&lt;BR /&gt;    icpRow = 0&lt;BR /&gt;    &lt;BR /&gt;    Set obj_Gridview = sapSession.FindById("wnd[0]/usr/")&lt;BR /&gt;    Set gridKey = obj_Gridview.Children&lt;BR /&gt;    &lt;BR /&gt;    For Each objkey In gridKey&lt;BR /&gt;        'Debug.Print objkey.CharTop&lt;BR /&gt;        &lt;BR /&gt;        If objkey.CharTop &amp;gt;= 3 Then&lt;BR /&gt;            &lt;BR /&gt;            iRow = objkey.CharTop&lt;BR /&gt;            If dicallrows.Exists(iRow) Then&lt;BR /&gt;                GoTo NEXT_ObjKey&lt;BR /&gt;            Else&lt;BR /&gt;                dicallrows.Add iRow, 1&lt;BR /&gt;            End If&lt;BR /&gt;         &lt;BR /&gt;            sapSession.FindById("wnd[0]/usr/lbl[5," &amp;amp; iRow &amp;amp; "]").SetFocus&lt;BR /&gt;            sapSession.FindById("wnd[0]/usr/lbl[5," &amp;amp; iRow &amp;amp; "]").caretPosition = 0&lt;BR /&gt;            sapSession.FindById("wnd[0]").SendVKey 2&lt;BR /&gt;            
'Processing code enclosed in this comment

if process = complete then

goto process_again

end if
&lt;BR /&gt;'End of processing code

            &lt;BR /&gt;            For l_cntrCol = 3 To l_cntrWatch&lt;BR /&gt;                While sapSession.FindById("wnd[0]/usr/lbl[5," &amp;amp; l_cntrCol &amp;amp; "]").DisplayedText = 5&lt;BR /&gt;                    sapSession.FindById("wnd[0]/usr/lbl[5," &amp;amp; l_cntrCol &amp;amp; "]").SetFocus&lt;BR /&gt;                    sapSession.FindById("wnd[0]/usr/lbl[5," &amp;amp; l_cntrCol &amp;amp; "]").caretPosition = 0&lt;BR /&gt;                    sapSession.FindById("wnd[0]").SendVKey 2&lt;BR /&gt;                Wend&lt;BR /&gt;            Next&lt;BR /&gt;          &lt;BR /&gt;            GoTo Process_Again&lt;BR /&gt;            &lt;BR /&gt;        End If&lt;BR /&gt;NEXT_ObjKey:&lt;BR /&gt;    Next&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524388#M4694578</guid>
      <dc:creator>former_member793492</dc:creator>
      <dc:date>2022-04-21T07:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524389#M4694579</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2045456-image.png" /&gt;&lt;/P&gt;&lt;P&gt;this is before processing some data, charTop is available, but after processing, charTop is not available anymore even after reinstating the FindByID&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524389#M4694579</guid>
      <dc:creator>former_member793492</dc:creator>
      <dc:date>2022-04-21T07:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: CharTop missing after refresh</title>
      <link>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524390#M4694580</link>
      <description>&lt;P&gt;Just an update regarding this issue, I've figured that every time I completed a process and going back to the previous screen adds another child from the object which does not have the CharTop count, the rest of the child has a CharTop count, what I did is I just to ignore the first child and proceed to the other child.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/chartop-missing-after-refresh/qaa-p/12524390#M4694580</guid>
      <dc:creator>former_member793492</dc:creator>
      <dc:date>2022-05-04T06:03:03Z</dc:date>
    </item>
  </channel>
</rss>

