04-10-2014 11:00 AM
Hi All,
I use SAVE_TEXT to save long text to projct,But
I am uploading the long text using SAVE_TEXT function module
I can see the data in STXL table and i can use READ_TEXT to get the long text
but the Long text data is not diaplying on the scrreen.
Who know ,Please Help me
header-tdname = ‘D00000154'.
header-tdobject = 'PMS'.
header-tdid = 'LTXT'.
header-tdspras = '1'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
savemode_direct = 'X'
TABLE
lines = gt_tline[]
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
Best Regards
wangyuan
04-10-2014 2:07 PM
hi all
thanks for all help
I think i had get the answer
in the cj02,there is a flag field TXLTX
if the long text is exist,the PROJ-TXTSP table feild will set value
,and if PROJ-TXTSP is not null,the TXLTX field will set long text flag,
then overview the long text screen,it will call fun 'read_text' and show the long text
so if PROJ-TXTSP is null ,it will not call fun read_text ,so the long text will not display
Best Regards
wangyuan
04-10-2014 11:08 AM
04-10-2014 12:05 PM
04-10-2014 11:08 AM
hi Wang,
Can you please share the code where you are using Read_Text and trying to display on the screen?
generally, read_text FM will return table of type structure TLINE then you have to read the text from this table.
Regards,
DN.
04-10-2014 11:27 AM
Hi Wang,
Where exactly you want the long text to be updated either it is for Purchase Order or Sales Order or Material Master long text.
Please confirm this.
Regards,
Rafi
04-10-2014 12:17 PM
04-10-2014 11:41 AM
The Login Language might be the issue, you are saving the text in Chinese language and if you login with different language lets say English or German the long text saved in Chinese will not be visible.
If this is the case you can maintain Translation.
04-10-2014 12:20 PM
the language of login to display the long text is chinese, and set the Save_text fun the language also is chinese
04-10-2014 12:16 PM
1 execute SAVE_TEXT
2 execute READ_TEXT
3 See cj02 the project long text ,Long text data is not diaplying on the scrreen
Who know the reason or tell me how i can do
04-10-2014 12:53 PM
Hi Wang,
In SAVE_TEXT FM please even pass the language parameter and try it.
Regards,
Rafi
04-10-2014 12:36 PM
Hi, try to pass a parameter INSERT of the FM
call function 'SAVE_TEXT'
exporting
* CLIENT = SY-MANDT
HEADER = HEADER
INSERT = 'X'
and try to run commit work to be sure data is saved
br
04-10-2014 1:08 PM
I had try to set INSERT = 'X', but it is unuseful
and I had do the same to save long text for MATERIAL ,MATERIAL long text sace successful
04-10-2014 1:13 PM
in this case I would suggest you to debug the save_text module, it should not be much complicated 😐
04-10-2014 12:51 PM
Open FM READ_TEXT with SE37 and set a break-point at start. Then call CJ02 or CJ20N and check actual values passed by the transaction to the FM.
Regards,
Raymond
04-10-2014 2:07 PM
hi all
thanks for all help
I think i had get the answer
in the cj02,there is a flag field TXLTX
if the long text is exist,the PROJ-TXTSP table feild will set value
,and if PROJ-TXTSP is not null,the TXLTX field will set long text flag,
then overview the long text screen,it will call fun 'read_text' and show the long text
so if PROJ-TXTSP is null ,it will not call fun read_text ,so the long text will not display
Best Regards
wangyuan