I have the sap parameter as below and would like to input the data into the SAP from the excel file as per second screenshot.
As the company code is the same throughout the excel file, i just need to key in one time as per screenshot below
However, when come to reference, i have multiple line which i need to key in all in other pop out screen as per sreenshot below
Hence, i would like to ask how do we design the workflow so that when read the company code from excel file, it will read one time and input the data into SAP. But when come to reference detail, it will read all the line and input it into the SAP.
Hii @SH_94 ,
You could try with For Each Loop
1)Try To Read Excel File as Data table
2)Then using for each Row in Data table
Perform the sap activities in it
Many thanks for the prompt response. Kindly find the attached excel file below for your reference.
For company code, since it is the same throughout the excel file, i plan to automate by keying one time ( not need to use multiple input option). While for reference, i have multiple line and would need to key in data using multiple input option .
use write to text file activity
under text write the following String.join(Environment.NewLine, dt.asEnumerable.Select(function(x) x.field(of string)("Reference")).ToList)
this will write the following to text file
then use the method i mentioned above to upload the text file to sap
Many thanks for the prompt response. May i know how to link this concept with another process - key in data in SAP for company code - one time key in only.