Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Editor in screen Painter

Former Member
0 Kudos

hello friends,

i hv created text editor in screen painter. when i write some lines in this editor and click on save button. then this text saves temproraly in table. when click on display this text will sees in editor again. upto this it is ok.

but when i run this program again next time, and when i click again on display button i cant get that saved text again. why this happens?

if i want to save this text permenantly then wht's the procedure.

please help me guys.

b'cuz this is an very imp matter for me.

replay as soon as possible.

thanks in advance.

regards,

Vinod.

11 REPLIES 11

gopi_narendra
Active Contributor
0 Kudos

make use of the function modules read_text, edit_text, save_text.

Regards

- Gopi

0 Kudos

hey hi gopi,

thanks for reply.

can u plz give me small example of how to use it.

thanks in advance

regards

Vinod

0 Kudos

see the standard program RM07METI

u will have all the necessary info required for it.

Regards

- Gopi

0 Kudos

hi ,

I seen the program RM07meti,

and I want to save the data from editor to a databse table,in that program where the data is store(in which table).

thanks in advance

regds

Vinod

Former Member
0 Kudos

Hi,

After displaying your text you take that in one internal table and get them again through get_text FM. and Dispaly them again through VRM_SET_VALUES FM.

Regards

Satish

0 Kudos

hi satish,

I created my own text editior just like we create in html for writing mail,and now i want to store the data which i enter into text editor into database table,so that i use that data to display on sapscript.

but i m not getting how to store that data into table.

plz guide if possible give me small eg.

regds

vinod

0 Kudos

u can not save the data into ztable, when ever u create a text it creates an entry in the STXH table, which u can use in ur SAP Script using the function module READ_TEXT.

the standard prog which u saw is similar to the same requirement, it first looks for the text, if already a text contains then it gets the text from the STXH table using read_text and again using EDIT_TEXT u will be able to edit it.

Regards

- Gopi

0 Kudos

Hi Vinod,

Use SAVE_TEXT to store data into table.

This data stores in STXL table.

Regards

Satish

0 Kudos

hi gopi,

again thanks for reply,

as per you, that data does'nt store in ztable,that is store in stxh table but actually i want to store that data into ztable becoz i want to retrive that data on a perticular condition (e.g depend on a perticular fiscal year data will be retrive) and my data is also very large so is there is another technique so that i store that data into ztable.

regards,

vinod

0 Kudos

no u can not save such long data into a table, the solution for this is to create the header-tdname related to the key fields in ur ztable.

like ur ztable has fields f1(key) f2 f3 f4...

now move the value of field f1(key) to header-tdname, so that it can be related to ur ztable field and u can get the same data when u try to retrieve some where else.

<b>Hope this is clear.</b>

Regards

- Gopi

Former Member
0 Kudos

hi all,

i am still facing problem for saving text permanantly to database.

can any one help me for this urgently.

redgs,

vinod