10-12-2005 10:09 AM
Hi,
Is there any function module that uploads standard texts onto SAP...
10-12-2005 10:48 AM
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
10-12-2005 10:15 AM
10-12-2005 10:19 AM
10-12-2005 10:34 AM
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
10-12-2005 10:43 AM
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
10-12-2005 11:38 AM
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
10-12-2005 11:50 AM
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
10-12-2005 12:02 PM
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
10-12-2005 10:48 AM
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