Skip to Content
avatar image
Former Member

How to add object instances from the collection into a string field separated by comma ?

I have a detail screen with a drop down selection for the names , an add button to retrieve the selected name from the drop down list and display it in a string field . I have added a add transaction to the add button where the selected names are being added into an separate collection and then making them to display it on the string field separated by comma. Problem i am facing is that ,i am able to display first object and last object instance of the collection in the string but not the others . I have used update rule in the string field property to accomplish this .

pom2.jpg (243.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 13, 2017 at 03:48 PM

    You will want to have a subaction that loops over your selected customers collection after you add the currently selected entry to the collection. This subaction will process each entry in the collection and add them to a temporary string field on the main object. The field on the screen will simply point to the temporary string field that contains the concatenated values.

    Another option would be to initially populate the temp field as an empty string when you open the screen. Then every time you add it to the selected customers collection you call a second transaction to append the selected customer to the end of the temp string which the screen is displaying.


    Add comment
    10|10000 characters needed characters exceeded

    • Not quite sure I follow where / why there is an update rule running. There isn't really a way to select the second to last object easily unless you know the id already.

      I would go with rebuilding the full list on delete to make it easy on yourself.


  • Jan 13, 2017 at 03:37 PM

    Hi Kushal,

    Since you wanted to use selected name from the Customer's screen for the Concatenation, did you try using the current Customer screen's selected name property.


    Chung Yu

    SAP Senior Support Engineer

    Add comment
    10|10000 characters needed characters exceeded