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

Control text using READ_TEXT

Former Member
0 Likes
1,816

Hi,

I'm using READ_TEXT FM to read the text values from a PR. I'm reading control text which is available In ME53N, under 'Texts' tab. The language shown is EN. But the FM does not return any values.

Can anybody suggest a solution.

Regards,

Christy.

9 REPLIES 9
Read only

former_member206439
Contributor
0 Likes
1,361

What are the values your passing to the FM .

Input parameters values

Read only

0 Likes
1,361

Hi

Below are the input values:

id = 'B51'

language = sy-langu

name = name

object = 'EBAN'

eban-banfn = 0010000035 eban-bnfpo = 00010

So name = 001000003500010

Read only

0 Likes
1,361

Whether the values you are getting, While going to sap script editor & selecting the option goto->header is matching with the input given in your post?

Regards

Vinod

Read only

0 Likes
1,361

the input parameters are same that of teh header of sap script editor (goto -> header). But there is no entry corresponds to this values in STXH table. I could see some values for control text in ME53N.

Is it possible to display the text values without storing in STXH table?

Read only

0 Likes
1,361

Not possible, entries shown in Text tab of ME53N should be there in stxh table. See the code in function module READ_TEXT

select single * from stxh into stxh_wa
            where tdobject = catalog-tdobject
              and tdname   = catalog-tdname
              and tdid     = catalog-tdid
              and tdspras  = catalog-tdspras.

Regards

Vinod

Read only

0 Likes
1,361

then how can i see the values for control text in ME53N? my client raised this issue.

Read only

Former Member
0 Likes
1,361

Pass

ID = B01 (Header Note)
Language = EN
Name = PR Number
Text Object = EBANH

in function module READ_TEXT.

Rgards

Vinod

Read only

Former Member
0 Likes
1,361

First of all, does the row exist in table STXH? I usually code a check of STXH, then if found, use those values in READ_TEXT call. However, to be sure you have it right, simply change a text in you Dev or QA instance and save. Then go to SE11, look at STXH for your userid and date/time. Whatever you find will demonstrate precisely what you need to do to get the text. In some cases, where there are documents with multi-levels (items, lines, etc), the name is stored with the document number and the item (header would be a string of zeroes on the backend of the document number). Somtimes, there's a code on the front end.... check to see what you wrote into STXH and you'll see why it didn't work.

Read only

arul_murugan
Active Participant
0 Likes
1,361

HI,

Change the text as SAPscript editor. Once the new window opens, in menu GOTO->header, You will get the all the details that is required .(parameters for READ_TEXT FM). You can use the same technique for all the long text.

Thanks

Arul.