Micro Focus QTP (UFT) Forums
Automating SAP Sales Order - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Automating SAP Sales Order (/Thread-Automating-SAP-Sales-Order)



Automating SAP Sales Order - Dwarak Calayampundi - 06-09-2016

I am trying to automate a SAP sales order with multiple line items I am using input method to populate the SAPGuiTable from the local datatable. 

The code I am using:

line 24 SAPGuiSession("Session").SAPGuiWindow("Create Standard Order:").SAPGuiTable("All items").Input ("Action1.All items")

Line 25 SAPGuiSession("Session").SAPGuiWindow("Create Standard Order:").SendKey ENTER

I can see that all the required fields are populated and then an error is generated 

The statement contains one or more invalid function arguments.

It is indicating that the error is in line 24 I cannot see why there should be an error There is another test case I just ran with similar code and it does not give me any error for the same object....