SAP-Daten per HTML anzeigen

Ähnliche Dokumente
Der Beginn einer wunderbaren Freundschaft von Stefan Schnell

NEWSLETTER. FileDirector Version 2.5 Novelties. Filing system designer. Filing system in WinClient

Ablauf Unit2. Walkthrough

Internet-Technologien

Tube Analyzer LogViewer 2.3

Löschen eines erkannten aber noch nicht konfigurierten Laufwerks

Java Tools JDK. IDEs. Downloads. Eclipse. IntelliJ. NetBeans. Java SE 8 Java SE 8 Documentation

Entwicklung einer Suchmaschine mit dem Internet Information Server

Tricktresor. von Stefan Schnell. Vorgeplänkel. Nachgeplänkel. Jetzt wird geschrieben. Aktivierung des ALV-Grid. Tabellen lesen mit SAP GUI Scripting

Word-CRM-Upload-Button. User manual

Datenbankablage für ArchiveLink einrichten

Standardtext ins PDF-Format konvertieren

p^db=`oj===pìééçêíáåñçêã~íáçå=

ColdFusion 8 PDF-Integration

Fakultät für Informatik & Wirtschaftsinformatik DB & IS II SS 2015 PHP MVC. Dr. Christian Senger. PHP MVC 1 von 21

Wegleitung Installation, Einstellung und Nutzung der Trader Workstation und dem NinjaTrader für PC

php Hier soll ein Überblick über das Erstellen von php Programmen gegeben werden. Inhaltsverzeichnis 1.Überblick Parameterübergabe...

Tipps & Tricks. Eine Standardfunktionalität ist das Erstellen von Grafischen Basisobjekten auf dem Patran Viewport.

Ablauf. Wichtige Termine. Vertiefendes Übungsprojekt - SQL II

WIE KANN ICH ACCESS XML FÄHIGKEITEN UNABHÄNGIG VON DER VERSION BEIBRINGEN?

Übungen. DI (FH) Levent Öztürk

"Die HTML-PHP-Schnittstelle -- Ein- und Ausgabe der Daten"

Brandbook. How to use our logo, our icon and the QR-Codes Wie verwendet Sie unser Logo, Icon und die QR-Codes. Version 1.0.1

V by WBR1/BFH-TI 2011 by MOU2/BFH-TI

Ingenics Project Portal

How to use the large-capacity computer Lilli? IMPORTANT: Access only on JKU Campus!! Using Windows:

Cameraserver mini. commissioning. Ihre Vision ist unsere Aufgabe

WAGO-WebVisu-App 1/5. Android Bedienungsanleitung. Android User Instruction

Scripting für Kommunikationswissenschaftler Gruppe C

Moderne Anwendungen und relationale Datenbanken? Natürlich!

1. Java installieren 2. Java Applets für graf.eit.h-da.de im Java Control Panel freigeben 3. Starten der Java Applets im Webbrowser

NVR Mobile Viewer for iphone/ipad/ipod Touch

ASP: Active Server Pages

MySQL Queries on "Nmap Results"

Effizienz im Vor-Ort-Service

Die in diesem Fall als Template verwendete Excel-Datei muss mithilfe der Transaktion OAER in das Business Objects Repository geladen werden!

Bisherige Erfahrungen mit Eclipse auf NonStop. programmer retire? Hans-Fried Kirschbaum CommitWork GmbH 12/22/2010 1

PHP Schulung Beginner. Newthinking Store GmbH Manuel Blechschmidt

hotelanfrage_sample <td align = "center"> <select name=dy0 size=1 class="smalltext"> <option selected value="0"><< kein Erwachsener

Installation und Einrichtung unter Windows 7/8/10. Installation and configuration for Windows 7/8/10

The rear panel includes the following connectors: Time Code zero value, additional failure Signal(s), etc. RUBIDIUM H1 XT module front view

XML Eine Einführung. XML-Dokumente Im Internet Darstellen. XML (C) J.M.Joller 1

Ändern der Schriftgröße für den Monitorexport

PHP JavaScript Kapitel 9. Java-Script-Objekte und das Event-Modell

Der Inhalt dieses Foliensatzes ist nicht klausurrelevent!!! - aber trotzdem interessant ;-)

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL USER GUIDE June 2016

Forefront TMG Scripting mit VBScript und Powershell

Top Tipp. Ref DE. Verwenden externer Dateiinhalte in Disclaimern. (sowie: Verwenden von Images in RTF Disclaimern)

Can I use an older device with a new GSD file? It is always the best to use the latest GSD file since this is downward compatible to older versions.

Benutzerhandbuch pdfprint für Magento2

!! Um!in!ADITION!ein!HTML51Werbemittel!anzulegen,!erstellen!Sie!zunächst!ein!neues! Werbemittel!des!Typs!RichMedia.!!!!!!

MySQL 101 Wie man einen MySQL-Server am besten absichert

Inhalt HTML 2. Applets Frames Formulare CSS cascading style sheets. Lehrveranstaltung Internet in AT Dr.-Ing. A. Braune TECHNISCHE UNIVERSITÄT DRESDEN

microkontrol/kontrol49 System Firmware Update

PDF. PDF-Generierung aktivieren. Methode zum Erzeugen der PDFs. PDF-Format. Seitengröße. Anzunehmende Browserbreite

TimeMachine. Installation und Konfiguration. Version 1.4. Stand Dokument: install.odt. Berger EDV Service Tulbeckstr.

USER MANUAL pdfprint for Magento 2

Whitepaper. Produkt: combit Relationship Manager. Datensatzhistorie mit dem SQL Server 2000 und combit GmbH Untere Laube Konstanz

BXE 2.0 The browser based Wysiwyg XML Editor

#Neuaufbau des Scripts mit neuen Ideen, cbu Dramatische Beschleunigung erreicht! # // Set Variable [ $pk_proj; Value:_SP(1) ] #

Ruhr.pm Das Catalyst MVC-Framework Autor: Datum:


Installation MySQL Replikationsserver

JavaScript. - mailto: hush.com danke Erik und Andi

p^db=`oj===pìééçêíáåñçêã~íáçå=

