<?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: GET_TEXT_AS_R3TABLE problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755374#M1115291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Rossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In TRIP transaction,&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt; If u click on change the travel expense report, in the screen 0002 the FCODE = 'EXPENSAEN'. There u can get person number and trip number, so I thought that what ever the travel comments we entered previously  we can fetch here and we can display by using the CALL METHOD TEXT_EDITOR-&amp;gt;SET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;So I implemented accordingly. It is working fine for to display the comments.&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;While saving the data screen will change to 3000, so there I implemented code to save the comments. In debugging I found that, while changing the travel expense report,  &lt;/P&gt;&lt;P&gt;Also it is going to screen number 3000, but here we FCODE are space. &lt;/P&gt;&lt;P&gt;But by using sy-subrc, I am getting what I require, in the screen 3000.&lt;/P&gt;&lt;P&gt;So, thatu2019s why I replied that PBO and PAI problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any how my problem is solved, thank you once again for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 06:54:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-11T06:54:35Z</dc:date>
    <item>
      <title>GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755369#M1115286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using GET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;and SET_TEXT_AS_R3TABLE  to read the text and retrieve the text in TRIP transaction.&lt;/P&gt;&lt;P&gt;Requirement is one more comment field to enter the text in travel expense . based on that i added one more comments text box using CL_GUI_TEXTEDIT. to save the data i am using one custom table. &lt;/P&gt;&lt;P&gt;Now assume that i have 2 travel requests with expenses. i want to change the text which is entered by me in the custom comment field. First time it is showing the text which is entered by me previously. Now i changed that text and try to save that text GET_TEXT_AS_R3TABLE, in this case it is not retrieving the text from the custom field. Why i donu2019t know. but when i am creating newly it is ok&lt;/P&gt;&lt;P&gt;.but second time why it is not retrieving the data i am not under stand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now second problem is now i am opening second travel request , but it is showing the first travel request comments. &lt;/P&gt;&lt;P&gt;If i closes the entire transaction, if i open again it is showing the releated text only. Without closing the transaction if i am opening the travel request at that time it is showing the previous text. &lt;/P&gt;&lt;P&gt;Please help me on this.  &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Nov 2008 13:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755369#M1115286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-09T13:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755370#M1115287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already saw that kind of problem, I am pretty sure that it's about either creation or deletion of the control:&lt;/P&gt;&lt;P&gt;either, in the pbo, make sure you create it only once: if control is not bound. create object control...&lt;/P&gt;&lt;P&gt;or, in the pai, when you exit the screen, free the control: call method control-&amp;gt;free...&lt;/P&gt;&lt;P&gt;see [sap help|http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/d080c09fc111d2bd68080009b4534c/frameset.htm] for more information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Nov 2008 19:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755370#M1115287</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2008-11-09T19:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755371#M1115288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever u said  FREE editor_container. it is already there in my coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution , i did one mistake there. based on event i wrote PBO  in one include. and PAI in anthore include. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after modifying that (PBO &amp;amp; PAI should be in same include), it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once agin for u r response Rossi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 02:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755371#M1115288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T02:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755372#M1115289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;please try to put the SET text statments in  PBO event based modules&lt;/P&gt;&lt;P&gt;and GET text statements in PAI event based modules.I haven't got any problem as u said&lt;/P&gt;&lt;P&gt;when i used the code below&lt;/P&gt;&lt;P&gt;below is a sample code which worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    reference to wrapper class of control based on OO Framework&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      w_editor type ref to cl_gui_textedit,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    reference to custom container: necessary to bind TextEdit Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      w_container type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO Module&lt;/P&gt;&lt;P&gt;1)  create object: w_container exporting container_name = 'CONTROL',&lt;/P&gt;&lt;P&gt;                   w_editor    exporting parent = w_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)     call method w_editor-&amp;gt;set_text_as_r3table&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        table = t_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI Module&lt;/P&gt;&lt;P&gt;case sy-ucomm&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;        call method w_editor-&amp;gt;get_text_as_stream&lt;/P&gt;&lt;P&gt;          importing&lt;/P&gt;&lt;P&gt;            text = t_table.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;            text = t_table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 09:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755372#M1115289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T09:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755373#M1115290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you say is very very strange, it should not be a problem to have PBO and PAI in different includes, these last are only for organizational or architecture purpose.&lt;/P&gt;&lt;P&gt;Moreover, call method control-&amp;gt;free is not the same as FREE control (there is a difference with flush and things like that if I remember well).&lt;/P&gt;&lt;P&gt;Anyway, if it's solved, please mark the thread as solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 17:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755373#M1115290</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2008-11-10T17:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755374#M1115291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Rossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In TRIP transaction,&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt; If u click on change the travel expense report, in the screen 0002 the FCODE = 'EXPENSAEN'. There u can get person number and trip number, so I thought that what ever the travel comments we entered previously  we can fetch here and we can display by using the CALL METHOD TEXT_EDITOR-&amp;gt;SET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;So I implemented accordingly. It is working fine for to display the comments.&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;While saving the data screen will change to 3000, so there I implemented code to save the comments. In debugging I found that, while changing the travel expense report,  &lt;/P&gt;&lt;P&gt;Also it is going to screen number 3000, but here we FCODE are space. &lt;/P&gt;&lt;P&gt;But by using sy-subrc, I am getting what I require, in the screen 3000.&lt;/P&gt;&lt;P&gt;So, thatu2019s why I replied that PBO and PAI problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any how my problem is solved, thank you once again for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 06:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/4755374#M1115291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T06:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: GET_TEXT_AS_R3TABLE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/13684274#M2027820</link>
      <description>&lt;P&gt;Hi, please check all things below:&lt;/P&gt;&lt;UL class="lia-list-style-type-disc"&gt;&lt;LI&gt;You need to use method&amp;nbsp;&lt;SPAN&gt;cl_gui_cfw=&amp;gt;flush after calling method&amp;nbsp;get_text_as_r3_table&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In PBO, before creating object EDITOR, you need to check if it is INITIAL or not.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 27 Apr 2024 10:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-text-as-r3table-problem/m-p/13684274#M2027820</guid>
      <dc:creator>NguyenTuan04</dc:creator>
      <dc:date>2024-04-27T10:06:49Z</dc:date>
    </item>
  </channel>
</rss>

