cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a domain element which supports 1000 character

Former Member
0 Kudos

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.


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Ramakrishnappa,

I have tried using module pool but I was not able to do it. can u share any example with steps it would be helpful.

Former Member
0 Kudos

Hi,

Refer this thread . Hope this might help you.

Thanks

KH