Skip to Content
avatar image
Former Member

how to make a domain element which supports 1000 character

Hi all,

I have a requirement that I need to create a data element which supports 1000 characters.

I have created a data element with char and output length as 1000 it activates with errors but when I maintain the table using SM30 it allows me to take only upto 255 characters, even I tried with different data element but the same problem .

I have also looked into following link http://scn.sap.com/thread/1110840  http://scn.sap.com/thread/1835228  http://scn.sap.com/thread/1462541 but same issue even after the steps mentioned in it.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 02, 2015 at 11:41 AM

    Hi All,

    i have found the solution for this issue ,

    1. Use the domain element char1000.

    2. But there is a catch if we use char1000 we will be not able to create a table  maintenance generator.

    3. So create a report program, get a option to upload files from the system and convert the same to desired format (to internal tables) .

    4. And update the database table from the report directly.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 30, 2014 at 12:32 PM

    Hi,

    Refer this thread . Hope this might help you.

    Thanks

    KH

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 30, 2014 at 02:23 PM

    Hi,

    The out put length of a string in screen is limited to 255 chars. But, you can store as many chars as of length of domain at runtime / in data base.

    You can go for an alternative approach as its the limit in screens. I suggest customize the SM30 program and via popup window which has table control to acceptl the 1000 chars.

    By looping over entries in popup window you can save lines to the data base by concatenating it.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 04, 2014 at 05:06 AM

    Hi,

    1. Create Text Object Using SE75.

    2. Create Text ID Using SE75.

    3. Now you have to Save the text with FM SAVE_TEX

    This type of text should be treated as Long Text

    To re-transfer texts from the internal work areas to the text file, use the function module SAVE_TEXT.

    The application program does not know whether the text is new or a changed version of an existing text. To be able to find this out, the program must read the text file first.

    If a text exists, the transferred text lines overwrite the old version. If it does not exist, the system creates it. If you know from the beginning that the text is new, you can suppress this read process using the parameter INSERT and thus improve performance.

    Add comment
    10|10000 characters needed characters exceeded