![]() '-Print SAP table content to HTML table-ĭocument.createTextNode(Table. ReadTableFunc.Tables("FIELDS").Rows.RemoveAll ReadTableFunc.Tables("OPTIONS").Rows.RemoveAll '-Sort array with field names (BubbleSort). ReadTableFunc.Tables("DATA").Rows.RemoveAll Set Param = ReadTableFunc.Tables("FIELDS").Rows.Add Param("TEXT") = "TABNAME = '" & TableName & "'" Set Param = ReadTableFunc.Tables("OPTIONS").Rows.Add Set Param = ReadTableFunc.Exports("QUERY_TABLE") '-Get header line informations from the SAP table. Set Param = ReadTableFunc.Exports("DELIMITER") Set Tabelle = Document.getElementById("Tabelle") Set ReadTableFunc = SAPFunc.Add("RFC_READ_TABLE") SAPConnection = Connection.Logon(0, vbTrue) '-Set connection parameters-Ĭonnection.Client = CStr()Ĭonnection.User = CStr()Ĭonnection.Password = CStr()Ĭonnection.System = CStr()Ĭonnection.HostName = CStr()ĬStr() Set SAPFunc = CreateObject("SAP.Functions") '-Variables-ĭim SAPFunc, Connection, SAPConnection, ReadTableFuncĭim Param, Table, RowCount, i, j, DataLine, Node, tmpĭim Tabelle, TableName, tr, td, arrDataLine, arrFields So you can view any SAP table content as HTML table.Ĭonnect a SAP system and view table content There is only the connection parameters, an input field for a SAP table name and a button to view the SAP table content in the HTML table. ![]() In the following source I create an easy GUI. Inside the HTML there is a VBScript functionality necessary, which gets the data from the SAP system and uses the Document Object Model (DOM). It is possible to build a HTML GUI and use it with data from a SAP system. how about trying one option under application.In VB6, that was an easy thing to do, thanks to the dialog here: Binding a Control to a Data Source. Most things work, however, I need to implement property data binding for it. ![]() See Global Unlock Sample for sample code. HTML application – but only with Microsoft Internet Explorer. Ive re-developed a ActiveX control in C (basically a drop-in replacement for a age-old VB6 control). Dim fso, outFile Set fso CreateObject ('Scripting.FileSystemObject') Set outFile fso.CreateTextFile ('output.txt', True) This requires the Chilkat API to have been previously unlocked. You can use these ActiveX controls easily inside Visual Basic Script and therefore inside of a HTML file resp. ![]() #VBSCRIPT GET ACTIVEX PROPERTY WINDOWS#With the installation of SAP GUI for Windows on the presentation server you get also some ActiveX controls to connect and to communicate with a SAP system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |