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]

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]

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 created a PDF with Smartform in my Webdynpro-Application. When I click the save button there is a default filename f.pdf . How can I change the filename? Regards Marcus SchugHi Experts, any update on this? I am facing the same problem with ESS [More]
Hello Experts, I have scenario where one customer is created as multiple customers in SAP. DEF Limited has presence in three states. Hence three customers are created in SAP with customer number: 1000, 1002, 1005 I did billing of Rs.500 for each cust [More]
Hi, We are trying to burst an XML Publisher report via email in Oracle Applications R12(12.0.6).The XML Publisher Bursting Program is erroring out with yhe following error, XML/BI Publisher Version : 5.6.3 --Exception For input string: "Y" java. [More]
how can my daughter and i have our own itunes accounts on one computer because it automatically logs in with mine?Hi theirmimi, Go to Manage your Apple ID (on a computer) and sign in with your Apple ID. Then you can edit the email information on your [More]
Dear All, While creating production order, error message is executing "Dispatching sequence: Structure KBED is not currently supported" . Message no - 831 , Application area - CY. Plz clear me why this message is executing. Rgds, RajeshDear Prad [More]
Dear All , I am getting the following error while running payment medium, No data records found for these selection criteria Message no. FZ208 Diagnosis No data could be accessed for this selection. Possible causes are: No data exists for the activat [More]
Hi, I have just been given an iPod Touch (32 gb) and am trying to get it to work. I started by down loading a new copy of iTunes (there was an old version on my computer) and installing it. I plugged in the iPod and for a few seconds it displayed the [More]
My iphone 4 is pluggged in to my computer but is not showing up on itunes, so I am unable to sync.  Please help!If you have a Mac: http://support.apple.com/kb/TS1591 If you have a Windows machine: http://support.apple.com/kb/TS1538Read other 2 answer [More]
I have a MOTU MicroExpressUSB 4INx6OUT MIDI interface that's been defined as follows in my Audio/midi Setup. 1 - Mackie HUI (I/O) 2 - Keyboard (I/0) 3 - Keyboard (I/0) 4 - Roland Elect Drum Kit TD12 (I/0) 5 - Sound Module (0 only) 6 - Sound Module (0 [More]
Getting Fax failure, unable to send or receive. Had this same problems a few months ago and HP support had me reset the printer to solve the problem. Printer no longer under warranty and I did not save the info on how to reset the printer. Thank you. [More]