Code: Alles auswählen.
Set SMDTabObj = SMDFunc.Tables("SUB_HEADER")
SMDTabObj.freetable
For i = 0 To 9
SMDTabObj.appendrow
SMDTabObj.cell(i + 1, "FUNCTION") = "jdsjfj"
SMDTabObj.cell(i + 1, "LOGLOCKMOD") = "fhdsdfjk"
SMDTabObj.cell(i + 1, "IEXTINFO") = "fkskfhsjkdh"
Next i
Code: Alles auswählen.
For i = 1 To 10
SMDTabObj.appendrow
SMDTabObj.cell(1, "FUNCTION") = "jdsjfj"
SMDTabObj.cell(1, "LOGLOCKMOD") = "fhdsdfjk"
SMDTabObj.cell(1, "IEXTINFO") = "fkskfhsjkdh"
Next i
Code: Alles auswählen.
For i = 1 To 10
SMDTabObj.appendrow
SMDTabObj.cell(1, 1) = "jdsjfj"
SMDTabObj.cell(1, 2) = "fhdsdfjk"
SMDTabObj.cell(1, 3) = "fkskfhsjkdh"
Next i
Code: Alles auswählen.
Dim SAPBAPIControl1 As Object
Set SAPBAPIControl1 = CreateObject("SAP.BAPI.1")
If Not SAPBAPIControl1.Connection.Logon(0, False) Then
MsgBox "Login failed"
Exit Sub
End If
Dim oMat As Object
Set oMat = SAPBAPIControl1.GetSAPObject("BUS1077")
Dim oRangeSubNr As Object
Set oRangeSubNr = SAPBAPIControl1.DimAs(oMat, "GETDETAIL", "SUB_HEADER")