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: 

create_text

Former Member
0 Kudos

wat is the maximum long text that can be uploaded using create_text.can any body send me the documentation about this function module

5 REPLIES 5

Former Member
0 Kudos

255 char's per line.

Regards

Prabhu

Former Member
0 Kudos

hi,

i think this will help u,

Reward points if helpful,

Regards

Nilesh

Former Member
0 Kudos

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

Former Member
0 Kudos

Maximum long text that can be uploaded using create_text FM is 132 characters.

Best Regards,

Balakrishna.N

Former Member
0 Kudos

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.