‎2010 May 21 11:50 AM
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.
‎2010 May 21 11:53 AM
What are the values your passing to the FM .
Input parameters values
‎2010 May 21 12:19 PM
Hi
Below are the input values:
id = 'B51'
language = sy-langu
name = name
object = 'EBAN'
eban-banfn = 0010000035 eban-bnfpo = 00010
So name = 001000003500010
‎2010 May 21 12:26 PM
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
‎2010 May 21 12:38 PM
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?
‎2010 May 21 12:43 PM
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
‎2010 May 21 2:24 PM
then how can i see the values for control text in ME53N? my client raised this issue.
‎2010 May 21 11:55 AM
Pass
ID = B01 (Header Note)
Language = EN
Name = PR Number
Text Object = EBANHin function module READ_TEXT.
Rgards
Vinod
‎2010 May 21 12:14 PM
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.
‎2010 May 21 12:14 PM
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.