Skip to Content

Loop over complex table to populate a collection

Hi expert,

I need to loop over a CT and populate a collection with objects filled with the information take from the records of the complex table.


How I can do this?

Thanks in advance.

Emanuele

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 06, 2016 at 05:25 PM

    Your question is essentially your answer. You will need to create a looping action to loop over the CT and call a sub-action that will in turn call an add transaction to populate a collection.

    What product is this related to? Work Manager?

    Work Manager does this to populate the Equipment and Functional Location search results and you can look at those definitions as an example.

    --Bill

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 09, 2016 at 11:25 PM

    To illustrate what Bill says, attached are a couple of screenshots showing an example of looping in Work Manager code. You can click on the links to the two .png files at the bottom to enlarge them for easy viewing.

    Hope this information helps.

    Raymond Kwong

    SAP Product Support

    Add comment
    10|10000 characters needed characters exceeded