Calling SAP BAPI “BAPI_INCOMINGINVOICE_CREATE1” using Invoke SAP BAPI,
i have built a Datatable with necessary values in a DataRow, passing the DataRow as input to the BAPI Call. Checking if the DataRow is null before invoking the SAP BAPI , but getting an error message as object reference set to null. Request any inputs on the same.
Referred the following link to generate data for the SAP BAPI in a similar manner.
Error is as given below.