I am creating a script imbedded in Excel to add contacts in transaction XD02 (Change Customer). The contact tab does not have an add icon so how would I find the next available row? I have tried the following statement in an attempt to get the value of the contact but it fails:
'Contact Tab if the first entry contains data then check the next and so on until a blank contact name is present
session.FindById("wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB07").Select
ReturnValue = session.FindById("wnd[0]/usr/subSUBTAB:SAPLATAB:0100/tabsTABSTRIP100/tabpTAB07/ssubSUBSC:SAPLATAB:0201/subAREA1:SAPMF02D:7360/tblSAPMF02DTCTRL_ANSPRECHPARTNER/txtKNVK-NAME1[1,0]").getCellValue(1, 0)