cancel
Showing results for 
Search instead for 
Did you mean: 

Need to update the maintain text in the cluster table

Former Member
0 Kudos

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.

Thanks,

Madhu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Regards,

Manoj.

Former Member
0 Kudos

Hi manoj,

The text editor you get is standard text editor for sap which you get when you take the option maintain text. Is there any way i can find the object id for this???

Thanks,

Madhu

suresh_datti
Active Contributor
0 Kudos

Hi Madhu,

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

report  zp_pa_0019_save_notes                    .
tables:
 pernr.
infotypes:
 0019.
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.
parameters:
               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..

~Suresh