Application Development 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: 

About Create_text FM

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

I have this issue in TCODE clm2

0 Kudos

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.

0 Kudos

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.

0 Kudos

On Which screen you are displaying

0 Kudos

Tcode clm2's long text screen

0 Kudos

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.

0 Kudos

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

0 Kudos

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

former_member188685
Active Contributor
0 Kudos

You have to use COMMIT_TEXT Function

if sy-subrc eq 0.

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

endif

.

0 Kudos

Hi Vijay

The FM Create_text Contain the Commit_Text FM.

BR

Former Member
0 Kudos

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