cancel
Showing results for 
Search instead for 
Did you mean: 

How to get text name text object and text id for long text

Former Member
0 Kudos

Hi,

I am trying to fetch Long text for a given order number from transaction CO04 in SAPScript. I know that I have to use Include X (OBJECT) XX ID XXX.

How do I get the text name, text object and text id for the order header long text from Transaction CO04.

Points will be awarded..

Tushar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go to the long text screen of the transaction. In the menu 'Go To' --> 'Header' will give you the necessary details.

Let me know if you were able to find it.

Srinivas

Former Member
0 Kudos

I have my cursor in the long text of transaction CO02 but when I do go-to the header submenu is not active. Its grey.

Former Member
0 Kudos

You should be in the long text editor screen. When you are in the order and at the field where you enter the text, you should see a button to take you to the sapscripts editor for entering long text. Here, you should look for the option in the menu. If not, look in table TCO09.

former_member221770
Contributor
0 Kudos

Tushar,

When you are in CO02, and are at the Long Text Tab,click on the Icon that is next to the Order Number at the top of the screen (this icon looks like a Pencil and a Pad of Paper and is called "Change Long Text"). When you click on this it will take you to the SAPscript Editor. Now hit Goto->Header and you will get the data you require.

Hope this helps.

Cheers,

Pat.

PS. Kindly award Reward Points as appropriate.

Answers (3)

Answers (3)

Former Member
0 Kudos

Read_text reads text from STXH , STXL, STXB (depending on the object) tables for a specific text object.

you can just go to these table (se16) and see yourself.

STXH -> Header table

STXL -> Table which stores the actual text.

in order to read the text element you need to use FM READ_TEXT.

The texts are the long characters and they are stored in the unreadable format which makes them difficult to access directly via database so you have to use this FM.

andreas_mann3
Active Contributor
0 Kudos

Hi Tushar,

have a look tó tables TTXOB and TTXID

Andreas

Former Member
0 Kudos

Tushar - as a start, go to SE16 and enter CDHDR as the table name. Enter SU01 as the transaction code on the selection screen. It should return the informnation you need to continue.

Rob