Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

About Create_text FM

Former Member
0 Likes
1,265

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,206

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

Read only

0 Likes
1,206

I have this issue in TCODE clm2

Read only

0 Likes
1,206

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.

Read only

0 Likes
1,206

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.

Read only

0 Likes
1,206

On Which screen you are displaying

Read only

0 Likes
1,206

Tcode clm2's long text screen

Read only

0 Likes
1,206

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-TDOBJECT

which actually using by perticuler t-code.please check in that t-code what values shoud be fit.

Amit.

Read only

0 Likes
1,206

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

Read only

0 Likes
1,206

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

Read only

Former Member
0 Likes
1,206

You have to use COMMIT_TEXT Function

if sy-subrc eq 0.

call function 'COMMIT_TEXT'
,......
....

endif

.

Read only

0 Likes
1,206

Hi Vijay

The FM Create_text Contain the Commit_Text FM.

BR

Read only

Former Member
0 Likes
1,206

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