‎2013 Jul 25 9:47 AM
Hi All,
We are using FM - READ_TEXT to read Customer long text from memory (Before save).
However, it always returns the old value (stored in Database).
We have seen a lot of threads in SCN which mention that READ_TEXT reads current data from memory. However, it does not work that way for us.
Any idea ?
Thanks,
Ashish
‎2013 Jul 25 10:12 AM
Hi Ashish W
In which transaction you are checking now ?
Even i also tried the same thing in sales order(VA01) while saving
But did not get After that i got all the currents texts in standard internal table xthead
i think its not possible from READ_TEXT while saving
‎2013 Jul 25 12:01 PM
Hi Bastin,
I am trying to read text in a Business transaction event (BTE) - DE_EIOUT which is called on Clicking SAVE button in VD02.
Could you pls. explain more on table xthead ? Which program does belong to ?
Are you doing something like '(<Program name>)xthead[]' ?
Thanks,
Ashish
‎2013 Jul 25 10:17 AM
Hey Ashish,
The function module READ_TEXT reads the desired text from the text file, or the text memory.
For that you must specify the the text using the following parameters:
OBJECT
NAME
ID
LANGUAGE
With these option give unique or selective text rather tahn giving generic text as the internal table can hold only one text.
Example :
Ex:
DATA BEGIN OF i_tlines_r OCCURS 0.
INCLUDE STRUCTURE tline.
DATA END OF i_tlines_r.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z040'
LANGUAGE = 'E'
NAME = '0000003243' "For ex, Billing document number ,
OBJECT = 'VBBK'
TABLES
LINES = i_tlines_r
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
Note:
if you free memory id, system is forced to look into to Database. Check if some think like below is written in code before calling this FM:
free memory id 'SAPLSTXD'.
If yes, then comment that code line.
‎2013 Jul 25 12:04 PM
Hi Anamika,
I am implementing the logic in a Business transaction event (BTE) - DE_EIOUT which is called on Clicking SAVE button in VD02.
I donot have any control over the statement - free memory id 'SAPLSTXD', since it might have been called from Std.
Is there any other way to read texts from memory ?
Thanks,
Ashish
‎2013 Jul 25 11:28 AM
Hi,
As we know that READ_TEXT fetches the saved data.
If you are entering the text in screen, u can read the screen field using function module
DYNP_VALUES_READ
try this.