cancel
Showing results for 
Search instead for 
Did you mean: 

printing dynamic text

Former Member
0 Kudos

1) what is text object

2) what is text id

how they are related with text name .

I want to print the address basically .

I have created a include text node .

I have got the text name into variable and passed it in textname field in text node.

and now what shd i give in text object and text id

will they be static or they might be changed even for the same textname .

if they changes how to get them .

iam writing select on stxh is this correct ..i have only text name .

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

you mentioned that you are writing select on STXH...

in STXH, for the text id you created, there should be some value for fields TDOBJECT and TDID, right ?

This is your object name and Id respectively.

If you created a standard text, object could generally be, TEXT .

you can use function module, ReAD_TEXT to read the content of a text.

Selecting from STXH and STXL, will not give you the content.

else, you can use an INCLUDE statement in a sapscript to write the conents of the text.

Former Member
0 Kudos

hi,

Text ID and Text Object are fixed based on the application. Only the textname varies based on the document number or material no. or order no. etc..(depends upon application).

From STXH know the text id and text object.

Use the READ_TEXT func.module to read all the long text information related to the text object, text id and text name. Text Language is also a require parameter. You can pass different text names by looping and get all the long texts in an internal table.

From that internal table you can derive your result.

Regards,

Subramanian