Sitemap

Amicuk Programming Answers

How to refresh the textedit object in module pool

2015-10-11   Views:9

Advertisement

Hi All, I would appreciate if anybody can solve my problem. Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up. Please tell me how

Hi All,
I would appreciate if anybody can solve my problem.
Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up.
Please tell me how to refresh the data in TEXTEDIT.

The replay answer
Advertisement
actualy it is enough to do the following, assuming you have a container to put the textedit into it:
  DATA:  l_parent_container TYPE REF TO cl_gui_custom_container,
         l_obj_editor TYPE REF TO cl_gui_textedit, "make this a global variable
         l_text_table TYPE re_t_textline,
         l_itftext TYPE STANDARD TABLE OF tline,
         l_thead TYPE thead.
l_parent_container = ... "your container
move .... to l_thead...    "your text header to read or reread
read text from SO10
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                      = l_thead-tdid "Text-ID
      language                = l_thead-tdspras "im_request-language?
      name                    = l_thead-tdname "TDIC Text-Name
      object                  = l_thead-tdobject "Texte: Anwendungsobjekt
    TABLES
      lines                   = l_itftext
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
convert itf text to stream text (SAPSCRIPT_DEMO_NOTE_EDITOR)
  CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
    TABLES
      itf_text    = l_itftext
      text_stream = l_text_table.
  IF l_obj_editor IS INITIAL.
    CREATE OBJECT l_obj_editor
        EXPORTING parent = l_parent_container. " Abstract Container for GUI Controls
  ENDIF.
discard any previous changes
  l_obj_editor->set_textmodified_status( cl_gui_textedit=>false ).
übertragen text in editor
  CALL METHOD l_obj_editor->set_text_as_stream
    EXPORTING
      text            = l_text_table
    EXCEPTIONS
      error_dp        = 1
      error_dp_create = 2.

Go to See the other 7 answers

How to refresh the textedit object in module pool

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I would appreciate if anybody can solve my problem. Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up. Please tell me how[More]

Doc plz on abap object and Module pool prog

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, Please any send the details and use full documents on ABAP objects and Module Programming. Its very orgent for me THanks and Regards vamsin [email protected]Hi ALL, Thank you for your replies, I guess I dint convey my question properly, I hav[More]

Custom Module Pool...

Category:DefaultRelease time:2015-10-11Views:130

Hello SDN ABAP Community, I researched this question on the web and in SDN before posting this because I would like an up-to-date understanding of best way to do this. I have a need to write a custom module pool.  It has been a while since I have bee[More]

Module pool Program Doubt

Category:DefaultRelease time:2015-10-11Views:130

Hi Xperts, I am Working an object on module pool.I have a small doubt regarding that. tables:lfa1. data:begin of itab occurs 0, lifnr like lfa1-lifnr, land1 like lfa1-land1, name1 like lfa1-name1, end of itab. case sy-ucomm. when 'disp'. select lifnr[More]

Module Pool Progaramming

Category:DefaultRelease time:-0001-11-30Views:130

hi, i am new to module pool programming... can any one send me the required material which helps me in developing an object on module pool. Thank you, chaitanyaHi try these too. http://www.allsaplinks.com/dialog_programming.html http://sap.mis.cmich.[More]

Module Pool Programming using Abap Objects

Category:DefaultRelease time:2015-10-11Views:130

Hi gurus., I need to create a module pool program with tabstrips and tablecontrols using Abap objects...plz guide me how i can achieve this... i am very much confused.. i dont know how and where to start .. plz send me documents and sample codes rela[More]

Module pool using ABAP Objects

Category:DefaultRelease time:-0001-11-30Views:130

Hi All ,      I have a requirement for creating a transaction/module pool prog using OO ABAP  .     Can you please send some sample documents to guide completely about the creation and execution of the transaction . Rewards are assured !! Regards, Ra[More]

Module Pool - Refresh Screen Fields Progmatically

Category:DefaultRelease time:-0001-11-30Views:130

Hello All! I have a slightly frustrating problem. I have built a Module Pool application to display shipments and their underlying deliveries (various information from each). I have structured the application as follows An object to store the Data. T[More]

After REFRESH the cached object is not consistent with the database table

Category:DefaultRelease time:2015-10-11Views:130

After REFRESH, the cached object is not consistent with the database table. Why? I created a JDBC connection with the Oracle database (HR schema) using JDeveloper(10.1.3) and then I created an offline database (HR schema) in JDeveloper from the exist[More]

Creating module pool programming in abap objects

Category:DefaultRelease time:2015-10-11Views:130

Hello... I just wanted to know how u create a give modulepool programming in classes and objects.Could anyone tell me the procedure how to do so.And i knew that module pool programming has become obsolete and now everyone are using object oriented co[More]

Screen Programming(Module Pool ) using Abap Objects

Category:DefaultRelease time:2015-10-11Views:130

Hi gurus., I need to create a module pool program with tabstrips and tablecontrols using Abap objects...plz guide me how i can achieve this... i am very much confused.. i dont know how and where to start .. plz send me documents and sample codes rela[More]

Hot
Hi: I've downloaded and installed the Oracle paravirtualized VM template for EL5U3/DB 11.1.07/Agent 1.0.2.05 to a 2.1.5 VM Server. I have used the xm create -c vm.cfg command to start up the domU. After a short period of time, an xm list shows the st [More]
i have lost my iphone but my pictures where streamed to i cloud, does anybody no how i can view them on my pc? the file name given in FAQ's isnt on my pc? thanksTo enable Photo Stream on a PC, you need to download and install the iCloud control panel [More]
There is white line on my screen  when i turn of my mac......What is the problem and what should i do ?Assuming this is occurring to your macbook and only occurs when shutting down, the row of the pixels is probably still being driven by the charges [More]
Howdy, Does Anyone know of an ALV report in SAP that has Hotspot logic? I just need to implement this logic into my report and I thought I'd copy what was there. Also, anyone know of a report where buttons are available in the cells of an ALV grid? T [More]
how much money i will get, if i tell you a new bug in Firefox 8, i found a new bug in Firefox 8, i tested this bug on chrome but their is no issue with this .About the only way you could get money is by reporting a serious or critical security vulner [More]
ahoj all together! i have a small pl/sql function, which made big troubles yesterday, when i compiled it with debug-info. toad didn't finish compiling and when i canceled it, i got the following two error-messages in the oracle-trace file again and a [More]
plz tell me the which purpose we use ABAP-HR, which purpose we use ADOBE INTERACTIVE FORMS,                                  ADOBE PRINT FORMS. IF POSSIBLE PLZ SEND ME THE SAMPLE MATERIAL AND FAQ Edited by: Alvaro Tejada Galindo on Apr 22, 2008 1:41 [More]
Hi How to specify the database when the program connect to the DB When the database is local, we don't need to specify the DB example EXEC SQL CONNECT :uid IDENTIFIED BY :pwd; Thanks Rouya nullThere are a number of ways to do what you are asking for [More]
How do you burn an iMovie project of a couple of hours or more top end onto a DVD ?That's what iDVD is for, presuming you're referring to a video DVD, one that can be played in any normal DVD player. Roxio's Toast is another option, if you need it's [More]
This is very annoying! My Canon HF100 is an NTSC model, so I imported into iMovie as NTSC, and my iDVD project was NTSC, all of which was designed to prevent the judder caused by dropping frames... But it still happened! Really frustrating, as everyt [More]