Parameter-Updatesoftware PF-12 Plus

Anleitung zur Schnellinstallation TFM-560X YO.13

Das folgende Script von Jason Fossen (MVP ISA), schaltet per Script einzelne Firewallregeln an oder aus.

Access und die andern (Office) Programme. Armin Hess

Saim Sert & Mukayıl Kılıç

Hackerpraktikum SS 202

Titelbild1 ANSYS. Customer Portal LogIn

VGM. VGM information. HAMBURG SÜD VGM WEB PORTAL - USER GUIDE June 2016

APEX Datenverwaltung Wo sind die Daten gerade? Dr. Gudrun Pabst

CA_MESSAGES_ORS_HDTV_IRD_GUIDELINE

Schiller-Gymnasium Hof

Invitation - Benutzerhandbuch. User Manual. User Manual. I. Deutsch Produktübersicht Beschreibung... 2

How-To-Do. Hardware Configuration of the CC03 via SIMATIC Manager from Siemens

Internetanbindung von Datenbanken

Persönliche Erfahrungen mit dem neuen NetWorker 7.2 Client für NetWare

Archive / Backup System für OpenVMS

1. Auswählen der mit Blattschutz versehenen Datei

Microsoft Azure Fundamentals MOC 10979

Guidance Notes for the eservice 'Marketing Authorisation & Lifecycle Management of Medicines' Contents

Die Dokumentation kann auf einem angeschlossenen Sartorius Messwertdrucker erfolgen.

Übung 3: VHDL Darstellungen (Blockdiagramme)

CA_MESSAGES_ORS_HDTV_IRD_GUIDELINE

ECM (Emeris Communication Manager) Liste der Programm Änderungen

How-To-Do. OPC-Server with MPI and ISO over TCP/IP Communication. Content. How-To-Do OPC-Server with MPI- und ISO over TCP/IP Communication

1.1 IPSec - Sporadische Panic

