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

standard texts upload

Former Member
0 Likes
1,180

Hi,

Is there any function module that uploads standard texts onto SAP...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,152

Hi,

Check this link for <b>SAVE_TEXT</b>

<u>http://www.ct-software.com/reports/z_ie_showpic.htm</u>

Check this link for <b>READ_TEXT</b>

<u>http://sap-basis-abap.com/sapac002.htm</u>

Thanks,

Ruthra

Message was edited by: Ruthra

Hi,

Is there any function module that uploads standard texts onto SAP...

8 REPLIES 8
Read only

Former Member
0 Likes
1,152

Hi

You can use FM SAVE_TEXT

Max

Read only

Former Member
0 Likes
1,152

Hi,

Try FM READ_TEXT or SAVE_TEXT

Thanks&Regards,

Ruthra

Read only

0 Likes
1,152

how do I use this read_text file? It says that it can read from flat file,,...so How do I use it..

Regards,

Vijay

Read only

0 Likes
1,152

Vijay, I have not seen any reference to a flat file. Where did you see this ?

As far as I know :

The FM READ_TEXT is to read a long text from the database (see Table STXH).

If you want to import some new Texts, use the FM SAVE_TEXT. You migh have to develop a small interface in order to take a file from your PC into an internal table and then successively call the FM SAVE_TEXT.

Hope it helps!

Cheers,

Guillaume

Read only

0 Likes
1,152

I get an exception called IO Error when I try to create new texts using a program which uses the FM Save_TEXT

Any idea what the problem maybe

Read only

0 Likes
1,152

It is an error when inserting/updating/deleting the STXH table.

Some directions you might want to look into :

- Did you give the right client ?

- Did you give a correct (I mean existing in TTXIT table) Id ?

- ...

Message was edited by: Guillaume Garcia

Read only

0 Likes
1,152

Hi,

look this sample:

REPORT zforum43 .
PARAMETERS ebeln LIKE ekko-ebeln.
DATA:  textname         LIKE thead-tdname,
       func,
       co_co            LIKE sy-index.
* Interne Tabellen
DATA  t_tf02hz LIKE thead OCCURS 0 WITH HEADER LINE.
DATA  t_tf02lz LIKE tline OCCURS 0 WITH HEADER LINE.

MOVE ebeln TO textname.

CALL FUNCTION 'INIT_TEXT'
     EXPORTING
          id       = 'F02'
          language = 'D'
          name     = textname
          object   = 'EKKO'
     IMPORTING
          header   = t_tf02hz
     TABLES
          lines    = t_tf02lz.

APPEND '  test 1 ' TO t_tf02lz.

CALL FUNCTION 'SAVE_TEXT'
     EXPORTING
          header          = t_tf02hz
          insert          = 'X'
          savemode_direct = 'X'
     IMPORTING
          newheader       = t_tf02hz
          function        = func
     TABLES
          lines           = t_tf02lz.


IF func = 'I'.
  CALL FUNCTION 'COMMIT_TEXT'
       IMPORTING
            commit_count = co_co.
ENDIF.

Andreas

Read only

Former Member
0 Likes
1,153

Hi,

Check this link for <b>SAVE_TEXT</b>

<u>http://www.ct-software.com/reports/z_ie_showpic.htm</u>

Check this link for <b>READ_TEXT</b>

<u>http://sap-basis-abap.com/sapac002.htm</u>

Thanks,

Ruthra

Message was edited by: Ruthra