cancel
Showing results for 
Search instead for 
Did you mean: 

Can we store more than 255 char in a field in C4C?

JayantSaini
Active Participant
0 Kudos

Hi All,

We have a requirement in which we need to save more than 255 char in a field but I am unable to find any data type which can store more than 255 char. Is there any way by which we can achieve this?

Regards

Jay

Accepted Solutions (1)

Accepted Solutions (1)

JayantSaini
Active Participant
0 Kudos

Hi All,

Thanks for your helpful answers. I am able to solve the issue using textcollection dependable object.

Thanks

Jayant

Answers (3)

Answers (3)

former_member207719
Participant
HorstSchaude
Product and Topic Expert
Product and Topic Expert

Hello Jayant,

To make it short:

  • If you are in a SAP BO and are using the data type "Text": It is possible 🙂
    (as you also can read in the second link from above)

HTH,
. Horst

0 Kudos

Do store more than 255 Characters, the element should be defined as FormattedText in the first place.

For Example,

[Label ("Field")]element ZField1:FormattedText;

After Declaring the element, bind it in the UI Component, and if you want to restrict it to say, 1000 words, then in the UI designer, restrict the field length.

PrasanthArya
Advisor
Advisor
0 Kudos

As of my understanding , I don't think there is a possibility to achieve this requirement on the Standard Business Objects.

Custom BOs only you can use “LANGUAGEINDEPENDENT_ENCRYPTED_EXTENDED_Name” which will have the length of 765 chars(more than regular 255) on the data base. Note that it will not work in XBOs.

JayantSaini
Active Participant
0 Kudos

Hi Prasanth,

Thanks for your answer. I have to implement this on a custom BO. Is there any data type with max length of more about 1500 char?

Thanks

Jay

PrasanthArya
Advisor
Advisor
0 Kudos

In Reference To an update posted by thomas.schneider

For BO extension, the Text or LANGUAGEINDEPENDENT_EXTENDED_Text datatype is not restricted in length