2015 Dec 18 5:34 AM
HI,
I was using read_text to read the text of inforecord. there are 2 types- info memo and purchase order text. While i was getting info memo text using read_text, the other one was not being populated. When I debugged the standard, i saw the standard was also using read_text. That means that the standard screen shows the text but i ma not able to fetch the text using the same function module. So, i check the header of the text. It was showing created by someone else. when i made a small change and tried to read_text again, since now the text was changed by me, it came into my buffer, i was able to read it.
Does anyone know of some trick to fetch texts in such cases when they are stored in some other pool/buffer.
Thanks in advance.
2015 Dec 18 6:29 AM
Text Name Inforecord + Pur Org. +0
Language EN
Text ID BT
Text Object EINE
Try This for read_text
2015 Dec 18 2:29 PM
2015 Dec 18 6:33 AM
Hi,
It has nothing to do with buffer. Most likely it should be language problem, eg. if somebody created text in say DE language and you have pass the sy-langu while calling FM READ_TEXT.
if you login with EN language then FM will not be able to read the text. when you modify the text, language will changed to EN then FM will be able to read the text.
Regards
Chudamani Gavel
2015 Dec 18 2:25 PM
2015 Dec 18 6:45 AM
Try this:
CONCATENATE infnr ekorg esokz werks INTO is_name.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'BT'
language = 'EN'
name = is_name
object = 'EINE'
tables
lines = it_lines
.
2015 Dec 18 2:35 PM
If you are executing the READ_TEXT during execution of transaction, did you [un]check the bypass buffer option, did you insure not to overwrite memory used by standard transaction, there is only one area in memory for a text (*),
Also if you need two texts, call the FM twice with different value of ID. You could also browse table TXHD to insure you have correct keys/parameters values.
Regards,
Raymond
(*) Look at FM as GET_TEXT_MEMORY, or import CATALOG from memory Id 'SAPLSTXD'.
2015 Dec 18 5:45 PM
2015 Dec 18 8:13 PM
I'm sure Raymond will correct me if I'm wrong
But I think he is referring to setting LOCAL_CAT = 'X' in the call to READ_TEXT.
Rob
2015 Dec 19 1:54 AM