‎2008 Jul 23 3:05 PM
Hi Experts
I use create_text fm create a long text for object, The FM's sy-subrc is 0, But I can't view it in object's Text Edit. Otherwise I Edit the text use standard TCODE then the text which i created by FM will display in Text Edit,Can anyone tell me why?
thanks
Chirs
‎2008 Jul 23 3:13 PM
THis is a very strange behaviour I have observed once for IA11 once but I dint find a solution for this.
Let me know if u have a solutiong for this.
Shreekant
‎2008 Jul 23 3:15 PM
‎2008 Jul 23 3:18 PM
Chris,
use like this:
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = BTEXHKOM-TDID
FLANGUAGE = DA_LANGU
FNAME = DA_TNAME
FOBJECT = 'VBBK'
FFORMAT = ' '
TABLES
FLINES = TEXTLINE
EXCEPTIONS
NO_INIT = 01
NO_SAVE = 02.and also try to use commit work after this.
Amit.
‎2008 Jul 23 3:30 PM
Hi Amit
I can read the text by Read_Text FM,But can't display on screen.
Stxh and Stxl table have a row which i create by that FM.
‎2008 Jul 23 3:32 PM
‎2008 Jul 23 3:34 PM
‎2008 Jul 23 3:34 PM
Chris,
yes i can understand your problem.stxh table will contain entry but on screen it is not showing becasue it seems to me that you may not using correct values in
THEAD-TDID
THEAD-TDSPRAS
THEAD-TDNAME
THEAD-TDOBJECTwhich actually using by perticuler t-code.please check in that t-code what values shoud be fit.
Amit.
‎2008 Jul 23 3:37 PM
Hi,
Is there any check BOX for the LONG text. Before you go to the long text screen please check if there is any check BOX for the LONG text. IF so please check the check box in the change mode and see if you can see the long text.
THis Should.
Shreekant
‎2008 Jul 23 3:39 PM
Hi Amit
I think my values are right,If i edit the text and key something in it,after save ,the text which i created by FM will display ahead i key in
‎2008 Jul 23 3:15 PM
You have to use COMMIT_TEXT Function
if sy-subrc eq 0.
call function 'COMMIT_TEXT'
,......
....
endif.
‎2008 Jul 23 3:17 PM
‎2008 Jul 23 3:17 PM
hi check this...
after creating the data or changing the data we should use the commit statement for the changes to reflect in the tcode. so here you have to use the commit_text function module