Long Text --- 1000 characters

Hi All,
I have a  report that is using ALV and one of my fields has to display a long text description of a material. My client has asked me to make sure that at least 1000 characters are displayed for a long text description. I have tried to explaing to my client that only 132 character can be displayed but insisted that he desparately needs 1000 characters....
Can anyone advice me out on this.
Regards,
Fred.

Hi,
This is the code i have used in my report:
Data definition***
Data: begin of i_tab occurs 0,
              text  TYPE CACS_CHAR1000SF,
         end of i_tab.
field catalog***
  itb_fieldcat-fieldname = 'TEXT'.
  itb_fieldcat-seltext_l = 'POD Text'.
  itb_fieldcat-col_pos   = 35.
  itb_fieldcat-outputlen = 1000.
  itb_fieldcat-emphasize = 'X'.
  APPEND itb_fieldcat TO itb_fieldcat.
  CLEAR itb_fieldcat.
FORM reading_text.
  gv_repid = sy-repid.
  SELECT SINGLE ebeln INTO i_tab-ebeln FROM ekpo  WHERE matnr = i_tab-matnr.
  line_id     = 'BEST'.
  line_name   = i_tab-matnr.
  line_lang   = sy-langu.
  line_object = 'MATERIAL'.
  CLEAR i_tabs.
  REFRESH i_tabs.
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                      = line_id
      language                = line_lang
      name                    = line_name
      object                  = line_object
    TABLES
      lines                   = i_tabs
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.
  IF sy-subrc <> 0.
   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  LOOP AT i_tabs.
    CONDENSE i_tabs-tdline.
    CONCATENATE: i_tab-text i_tabs-tdline INTO i_tab-text SEPARATED BY space.
    MODIFY i_tab TRANSPORTING text.
  ENDLOOP.
ENDFORM.                    "reading_text
The text is still cutting off.
Regards,
Fred

