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: 

standard texts upload

Former Member
0 Kudos

Hi,

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

Hi

You can use FM SAVE_TEXT

Max

Former Member
0 Kudos

Hi,

Try FM READ_TEXT or SAVE_TEXT

Thanks&Regards,

Ruthra

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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