on 10-23-2006 2:48 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.