Similar Messages

  • Functionality in long text  -- include -- characters-- SAP Icons

    Can any one please tell me the functionality in long text  -->include >characters>SAP Icons. Is it possible to include any icon in longtext.
    regards
    Ravikumar

    Hi,
    The standard icons should be available. If not, see note [1067936|https://service.sap.com/sap/support/notes/1067936] that explains how they can be made available.
    -Paul

  • Alv- displaying long text in alv output

    hi,
              as per my requirement, i need to be display long text (length >1000 characters) in alv list or alv grid.
    i get the entaire long text and keep it in final internal table and pass it to alv functional module,  but  it unable to display the compleate long text( in alv-grid).
    the alv list displays the complete long text but not in the row, it displays in the second rown and few field labes of long text and its previous field label are displayed in impro[per order.
    is there any possible way to display long text in alv.
    regards,
    revoori

    Hi Ashok,
    try to pass the below while filling your long text.
    wa_fieldcat-seltext_l  = 'Your Long Text'.
    wa_fieldcat-ddictxt = 'L'.
    for more info check below
    Long Text --- 1000 characters
    hope it works
    Thnaks!
    Edited by: Prasanth on Mar 8, 2009 4:03 PM

  • Any way to get more than 1000 characters in notes?

    i was just wondering if there was any way to get more than 1000 characters in the notes section of the ipod. i have outlines for school and they are a lot longer than 1000 characters... i didnt know if there is a setting on itunes or the ipod or a hack or mod to make it more than 1000 character limit. thanks for the help

    No.
    You can use the iPod in Disk mode and copy the outlines in their native format (Word?) and put them on your own computer.

  • Long Text into BI

    Hi Guys,
    I have to bring long text (7000 characters long) from table STXL into BI. I went through the discussions on the forum without much help. One option is to split the text into multiple infoobjects and joining them in analyzer. This option is not practically possible for me because of the text length.
    I enhanced an existing datasource with a new filed and tried to populate the field from the text field in STXL table. The challenge now is to bring the field into BI. Someone mentioned in the forum that we can write couple of function modules (READ_TEXT and GUI_DOWNLOAD) to extract the text into BI as a file and write another program in BI and load the text into documents of infoobject. Is this the only option available?
    Can you please send some sample code on ECC and BI for this purpose? Also, If I want to display the document in excel analyzer, will it be available as a separate column in the report?
    Please help.
    Thanks in advance.

    Hi,
    This type of requirement was there in my previous project which was achieved using FM. Follwoing doc might be useful for you in writing FM:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33?quicklink=index&overridelayout=true
    Regards,
    Prakash

  • Using edit text control for storing and displaying text of 1000 characters

    Hi all,
    I have a requirement to provide a field for remark in one of dialog screens, for saving remarks of up to 1000 characters. I made container and edit control and add a field LCHR in database table with preceding INT4 field. Then I use this code to save/read data in/from database table:
    CALL METHOD editor->get_textstream
         EXPORTING
           only_when_modified = 0
         IMPORTING
           text               = mytext
         EXCEPTIONS
           OTHERS             = 1.
    in user command and:
    CALL METHOD editor->set_textstream
         EXPORTING
           text = mytext.
    in status.
    Then in read I tried to select single LCHR field from that row and put it in mytext TYPE string. In save I save mytext as LCHR field in database table. There is no error anywhere but it doesn't work. Is it even possible to save STRING text in LCHR field of database table?
    What is alternative? Text objects from SE75?

    Having a string in a database table is absolutely independent on having some trouble in the program. If you got an error saying you need only flat structure, that means you can't use a deep structure in the context.
    I suppose you are using the structure on the screen or ALV. You can only use a flat structure there (no strings, no sub-tables...) as you would not be able to render a deep-structured data on the screen. Of course, ABAP could handle that e.g. by ignoring those deep fields, but we would want too much.

  • Re:Uploading Long text of 500 characters through LSMW

    Can any1 help me out in uploading long text of 500 characters thru LSMW...Please reply ASAP..We have used Direct Input method 0004...We have a structure for long text ,but still unable to upload.

    I have the same problem where the long text is not being updated through a AC02 BDC session.  Did you find a solution to the problem yet?
    Thanks
    Johan

  • Number of characters in long text functionality

    Can anyone please help me as to how many characters are there in long text functionality in Standard SAP. If we create a document under FB01 , there is a long text field how many characters we can enter in that text field.
    Also can we have any number of characters in custom field or is there any restriction to it.

    Hi Isha,
    Please refer the solution for your problem on this link :
    Here i have explained in detail how you can go about with providing Custom Controls on the screen.
    [Re: long text in custom screen]
    Hope this helps.
    Regards,
    Samreen.

  • Special Characters in Long Text Field of FI Documents

    Hi,
    Users entered the following in the long text field of a FI document:
    "Settlement of claims for direct shipment (Refer to XXX/YY-053/2009, XXX/YY-018/2009, XX2120000031 and X2120000033)"
    The default editor used is the one which looks like the MS Word.
    When we changd to the other editor (Goto > Change Editor), we see the following:
    "Settlement of claims for direct shipment to Thailand (Refer to"
    "XXX/YY-053/2009<(>,<)> XXX/YY-018/2009, XX2120000031 and X2120000033)"
    How did "<(>,<)> " comes about?
    Any ideas?

    I'd probably use a regex of "allowed" characters rather than a list of "disallowed" characters, but thats just a difference in approach.
    I would probably use a regular expression - alphanumeric is fairly easy to check
    String value = request.getParameter("enteredField");
    boolean alphaNumericOnly = value.matches("\\w+");As a matter of being nice to the user, you can also do this check in javascript on the client side.
    ALWAYS validate server side.
    Optionally validate client side to give the user a better experience (less round trip requests)
    Cheers,
    evnafets

  • Loading long text more than 60 maximum of 240 characters into cube

    hi experts,
    I am loading from  flat file some time the description field have more than 60 characters  below then 240, so kindly advise me how to load onto the description field in cube. How to split the description fields.

    Hi Rajesh,
    Please check the below SDN blog for Long Texts in SAP BW.
    Long texts in SAP BW: Modeling
    Also go through the below thread.
    Flat File Datasource
    Hope it helps.
    Regards,
    Raghu

  • Reading Texts longer than 132 Characters

    Hello Seniors,
    I am working on Reading Texts more that 132 characters long.Texts should include Symbols also.I want to <b>Create and Save</b>the texts and then <b>read</b> them wherever I want from ABAP functions.
    I want to know the Transports information relating to this.
    Could there be any function modules (with relevant parameter passing)to create long texts and then read them where ever I need.
    Thank You,
    cnc.

    HI
    Check the fun module <b>READ_TEXT</b>, CREATE_TEXT and SAVE_TEXT and EDIT_TEXT etc related to the Std texts
    Have to pass the parameters like OBJECT,ID, OBJECTNAME,LANGUAGE
    You can transport these texts using the program <b>RSTXTRAN</b>
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Reading Text longer than 132 Characters including Special characters

    Hello Seniors,
    Could you please give me some information about the following Function Modules also?
    'SOTR_STRING_CREATE_CONCEPT'
    'LXE_OBJ_TEXT_PAIR_READ_SOTR'
    'SOTR_STRING_READ_TEXT_WITH_KEY'
    I was able to create a concept by using the Function module 'SOTR_STRING_CREATE_CONCEPT'. Now, I need to create a text and then read the text where ever I want (the text can be longer than 132 characters and also may contain special characters) from abap functions as per my requirement.
    my requirement is not based only on SAP Scripts.
    Thank you,
    cnc.

    check in  url    www.SE37.com
    regards,
    Prabhu

  • Iw64 long text cuts off after certain characters

    Hi all,
    I have requirement where the issue is that long text is not printing completely and getting cut off in certain number of characters.
    Any help is appreciated.

    It still wraps up the output.
    You may have embedded carriage returns in your columns.
    Let me explain you with an example.
    SQL> create table mytable(col1 varchar2(80));
    SQL> insert into mytable
      2  select lpad('ab',80,'cd') from dual;
    1 row created.
    SQL> select lpad('ab',50,'cd')||chr(10)||lpad('ab',29,'cd') from dual
      2 
    SQL> insert into mytable
      2   select lpad('ab',50,'cd')||chr(10)||lpad('ab',29,'cd') from dual;
    1 row created.
    SQL> select * from mytable;
    COL1
    cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdab
    cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdab
    cdcdcdcdcdcdcdcdcdcdcdcdcdcab

  • The text literal '''. is longer than 255 characters...

    friends,
        am getting an error "The text literal ''.    ' is longer than 255 characters. check whether it ends correctly in the very first line of the Report statement. what could be the problem? thanks all.

    Hi sathish,
    Please check whehter you have done like this
    A = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxx'
    in the same line, if you have done as above please
    do like this
    A =
    'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'.
    Thanks,
    Krishnakumar
    Message was edited by: Krishnakumar

  • Problem loading hierarchy long text. Item text only displays 45 characters

    Hi,
    When loading the Financial Statement hierarchy from ECC to BI I am only getting a 45 character long text for the nodes. This text seems to correspond to the "Item" text seen in transaction fse3 in ECC. However, the text that I need to have is the (concatenated) long text enterer in the multiple fields under either "End of Group" or "Start of Group" (under Item: Display Texts in fse3).
    Does anyone know if it is possible to extract this information and how to go about when doing this?
    Points will be rewarded for help.
    Regards
    Nils

    Hello Vânia,
    >> fac586, Thank you very much for your help ….
    Just so you know, fac586 is called Paul :).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

Maybe you are looking for