How to iterate through a DataRow got from Invoking SAP BAPI for invoices

Trying to iterate through a DataRow output got from invoking a SAP BAPI

Getting an error on implicit conversion from DataRow to IEnumerable as given below, Is there any documentation on SAP Uipath.SAP.BAPI Activites ver 2.2.1 , as to how to pass datatable and retrieve in a BAPI call.

Any inputs on this will be helpful.

Hi
if it’s a datatable we need to pass that as input to FOR EACH ROW activity
may the process we are trying automate here
@mailsmithash

Its a DataRow that is being returned from the SAP BAPI call

So if we want to get the value of datarow then mention like this in FOR EACH activity
row.ItemArray So that it will get converted to array of elements

Cheers @mailsmithash

1 Like

Thanks much its working now. Are there any examples or doucmentation on this SAP BAPI activites package for passing Datarows and Datatables into the SAP BAPI call.

1 Like

Awesome
I hope we don’t have any such buddy
May be in future release
Cheers @mailsmithash

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