Flexibler Einsatz von VBA-Code und Access-Elementen durch Kapselung und modularer Programmierung (Josef Pötzl,

Hier folgt eine kurze Aufstellung über die verwendete Architekur. Die Angaben sind ohne Gewähr für Vollständigkeit oder vollständige Richtigkeit.

OLConnector Programmierung

a.sign Client Lotus Notes Konfiguration

Open Source Virtualisierung mit ovirt. DI (FH) René Koch

2 Produkt- und Supportübersicht für DB Zusatzprogramme für DB Technische Unterstützung für DB2 UDB... 20

Transkript:

SAP-Daten per HTML anzeigen Oftmals besteht die Notwendigkeit einfach nur bestimmte Daten eines SAP-Systems anzuzeigen. Die Installation des SAPGUI für Windows, mit mehreren hundert Megabytes, scheint dafür etwas überdimensioniert zu sein. So bieten sich die SAP Konnektoren NCo (dotnet) und JCo (Java) als schlanke Alternativen. Daneben existiert aber auch noch die Möglichkeit mit den SAP ActiveX Steuerelementen auf ein SAP-System zuzugreifen und solche Informationen aus Tabellen in Erfahrung zu bringen. In diesem Beitrag soll eine derartige Implementierung gezeigt werden. Hier ist das PDF-Dokument zum Download TIPP: Speichern Sie die HTML-Datei mit der Endung.hta ab. Dadurch umgehen Sie die eventuell eingestellten Sicherheitseinstellungen des Internet Explorers wo vielleicht keine ActiveX- Komponenten ausgeführt werden dürfen. Wichtiger Hinweis: Der hier vorgestellt Tipp hat aktuell historischen Charakter, da der IE mit der Edge-Engine kein VBScript mehr unterstützt und da die klassische RFC-Bibliothek, die die SAP ActiveX-Bibliotheken nutzen, ab dem 31.03.2016 keinem Support mehr unterliegen. Coding Download Hier ist die aktuelle HTML-Datei als ZIP-Download. Coding HTML <! Begin This HTML and VBScript source shows how to connect a SAP system via SAP ActiveX control libraries, to read data from a SAP table and to view this data in a HTML table, with header line. Author: Stefan Schnell Version: 0.80 > <html> <head> <title> Connect a SAP system and view table content </title> <hta:application applicationname= ReadSAPTable id= ReadSAPTable version= 1.0 /> <! To encode your source, use the Script Encoder screnc.exe > <script language= VBScript.Encode > Directives

Option Explicit Function Connect Connects a SAP system Function Connect(ByVal SAPFunc, ByRef Connection) Get SAP.LogonControl connection Set Connection = SAPFunc.Connection() If Not IsObject(Connection) Then MsgBox No SAP.Connection instance, vbokonly, Error Connect = vbfalse Exit Function Set connection parameters Connection.Client = CStr(Document.eingabe.Client.Value) Connection.User = CStr(Document.eingabe.User.Value) Connection.Password = CStr(Document.eingabe.Password.Value) Connection.Language = DE Connection.System = CStr(Document.eingabe.System.Value) Connection.HostName = CStr(Document.eingabe.HostName.Value) Connection.SystemNumber = _ CStr(Document.eingabe.SystemNumber.Value) Connect SAP system Connect = Connection.Logon(0, vbtrue) End Function Sub GetData Gets the content of a SAP table Sub GetData() Variables Dim SAPFunc, Connection, ReadTableFunc, Param, Table, Fields Dim RowCount, i, j, DataLine, Node, HTMLTable, SAPTableName Dim tr, td, arrdataline Get the name of the table SAPTableName = CStr(Document.eingabe.SAPTableName.Value) If Trim(SAPTableName) = Then MsgBox No SAP table name specify, vbokonly, Error Exit Sub Get SAP.Functions -

If it is not possible to create SAP.Functions instance, Microsoft(c) Internet Explorer(c) creates an error - Set SAPFunc = CreateObject( SAP.Functions ) If Not IsObject(SAPFunc) Then Exit Sub If Connect(SAPFunc, Connection) = vbtrue Then Get function module RFC_READ_TABLE Set ReadTableFunc = SAPFunc.Add( RFC_READ_TABLE ) If IsObject(ReadTableFunc) Then Clear HTML table - Set HTMLTable = Document.getElementById( Tabelle ) j = HTMLTable.childNodes.length If j > 0 Then For i = 1 To j Set Node = HTMLTable.lastChild HTMLTable.removeChild(Node) Set Node = Nothing Define export parameter DELIMITER to ~ Set Param = ReadTableFunc.Exports( DELIMITER ) Param.Value = ~ Get SAP table data Define export parameter QUERY_TABLE - Set Param = ReadTableFunc.Exports( QUERY_TABLE ) Param.Value = SAPTableName Delete entries - ReadTableFunc.Tables( OPTIONS ).Rows.RemoveAll ReadTableFunc.Tables( FIELDS ).Rows.RemoveAll Read table If ReadTableFunc.Call() = vbtrue Then Set Table = ReadTableFunc.Tables( DATA ) Set Fields = ReadTableFunc.Tables( FIELDS ) If IsObject(Table) And IsObject(Fields) Then RowCount = Fields.RowCount() Print head line Set tr = HTMLTable.insertRow(0) For i = 1 To RowCount Set td = tr.insertcell() td.innertext = Fields.Value(i, FIELDNAME ) RowCount = Table.RowCount()

Print SAP table content to HTML table If RowCount > 0 Then For i = 1 To RowCount Set DataLine = _ Document.createTextNode(Table.Value(i, WA )) arrdataline = Split(DataLine.data, ~ ) Set tr = HTMLTable.insertRow(i) For j = 0 To UBound(arrDataLine) Set td = tr.insertcell() If Trim(arrDataLine(j)) = Then td.innerhtml = td.innertext = arrdataline(j) Set td = Nothing Set tr = Nothing MsgBox No data, vbokonly, Information Set Table = Nothing MsgBox No SAP table instance, vbokonly, Error MsgBox RFC_READ_TABLE & SAPTableName & _ not successful, vbokonly, Error Set HTMLTable = Nothing Set ReadTableFunc = Nothing MsgBox No RFC_READ_TABLE instance, vbokonly, Fehler Logoff - Connection.Logoff() MsgBox No connection to SAP system, vbokonly, Error End Sub </script> </head> <! GUI - >

<body> <h2 style= font-family:arial; > Connect a SAP system and view table content </h2> <form name= eingabe style= font-family:arial; > <! Client (Mandant) > Client: <input type= text name= Client size= 3 value= 000 > <! User (Benutzer) > User: <input type= text name= User size= 15 value= BCUSER > <! Password > Password: <input type= password name= Password size= 25 value= minisap > <br /> <! System (SID) > System: <input type= text name= System size= 3 value= NSP > <! Hostname > Hostname: <input type= text name= HostName size= 25 value= 192.168.28.139 > <! Systemnumber > Systemnumber: <input type= text name= SystemNumber size= 2 value= 00 > <br /><br /> <! SAPTablename > Table name: <input type= text name= SAPTableName size= 30 > <! Button to view the table > <input type= button value= GetData onclick= GetData() > </form> <table id= Tabelle border= 1 > </table> </body> </html> <! End >