04-30-2007 9:16 AM
wat is the maximum long text that can be uploaded using create_text.can any body send me the documentation about this function module
04-30-2007 9:24 AM
04-30-2007 9:26 AM
04-30-2007 9:29 AM
Hi Siva
<b>
we send the text lines through the internal table(in below
through it_tline table) so the length of the text can be any thing there is no limit, just you need to append all the text lines of 132 characters to this itab </b>
I could find this code in net. Just go through that...
FUNCTION zcc_updateorder_text. Baically those 2 parameters are TDNAME, TDOBJECT of the Standard text which you can view in So10. Also in SCRIPT EDITER ==> goto-->header
Rgds,
TM
*"----------------------------------------------------------------------
*"*"Interfase local
*" IMPORTING
*" REFERENCE(AUFNR) TYPE AUFK-AUFNR
*"----------------------------------------------------------------------
DATA: p_orden TYPE aufk-aufnr,
p_tdname TYPE thead-tdname,
p_tdid TYPE thead-tdid,
p_tdobject TYPE thead-tdobject,
p_header TYPE thead,
it_tline TYPE STANDARD TABLE OF tline
WITH HEADER LINE,
p_function.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = aufnr
IMPORTING
output = p_orden.
CONCATENATE sy-mandt
p_orden
INTO p_tdname.
it_tline-tdline = 'Some Text...'.
APPEND it_tline.
p_tdid = 'KOPF'.
p_tdobject = 'AUFK'.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = p_tdid
flanguage = sy-langu
fname = p_tdname
fobject = p_tdobject
save_direct = 'X'
fformat = '*'
TABLES
flines = it_tline
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
ENDFUNCTION.
Regards Rk
Message was edited by:
Rk Pasupuleti
04-30-2007 9:33 AM
Maximum long text that can be uploaded using create_text FM is 132 characters.
Best Regards,
Balakrishna.N
04-30-2007 9:47 AM
There is no limit on the size of text you send to this FM. Because you need to split the text into lines of ITAB. Each line of itab is of 132 characters. Hence if your text is 164 characters long then itab will contain 2 lines.
Hence yo should implement the code to split the text into 132 character lines.