cancel
Showing results for 
Search instead for 
Did you mean: 

Custom BO - textfields / length - LanguageIndependant_Extended_Text - max 255

former_member226070
Participant
0 Kudos

Hi  experts,

In our custom BO we have the requirement to use some text fields beside the input fields - but as far we can see this is now limited until 255 characters - by using the element    -  LanguageIndependant_Extended_Text   - is the only solution to use the reusable  Text_collection  object.

see -    https://scn.sap.com/thread/3403512 or  https://scn.sap.com/thread/3404546

Accepted Solutions (1)

Accepted Solutions (1)

sunil1101
Advisor
Advisor
0 Kudos

Hi Jeroen,

Yes you can use data type "LANGUAGEINDEPENDENT_EXTENDED_Text, in custom BO also.

Go and use it.

Regards

Sunil

former_member226070
Participant
0 Kudos

Yes - that's what I have done  - but is limited to only 255 characters => customer wants more...

sunil1101
Advisor
Advisor
0 Kudos

Read my another reply below.

you can use [DependentObject(TextCollection)]node ItemTextCollection; in Bo defenition and then bind the field to ItemTextCollection->Text->TextContent-Text and it accepts unrestricted length

Regard

Sunil

former_member226070
Participant
0 Kudos

Hi - Is it possible to have more that one DependentObject (Text Collection) on one BO.

We have for example 10 Text fields which we want to fille more as 200 characters must be possible.

Do need than 10 nodes - and every node has its own  Dependent Text Object etc.

Regards,

Jeroen

former_member186648
Active Contributor
0 Kudos

Hi Jeroen,

You can have only one DependentObject association in a node.
So you could create multiple nodes.

Thanks, Pradeep.

former_member226070
Participant
0 Kudos

Thanks - works great and simple

former_member226070
Participant
0 Kudos

Hi Pradeep,

In our solution we experience now worse performance - because most likely due through creating 15 nodes with this TextCollection object (which good - no problem with that).

Do you have got similar experience ? - Because this very annoying - for the users.

I would i appeciate an answer.

Regard,

Jeroen

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Jeroen,

with this annotation

     [DependentObject(TextCollection)] [MultipleTexts] node MyTexts;

you can have more than one line per single TextCollection (see docu at section 7.2.2.15).

HTH,

   Horst

former_member226070
Participant
0 Kudos

Hello Horst,

Thanks - works indeed fine - but we experience slower performance is that "normal" - maybe through bigger component ?

Regards Jeroen

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Jeroen,

Do you know that you can "trace" the used time?

Trace.Runtime("some text to identifiy the place where the measurement was taken");

HTH,

   Horst

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Jeoren,

For text with unrestricted length, the only field provided is the Dependent Object TextCollection. For all other data types is, due to the SQL interface, restricted to 255 characters maximum.

But for Custom BOs 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.

Thanks,

Dhanya

sunil1101
Advisor
Advisor
0 Kudos

Hi

I just checked and found you can not use LANGUAGEINDEPENDENT_EXTENDED_Text, it gives the error

but you can use [DependentObject(TextCollection)] node ItemTextCollection;

I have bind the field ItemTextCollection->Text->TextContent-Text and it accepts unrestricted length

Regards

Sunil

preethi_santhanam
Participant
0 Kudos

Hi Jeoren,

I don't know the exact scenario you are working on, but can suggest another workaround.

If you create two extension fields as LANGUAGEINDEPENDENT_EXTENDED_Text data type and use these fields in custom Embedded component, changing the display type under properties to TextEdit, you should be able to achieve the desired results.

Best Regards,

Preethi Santhanam

former_member186648
Active Contributor
0 Kudos

Hi,

Please check http://scn.sap.com/message/16651860#16651860 Thanks, Pradeep.