Skip to Content
author's profile photo Former Member
Former Member

Need to update the maintain text in the cluster table

Hi all,

I need to programmatically save the text written by the user using the maintain text option. Since i have disabled the save button for the user, he cannot save the text he is written using the maintain text option. I want to code in the infotype module pool to save the text he is written. Can i program it to save in the cluster table???

Is there any run time table these text are temporarily stored, before saving it into the cluster table.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 10:03 AM

    Yes,You can use 'SAVE_TEXT' function module to save the texts in cluster table 'STXL'.For this you need to create text object ID in SE75,for mapping.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Madhu,

      the following piece of code can be used to maintain texts for an existing record..

      report  zp_pa_0019_save_notes                    .
      data:  key like pskey.
      data: begin of ptext occurs 200.
      data:   line(72).
      data: end of ptext.
      selection-screen begin of block abc with frame title text-001.
                     p_pernr like pernr-pernr.
      selection-screen end of block abc.
      ptext-line = 'Test Text1'.
      append ptext.
      ptext-line = 'Test Text2'.
      append ptext.
      ptext-line = 'Test Text3'.
      append ptext.
      rp-read-infotype p_pernr 0019 p0019 '18000101' '99991231'.
      sort p0019 descending.
      read table p0019 index 1.
      move-corresponding p0019 to key.
      p0019-itxex = 'X'.
      update pa0019 set itxex = 'X'
                    where pernr = p_pernr.
      export ptext to database pcl1(tx) id key.

      Unless the field <i>itxex</i> is checked, the texts will not be displayed in PA20/30.. thats the reason for a direct update of the database table.. you can expnad the where clause for the UPDATE statement to be more specific..


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.