Application Development and Automation 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: 
Read only

Function module to Accept / Display / Edit Long text entries.

Former Member
0 Likes
3,026

Can someone provide a function module to accept a long text input and it will display it in a pop up screen where it can edited further? And also with a capability to save, send to email the long text inputted?

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
1,319

Hi Ryan,

a little bit old is

FUNCTION 'TXW_TEXTNOTE_EDIT'

I remember it is easy to handle. For whatever reason today I use class cl_gui_textedit. If you feel comfortable with OO, go for it.

Regards,

Clemens

4 REPLIES 4
Read only

Former Member
0 Likes
1,319

Hi Ryan,

you can use the SAVE_TEXT and READ_TEXT function modules. All long text in the system is stored this way. You can create custom Text Object/ids via transaction SE75.

text will be stored in STXH & STXL tables.

to identify any standard text , you need the below fields

1.TEXT NAME

2. ID

3. OBJECT

4. LANGUAGE

normally we use READ_TEXT to fetch the text & SAVE_TEXT to save the text.

for these function modules, we have to pass the above field values.

to create a standard text we use S010 transaction.

for further help, go thru the link

Thanks.

Reward If Helpful.

Read only

Former Member
0 Likes
1,319

Hi Viji,

My long text will not be saved to any object in SAP (i.e. PO, Notification, Contract and the likes). We will save it as a BDS attachment. And also I can not use READ_TEXT since the long text must be populate by the program. Im saying it is a long text because it should accept text in a Letter Type form and it should be scrollable. Please help. If no possible FM to be reused. Maybe you can help me out on the screen element to be used to accept long text as an input and should be scrollable. Thanks.

Read only

Clemenss
Active Contributor
0 Likes
1,320

Hi Ryan,

a little bit old is

FUNCTION 'TXW_TEXTNOTE_EDIT'

I remember it is easy to handle. For whatever reason today I use class cl_gui_textedit. If you feel comfortable with OO, go for it.

Regards,

Clemens

Read only

Former Member
0 Likes
1,319

Hello Clemens,

Thanks a lot. I now have the options. I think I will use the OOP one. Thanks.