I am using SAP function "BAPI_ALM_ORDERHEAD_GET_LIST" to retrieve order number 12345. I would like to change the date by moving it to January 01 2015. I can't find the documentation on how to change a field I pulled in with SAP RFC. I can get the order from SAP with the code but I dont know how to change the date. Here is my code:
objRfcFunc = doLogin() With objRfcFunc.Tables("IT_RANGES") Dim arrStr(,) As String = {{"OPTIONS_FOR_ORDERID", "12345"}, _ {"SHOW_OPEN_DOCUMENTS", "X"}, _ {"SHOW_DOCUMENTS_IN_PROCESS", "X"}, _ {"SHOW_COMPLETED_DOCUMENTS", "X"}, _ {"SHOW_HISTORICAL_DOCUMENTS", "X"}, _ {"SHOW_DOCS_WITH_FROM_DATE", "00010101"}, _ {"SHOW_DOCS_WITH_TO_DATE", "99991231"}} For i = 0 To (arrStr.Length / arrStr.Rank) - 1 If .RowCount < i + 1 Then .Rows.Add() .cell(i + 1, 1) = arrStr(i, 0) .cell(i + 1, 2) = "I" .cell(i + 1, 3) = "EQ" .cell(i + 1, 4) = arrStr(i, 1) Next End With If objRfcFunc.Call = False Then MsgBox("Error occured - " & objRfcFunc.Exception) Exit Sub End If 'How do I change date here?