Skip to Content
0

create standard text with CREATE_TEXT FM problem

Jun 06, 2017 at 06:35 AM

160

avatar image

I have created SO10 text using CREATE_TEXT FM, while in debugging, i found the FM is successfully executed and i could read the text using READ_TEXT FM, but i cannot see the standard text in SO10 transaction.

Why is it so? where is my text stored?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Chintu adi Jun 06, 2017 at 07:19 AM
1

Hello,

Are you using COMMIT WORK AND WAIT after create_text FM and save_direct = 'X'.

You can also try CALL FUNCTION 'SAVE_TEXT.

thanks

Share
10 |10000 characters needed characters left characters exceeded
satyapriyanka vana Jun 06, 2017 at 07:00 AM
0

Hi,

try to import header from read_text and check whether the header in SO10 is same as the header of read_text ?

Regards,

Priyanka.

Share
10 |10000 characters needed characters left characters exceeded
Salah ZINET Jun 06, 2017 at 08:59 AM
0

Hi Paru,

As Chintu said, I think that you have to Add COMMIT WORK AND WAIT. to your code like in the code bellow:

REPORT ZINET_TEXT01.


DATA : it_FLINES TYPE STANDARD TABLE OF TLINE.

START-OF-SELECTION.

APPEND 'BLABLABLABLABNLABLA' TO it_FLINES.
APPEND 'BLABLABLABLABNLABLA' TO it_FLINES.


CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = 'ST'
FLANGUAGE = 'E'
FNAME = 'ZINETEST02'
FOBJECT = 'TEXT'
* SAVE_DIRECT = 'X'
* FFORMAT = '*'
TABLES
FLINES = it_FLINES
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
COMMIT WORK AND WAIT.
ENDIF.

Regards.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Salah,

Have you tried without COMMIT statement. Because, I didn't use COMMIT statement and still I can view the text lines in the standard text.

Regards,

Priyanka.

0

Hi Priyanka.

Yes, I tried the FM CREATE_TEXT without COMMIT statement and I didn't find the text lines after running the program.

What I know about COMMIT Statement is :

It terminates an SAP LUW and stores the changes on the data base, ( This means that it applies the changes immediately to the database ),

Regards,

Salah.

0
Sandra Rossi Jun 06, 2017 at 06:50 PM
0

The transaction SO10 is only for the long texts which are named "standard texts", i.e. those in table STXH with TDOBJECT = 'TEXT'.

Share
10 |10000 characters needed characters left characters exceeded