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: 

Storing Standard text in z table

0 Kudos

Hi All,

I have a requirement where i need to display standard text from SO10 to user in edittable form so that user can edit the same and save. I want to store this edited text in database table. I tried creating char field with 1000 chars but only able to see up to 256 chars. Is there any other way?

9 REPLIES 9

former_member259807
Active Participant
0 Kudos

What might be wrong with transaction SO10? Is it restricted for the users? Can you not create a Z-variant and/or version for SO10?

0 Kudos

We don't want to change the original version of the text in SO10. Its like a certificate statement which user can change and store for later use.

0 Kudos

We don't want to change the original version of the text in SO10. Its like a certificate statement which user can change and store for later use.

former_member259807
Active Participant
0 Kudos

Ah... Well, could you try to use CATSXT_SIMPLE_TEXT_EDITOR ?

Sandra_Rossi
Active Contributor

How can we know what could be the issue with your code? What did you do to truncate at 256 characters?

raymond_giuseppi
Active Contributor
0 Kudos

You cannot edit a long text in a single variable at screen due to system limitation. (Why did SAP develop tools like Function Group STXD and classes like cl_gui_text_edit or office integration with Function Group STXX and classes like i_oi_document_proxy?)

Why would you create a new table, when SAP provide a whole function group to save and edit long text in standard tables (look for function modules READ, EDIT and SAVE_TEXT. Create you own text object and IDs with SE75 by copy of TEXT and allow user to read standard texts and create/update those new customer texts in your report and use standard FM or class to manage editing.

SimoneMilesi
Active Contributor
0 Kudos
  1. Since you want to save a copy and not update the original one, instead of using a custom table, i'd create a Z... version of your text, mixing the different input you already received from Raymond and B. Wallagh.
  2. READ_TEXT of the Z....
  3. Not found, READ_TEXT of the original one
  4. edit via CATSXT_SIMPLE_TEXT_EDITOR
  5. SAVE_TEXT as Z...

Nothing too complicate or extra-ordinary

0 Kudos

I need to store multiple versions of the text which is edited. The same standard text may have multiple versions. This is dynamic. Every time user edit the standard text and saves that, we want to store it along with some key like batch. The solution provided only considers the fact that there will be only one version of the text.

Just add some kind of timestamp or version number to the NAME key,
and start considering archive those texts...