Skip to Content
-2

Storing Standard text in z table

Nov 02, 2017 at 12:03 PM

87

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded

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
Former Member
B. Wallagh

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
Former Member

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

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

0

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

1
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Nov 02, 2017 at 01:59 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Simone Milesi Nov 02, 2017 at 04:09 PM
0
  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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0

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

1