I’m trying to use the “Execute BAPI” activity in UiPath to create sales order items in SAP GUI. I’m testing with the BAPI “BAPI_SALESORDER_CREATEFROMDAT2”.
For the ORDER_PARTNERS field, I attempted to insert the following code:
New bapis_sub_execute_TABLES_sub_ORDER_PARTNERS_Create With {
.PARTN_ROLE = “AG”,
.PARTN_NUMB = “12345”
}
However, I encountered the error:
“Unable to cast object of type ‘Microsoft.CodeAnalysis.VisualBasic.BoundLiteral’ to type ‘Microsoft.CodeAnalysis.VisualBasic.BoundAssignmentOperator’.”
Are there any syntax errors, or is there a better way to configure the ORDER_PARTNERS field? Could anyone guide me on how to resolve this issue?