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

Function SAVE_TEXT

Former Member
0 Likes
1,488

Hi,

Does the function SAVE_TEXT write the header and text into the STXL and STXH tables? If not, can someone please explain in detail what this function does.

Thank you.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,269

Yes, that function does make entries in both tables. This is the standard function module to save your text.

REgards,

Rich Heilman

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,270

Yes, that function does make entries in both tables. This is the standard function module to save your text.

REgards,

Rich Heilman

Read only

suresh_datti
Active Contributor
0 Likes
1,269

>>Does the function SAVE_TEXT write the header and text into the STXL and STXH tables?

YES. Pl note that these are Database Clusters. To retrieve the saved text, you should use the READ_TEXT function module.

Regards,

Suresh Datti

Read only

Former Member
0 Likes
1,269

Hi Fong

CALL FUNCTION ’SAVE_TEXT’ EXPORTING* CLIENT = SY-MANDT HEADER = GW_THEAD* INSERT = ’ ’* SAVEMODE_DIRECT = ’ ’* OWNER_SPECIFIED = ’ ’* LOCAL_CAT = ’ ’* IMPORTING* FUNCTION =* NEWHEADER = TABLES LINES = IT_LINE EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 OBJECT = 4 OTHERS = 5

will save the header and the text in STXH>header and STXL>line tables. you can even check it in SO10.

the main functional is To load long text into SAP

regards

kishore

Read only

Former Member
0 Likes
1,269

Hi,

You can check this thread for a sample program for understanding the FM: SAVE_TEXT:

Best Regards,

Anjali

Read only

vinod_gunaware2
Active Contributor
0 Likes
1,269

Hi

U can use WRITE_TEXT also.

regard

vinod

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,269

S, it writes in both the tables, header and item.

infact there is a parameter header in that.

The function module writes a text module to the text file or text memory, depending on the specific text object.

Read only

Former Member
0 Likes
1,269

Thank you everyone.

I wanted to verify exactly what the function does.

If I have questions regarding usage, then I will start a new thread.