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

      9 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 Chandrasekar Balan
      Chandrasekar Balan

      Found the Solution.

      Author's profile photo Stephan Zacharias
      Stephan Zacharias

      Great, what is the solution? 🙂 I have the same situation and the typecode value is rejected.

      Author's profile photo Stephan Zacharias
      Stephan Zacharias

      Ok, now I found it as well. I will share how it works in that case.

      You will need an event handler that is fired when the Inport of the screen is activated. In that handler first make sure that a BOOperation of type Create is triggered and afterwards a DataOperation that assigns 10001 or 10002 to the TypeCode of the text. I think setting the Initial Value just does not work because the BO has not been initiated when the initial value is set.

      Hope this will help someone else if you come along with this issue.

      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

      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta

      Hi How can i add multiple text with text history on custom BO?