Skip to Content
Author's profile photo Jerry Wang

Step by step to enable Text Collection for your custom BO

My series of Cloud Application Studio Blogs

1. Declare TextCollection as a dependent object of your custom BO:
2. Add the following UI component to TI view:
/SAP_BYD_APPLICATION_UI/Reuse/Notes/singletextedit.EC.uicomponent;
And Choose 10006 as text type:
Click Bind button and maintain the following binding:
In the runtime now, you could maintain the text for custom BO:
Create a web service and select TextCollection as enabled for Read Operation:
In the generated WSDL file, check the response structure to ensure that the corresponding element for TextCollection also exists there.
Now consume the read operation of created web service via SoapUI, and the text content maintained in BO header level could also be returned:

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sampath Kumar Narayanan
      Sampath Kumar Narayanan

       

      Hi Jerry,

       

      Thanks for sharing information in this wonderful blog! I tried to expose the TextCollection field in custom BO's Webservice - but it is neither appearing QueryByElements or Read Operations and could not find the same in WSDL.

       

      I have posted my query here -

      https://answers.sap.com/questions/424714/exposing-textcollection-field-in-webservice-wsdl-p.html

      Would be of help if you can point in the right direction or answer this query please.

      Appreciate your help and early response.

      Thanks and Kind Regards

      Sampath Kumar N

      Author's profile photo Sampath Kumar Narayanan
      Sampath Kumar Narayanan

       

      Hi Jerry,

       

      Can you please confirm for my query above regarding TextCollection and exposing in WebServices?

       

      Thanks

      Sampath

      Author's profile photo Jerry Wang
      Jerry Wang
      Blog Post Author

      Hi Sampath,

      I have replied to your question. As far as I know it is not possible to include TextCollection into web service response structure, but it is feasible to use OData service instead.

      Please check my another blog: Expose TextCollection data belonging to a Custom BO via OData service

      Best regards,

      Jerry

       

      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      Hi Jerry,

      I want to use standard Notes in my custom EC which is bound to standard Opportunity - items.

      I did the binding same as standrd see below..

      Is this a wrong approach?

       

      Regards, Dhruvin

      Author's profile photo Raymond Nathan
      Raymond Nathan

      Hi Jerry, is there anyway to detect changes like an after modify or before save script on the text collection node?

      Thanks