Add new input into Data Table with for each row

Hello all,

i have the following process:

I have a Data Table which looks like this

Number l Quantity l Place

Only the column number is filled.QUantity and Place is empty. With the number I go into SAP and Extract the quantity and the place. So for each row that I do that with I want to add this data into the data table into the rows i got the number from.

Do you have any suggestions?

Hi @VLC

You could use For Each data row, then perform the necessary extraction and then use assign:

currentRow("Quantity") = yourValue
currentRow("Place") = yourValue

Example:

INPUT:

Workflow:

I ran it for one iteration, As you can see in the Immediate Panel, the data is added to the row.

If this solves your query, Do mark it as a solution
Happy Automation :star_struck:

1 Like

Without knowing all the details of your process, it sounds like you’re approaching it backwards. Why wouldn’t you just start with an empty datatable, and populate it with Add Data Row as you loop through the data from SAP or use Table Extraction?

1 Like

Hi Paul,

I extract the Number column from a diffrent SAP transaction and then use those numbers to get more data in another SAP transaction.

Otherwise I agree loping through it would be th ebest option

1 Like

Hey @VLC

Did you try my solution?

Works like a charm :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.