BASIC Guide to Connect SAP®

Total Page:16

File Type:pdf, Size:1020Kb

BASIC Guide to Connect SAP® Stefan Schnell BASIC Guide to Connect SAP® Practical Guide to Use SAP® Systems with Different BASIC Languages 10 Table of Contents 9 Prologue 12 Introduction 14 Preparations SAP® OCX Moduls 14 Unicode 15 15 Viewing Inside COM Modules 17 Creating COM Documentations 18 SAP® NetWeaver® RFC SDK 18 Language Independent Message Viewing 18 Viewing Relationships 19 Summary 20 Autolt 20 Using SAP® via OCX Moduls The First Connection 20 23 That Ping Thing Tell Me More About Yourself 24 24 Importing - Exporting Confusion 26 Show Me Things From Inside Show Me More 27 33 Using Autolt via ActiveX Keyboard Control 33 Mouse Control 36 Window and Process Management 38 Summary 39 PowerBASIC 40 40 Using SAP® via OCX Moduls The First Connection 40 That Ping Thing 42 Tell Me More About Yourself 43 Show Me Things From Inside 44 Using PowerBASIC via COM Libraries 45 A Simple Beep 45 This is the Sound of Music 47 Using Your Own GUI 50 55 Changing Parameters of a Function Module Performance aspects of using COM inside ABAP® 57 Summary 60 PureBasic 61 Using SAP® via NetWeaver® RFC SDK 61 The First Connection 61 That Ping Thing 65 11 Tell Me More About Yourself 67 Using PureBasic as SAP® Server via NetWeaver® RFC SDK 69 Integrating PureBasic Programs as External Commands 74 Summary 79 Jabaco 80 Using SAP via Java connector 80 Summary 84 Appendix A - Using VBScript® Inside ABAP® 85 Appendix B - Viewing SAP® Table Content with VBScript® Inside HTML 88 Appendix C - Library Calling with FreeBASIC and DynamicWrapperX 94 Programming a DLL 94 DynamicWrapperX COM-Server 95 Dynamic Using 95 Access to Windows® API 96 Appendix D - OutputDebugString 98 Autolt 98 PowerBASIC 99 PureBasic 99 Jabaco 100 FreeBASIC 100 ABAP 100 Appendix E - Enhanced RFC_READ_TABLE 102 Epilogue 105 Bibliography 106 Trademarks 107.
Recommended publications
  • A Beginner's Guide to Freebasic
    A Beginner’s Guide to FreeBasic Richard D. Clark Ebben Feagan A Clark Productions / HMCsoft Book Copyright (c) Ebben Feagan and Richard Clark. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". The source code was compiled under version .17b of the FreeBasic compiler and tested under Windows 2000 Professional and Ubuntu Linux 6.06. Later compiler versions may require changes to the source code to compile successfully and results may differ under different operating systems. All source code is released under version 2 of the Gnu Public License (http://www.gnu.org/copyleft/gpl.html). The source code is provided AS IS, WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Microsoft Windows®, Visual Basic® and QuickBasic® are registered trademarks and are copyright © Microsoft Corporation. Ubuntu is a registered trademark of Canonical Limited. 2 To all the members of the FreeBasic community, especially the developers. 3 Acknowledgments Writing a book is difficult business, especially a book on programming. It is impossible to know how to do everything in a particular language, and everyone learns something from the programming community. I have learned a multitude of things from the FreeBasic community and I want to send my thanks to all of those who have taken the time to post answers and examples to questions.
    [Show full text]
  • Screenshot Showcase 1
    Volume 125 June, 2017 VirtualBox: Going Retro On PCLinuxOS Inkscape Tutorial: Creating Tiled Clones, Part Three An Un-feh-gettable Image Viewer Game Zone: Sunless Sea PCLinuxOS Family Member Spotlight: arjaybe GOG's Gems: Star Trek 25th Anniversary Tip Top Tips: HDMI Sound On Encrypt VirtualBox Virtual Machines PCLinuxOS Recipe Corner PCLinuxOS Magazine And more inside ... Page 1 In This Issue... 3 From The Chief Editor's Desk... Disclaimer 4 Screenshot Showcase 1. All the contents of The PCLinuxOS Magazine are only for general information and/or use. Such contents do not constitute advice 5 An Un-feh-gettable Image Viewer and should not be relied upon in making (or refraining from making) any decision. Any specific advice or replies to queries in any part of the magazine is/are the person opinion of such 8 Screenshot Showcase experts/consultants/persons and are not subscribed to by The PCLinuxOS Magazine. 9 Inkscape Tutorial: Create Tiled Clones, Part Three 2. The information in The PCLinuxOS Magazine is provided on an "AS IS" basis, and all warranties, expressed or implied of any kind, regarding any matter pertaining to any information, advice 11 ms_meme's Nook: Root By Our Side or replies are disclaimed and excluded. 3. The PCLinuxOS Magazine and its associates shall not be liable, 12 PCLinuxOS Recipe Corner: Skillet Chicken With Orzo & Olives at any time, for damages (including, but not limited to, without limitation, damages of any kind) arising in contract, rot or otherwise, from the use of or inability to use the magazine, or any 13 VirtualBox: Going Retro On PCLinuxOS of its contents, or from any action taken (or refrained from being taken) as a result of using the magazine or any such contents or for any failure of performance, error, omission, interruption, 30 Screenshot Showcase deletion, defect, delay in operation or transmission, computer virus, communications line failure, theft or destruction or unauthorized access to, alteration of, or use of information 31 Tip Top Tips: HDMI Sound On contained on the magazine.
    [Show full text]
  • Metadefender Core V4.12.2
    MetaDefender Core v4.12.2 © 2018 OPSWAT, Inc. All rights reserved. OPSWAT®, MetadefenderTM and the OPSWAT logo are trademarks of OPSWAT, Inc. All other trademarks, trade names, service marks, service names, and images mentioned and/or used herein belong to their respective owners. Table of Contents About This Guide 13 Key Features of Metadefender Core 14 1. Quick Start with Metadefender Core 15 1.1. Installation 15 Operating system invariant initial steps 15 Basic setup 16 1.1.1. Configuration wizard 16 1.2. License Activation 21 1.3. Scan Files with Metadefender Core 21 2. Installing or Upgrading Metadefender Core 22 2.1. Recommended System Requirements 22 System Requirements For Server 22 Browser Requirements for the Metadefender Core Management Console 24 2.2. Installing Metadefender 25 Installation 25 Installation notes 25 2.2.1. Installing Metadefender Core using command line 26 2.2.2. Installing Metadefender Core using the Install Wizard 27 2.3. Upgrading MetaDefender Core 27 Upgrading from MetaDefender Core 3.x 27 Upgrading from MetaDefender Core 4.x 28 2.4. Metadefender Core Licensing 28 2.4.1. Activating Metadefender Licenses 28 2.4.2. Checking Your Metadefender Core License 35 2.5. Performance and Load Estimation 36 What to know before reading the results: Some factors that affect performance 36 How test results are calculated 37 Test Reports 37 Performance Report - Multi-Scanning On Linux 37 Performance Report - Multi-Scanning On Windows 41 2.6. Special installation options 46 Use RAMDISK for the tempdirectory 46 3. Configuring Metadefender Core 50 3.1. Management Console 50 3.2.
    [Show full text]
  • Programmierung Unter GNU/Linux Für Einsteiger
    Programmierung unter GNU/Linux fur¨ Einsteiger Edgar 'Fast Edi' Hoffmann Community FreieSoftwareOG [email protected] 7. September 2016 Programmierung (von griechisch pr´ogramma Vorschrift\) bezeichnet die T¨atigkeit, " Computerprogramme zu erstellen. Dies umfasst vor Allem die Umsetzung (Implementierung) des Softwareentwurfs in Quellcode sowie { je nach Programmiersprache { das Ubersetzen¨ des Quellcodes in die Maschinensprache, meist unter Verwendung eines Compilers. Programmierung Begriffserkl¨arung 2 / 35 Dies umfasst vor Allem die Umsetzung (Implementierung) des Softwareentwurfs in Quellcode sowie { je nach Programmiersprache { das Ubersetzen¨ des Quellcodes in die Maschinensprache, meist unter Verwendung eines Compilers. Programmierung Begriffserkl¨arung Programmierung (von griechisch pr´ogramma Vorschrift\) bezeichnet die T¨atigkeit, " Computerprogramme zu erstellen. 2 / 35 Programmierung Begriffserkl¨arung Programmierung (von griechisch pr´ogramma Vorschrift\) bezeichnet die T¨atigkeit, " Computerprogramme zu erstellen. Dies umfasst vor Allem die Umsetzung (Implementierung) des Softwareentwurfs in Quellcode sowie { je nach Programmiersprache { das Ubersetzen¨ des Quellcodes in die Maschinensprache, meist unter Verwendung eines Compilers. 2 / 35 Programme werden unter Verwendung von Programmiersprachen formuliert ( kodiert\). " In eine solche Sprache ubersetzt\¨ der Programmierer die (z. B. im Pflichtenheft) " vorgegebenen Anforderungen und Algorithmen. Zunehmend wird er dabei durch Codegeneratoren unterstutzt,¨ die zumindest
    [Show full text]
  • Freebasic-Einsteigerhandbuch
    FreeBASIC-Einsteigerhandbuch Grundlagen der Programmierung in FreeBASIC von S. Markthaler Stand: 11. Mai 2015 Einleitung 1. Über das Buch Dieses Buch ist für Programmieranfänger gedacht, die sich mit der Sprache FreeBASIC beschäftigen wollen. Es setzt keine Vorkenntnisse über die Computerprogrammierung voraus. Sie sollten jedoch wissen, wie man einen Computer bedient, Programme installiert und startet, Dateien speichert usw. Wenn Sie bereits mit Q(uick)BASIC gearbeitet haben, finden Sie in Kapitel 1.3 eine Zusammenstellung der Unterschiede zwischen beiden Sprachen. Sie erfahren dort auch, wie Sie Q(uick)BASIC-Programme für FreeBASIC lauffähig machen können. Wenn Sie noch über keine Programmiererfahrung verfügen, empfiehlt es sich, die Kapitel des Buches in der vorgegebenen Reihenfolge durchzuarbeiten. Wenn Ihnen einige Konzepte bereits bekannt sind, können Sie auch direkt zu den Kapiteln springen, die Sie interessieren. 2. In diesem Buch verwendete Konventionen In diesem Buch tauchen verschiedene Elemente wie Variablen, Schlüsselwörter und besondere Textabschnitte auf. Damit Sie sich beim Lesen schnell zurechtfinden, werden diese Elemente kurz vorgestellt. Befehle und Variablen, die im laufenden Text auftauchen, werden in nichtproportionaler Schrift dargestellt. Schlüsselwörter wie PRINT werden in Fettdruck geschrieben, während für andere Elemente wie variablenname die normale Schriftstärke eingesetzt wird. Quelltexte werden vollständig in nichtproportionaler Schrift gesetzt und mit einem Begrenzungsrahmen dargestellt. Auch hier werden Schlüsselwörter fett gedruckt. Der Dateiname des Programms wird oberhalb des Quelltextes angezeigt. Quelltext 1.1: Hallo Welt ’ Kommentar: Ein gewoehnliches Hallo-Welt-Programm CLS PRINT "Hallo FreeBASIC-Welt!" SLEEP 5 END ii Einleitung Es empfiehlt sich, die Programme abzutippen und zu testen. Die meisten Programme sind sehr kurz und können schnell abgetippt werden – auf der anderen Seite werden Sie Codebeispiele, die Sie selbst getippt haben, leichter behalten.
    [Show full text]
  • An ECMA-55 Minimal BASIC Compiler for X86-64 Linux®
    Computers 2014, 3, 69-116; doi:10.3390/computers3030069 OPEN ACCESS computers ISSN 2073-431X www.mdpi.com/journal/computers Article An ECMA-55 Minimal BASIC Compiler for x86-64 Linux® John Gatewood Ham Burapha University, Faculty of Informatics, 169 Bangsaen Road, Tambon Saensuk, Amphur Muang, Changwat Chonburi 20131, Thailand; E-mail: [email protected] Received: 24 July 2014; in revised form: 17 September 2014 / Accepted: 1 October 2014 / Published: 1 October 2014 Abstract: This paper describes a new non-optimizing compiler for the ECMA-55 Minimal BASIC language that generates x86-64 assembler code for use on the x86-64 Linux® [1] 3.x platform. The compiler was implemented in C99 and the generated assembly language is in the AT&T style and is for the GNU assembler. The generated code is stand-alone and does not require any shared libraries to run, since it makes system calls to the Linux® kernel directly. The floating point math uses the Single Instruction Multiple Data (SIMD) instructions and the compiler fully implements all of the floating point exception handling required by the ECMA-55 standard. This compiler is designed to be small, simple, and easy to understand for people who want to study a compiler that actually implements full error checking on floating point on x86-64 CPUs even if those people have little programming experience. The generated assembly code is also designed to be simple to read. Keywords: BASIC; compiler; AMD64; INTEL64; EM64T; x86-64; assembly 1. Introduction The Beginner’s All-purpose Symbolic Instruction Code (BASIC) language was invented by John G.
    [Show full text]
  • Xfont Documentation
    XFont Lib for FreeBASIC Introduction XFont is Object Oriented Programming (OOP) library designed for drawing smooth font text. This lib support 1, 2, 4, 8, 15/16, 24/32 bpp depth. Some of the most exciting features: - Support alpha blending. This works in 15/16 and 24/32 bpp depths. - Alpha mask for drawing smooth font text. - 8 fonts slot can be loaded with x-font file format. - Included with internal standard font. - Easy to use. - No initialize needed between switching screen mode. - No ScreenLock/ScreenUnlock switch needed (For FB 0.20.0b or above only). - Unicode support (ISO 10646). About XFont Lib was developed by Victor Phoa. Copyright 2008-2010 © Xaviorsoft Studios. All Rights Reserved. Note All example code written is designed for FB 0.20.0 or above. FB 0.18.x user should add ScreenLock/ScreenUnlock switch manually to make example code working correctly. Keywords List (Arrange by mostly used order) DrawString Syntax Declare Sub DrawString Overload (ByVal Target As Any Ptr=0, ByRef Text As wString Ptr, ByVal X As Short, _ ByVal Y As Short, ByVal ScaleX As Single=1, ByVal ScaleY As Single=1, _ ByVal Direction As uByte=0) Declare Sub DrawString Overload (ByVal Target As Any Ptr=0, ByRef Text As String, ByVal X As Short, _ ByVal Y As Short, ByVal ScaleX As Single=1, ByVal ScaleY As Single=1, _ ByVal Direction As uByte=0) Declare Sub DrawString Overload (ByVal Target As Any Ptr=0, ByRef Text As uInteger Ptr, ByVal X As Short, _ ByVal Y As Short, ByVal ScaleX As Single=1, ByVal ScaleY As Single=1, _ ByVal Direction As uByte=0) Usage Drawstring [target], text, x, y, [scalex], [scaley], [direction] Description Displays text at x, y in graphics modes.
    [Show full text]
  • Comparison of Programming Languages - Wikipedia, the Free
    Comparison of programming languages - Wikipedia, the free ... https://en.wikipedia.org/wiki/Comparison_of_programming_... Object- Event- Other Language Intended use Imperative Functional Procedural Generic Reflective Standardized? Oriented Driven Paradigm(s) Application, ActionScript 3.0 Yes Yes Yes 1996, ECMA client-side, Web concurrent,[4] [5] Application, distributed, 1983, 2005, 2012, ANSI, Ada embedded, Yes Yes Yes[2] Yes[3] imperative ISO, GOST 27831-88[7] realtime, system object- oriented[6] Highly domain- specific, Aldor Yes Yes Yes No symbolic computing ALGOL 58 Application Yes No ALGOL 60 Application Yes 1960, IFIP WG 2.1, ISO[8] 1968, IFIP WG 2.1, GOST ALGOL 68 Application Yes concurrent 27974-88,[9] Parallel Ateji PX Yes pi calculus No application Application, array-oriented, APL 1989, ISO data processing tacit any, syntax is usually highly Assembly General Yes specific, related No language to the target processor GUI automation AutoHotkey (macros), highly Yes No domain-specific GUI automation AutoIt (macros), highly Yes Yes Yes No domain-specific 1983, ANSI Application, (http://portal.acm.org BASIC Yes Yes education /citation.cfm?id=988221), ISO Application, BBj Yes Yes No business, Web Application, BeanShell Yes Yes Yes Yes [10] scripting In progress, JCP BitC System Yes Yes No BLISS System Yes No Application, BlitzMax Yes Yes Yes No game Boo Application No domain-specific, Bro Yes Yes No application Application, [11] system, 1989, ANSI C89, ISO C90, C general purpose, Yes Yes ISO C99, ISO C11[12] low-level operations 1998, ISO/IEC
    [Show full text]
  • Metadefender Core V4.17.3
    MetaDefender Core v4.17.3 © 2020 OPSWAT, Inc. All rights reserved. OPSWAT®, MetadefenderTM and the OPSWAT logo are trademarks of OPSWAT, Inc. All other trademarks, trade names, service marks, service names, and images mentioned and/or used herein belong to their respective owners. Table of Contents About This Guide 13 Key Features of MetaDefender Core 14 1. Quick Start with MetaDefender Core 15 1.1. Installation 15 Operating system invariant initial steps 15 Basic setup 16 1.1.1. Configuration wizard 16 1.2. License Activation 21 1.3. Process Files with MetaDefender Core 21 2. Installing or Upgrading MetaDefender Core 22 2.1. Recommended System Configuration 22 Microsoft Windows Deployments 22 Unix Based Deployments 24 Data Retention 26 Custom Engines 27 Browser Requirements for the Metadefender Core Management Console 27 2.2. Installing MetaDefender 27 Installation 27 Installation notes 27 2.2.1. Installing Metadefender Core using command line 28 2.2.2. Installing Metadefender Core using the Install Wizard 31 2.3. Upgrading MetaDefender Core 31 Upgrading from MetaDefender Core 3.x 31 Upgrading from MetaDefender Core 4.x 31 2.4. MetaDefender Core Licensing 32 2.4.1. Activating Metadefender Licenses 32 2.4.2. Checking Your Metadefender Core License 37 2.5. Performance and Load Estimation 38 What to know before reading the results: Some factors that affect performance 38 How test results are calculated 39 Test Reports 39 Performance Report - Multi-Scanning On Linux 39 Performance Report - Multi-Scanning On Windows 43 2.6. Special installation options 46 Use RAMDISK for the tempdirectory 46 3.
    [Show full text]
  • Sviluppo Di Michele Costabile Creatori Di Malware
    Sviluppo Di Michele Costabile creatori di malware. In secondo luogo, l’architettura di Com è troppo povera per supportare in modo pulito versioni Il futuro dell’ambiente diverse del software, dando origine di sviluppo Microsoft al famoso Dll hell, ossia al proble- ma di trovare un insieme di librerie è molto incerto. Meglio dinamiche che non mettesse in crisi nessuna delle applicazioni installate, prepararsi alla transizione? man mano che ci sono aggiornamenti e iniziano a convivere applicazioni realizzate in tempi diversi. La nuova architettura, .net, si fonda su una macchina virtuale proprio co- me Java. In parte ci sono motivazioni storiche, dato che l’autore dell’archi- tettura di .net ha iniziato la sua car- riera in Microsoft con VisualJ++, dopo una lunga esperienza in Borland con Delphi. VisualJ++ fu la prova che si può realizzare un ambiente virtualiz- zando l’intera piattaforma, senza dare accesso diretto alle librerie dinamiche Dll. La macchina virtuale può eseguire controlli di congruenza e applicare Visual Basic 6, la fine è vicina? regole di sicurezza al codice binario, cosa che è fuori della portata del codice on ci siamo fatti prendere dal l’architettura del Com è basata sull’e- compilato. millenarismo, tantomeno ades- sportazione di proprietà e funzioni a Come aveva dimostrato ampiamente Nso che il primo millennio è pas- livello binario. Chi ha pensato a questa Java, si può realizzare una piattaforma sato senza danni e il secondo anche. soluzione ha creato un ottimo modello molto più sicura usando una macchina Ci siamo, invece, posti il problema di per il link dinamico di codice C, ma virtuale, senza una evidente penaliz- cosa fare con una base di codice Visual non ha si è reso conto per tempo di zazione in termini di performance.
    [Show full text]
  • Control of U 1
    - tibi'ar.f . - 6960: ''-;P:?:--- , onCollegerevenues Cablevision- drops increase $1.3 milliøn $25 installation fee - bySuassQtowlenke - Oakton Community Collegé has The announcement was mude iostallatloù will he available to . to meeteperahagexpssm. - Stsdent Government- Intire at Tuesday night's Niles Cuhle customers On the collected $1385000, more th tax In other money matters, the first pass money this year than in 1q82 amnsntofIl2,i70.24:- TV meeting that Cahievisien has through only. If a resident is con- Board approved-$l,577,a.3.33 for The new student trastee, bettdropped the $25 installation fee -. reported . treasurer David tachai und refuses to sign up for expenditures in March of 1983.Vrahel, took office, haviog they were originally charging.cable TV and then changes his Hilquist at the District 535 BoàrdThe cnteogory with the highest woo - the general election with 318sew customers. Chairman Ang mind at a later date, he Will he Meeting Tsesdayniht. amount of expenditures Is the Marcbeschi told bis heard that votes. Vrabel vowed to "follow in - . Mnñey collected from taxes reqsired to puy the $25 In. Education:Fnnd, totalinghis predeoser's footsteps, Andy customers who had already paid stallatton fee. In addition, if gana into a Working Cash jund$1,184.896. Approved hy the which is ssedthraughoutthe year Ciss" and hopes to "bringa new the fee would receive an adjust- special lustallation is reqsired . Board were axpenditsras for Csetlnaed onPage 3o' ment os their May hills. The free Castinuedun Pare 33 Expect vote - on Goldwater bill- Village of Niles in late May - EditiOn Pending bill tjt . to give FCC 966-3900-1.4 N.
    [Show full text]
  • Deep Scrutiny of Compilers in Industry with Estimating on Conglomerate Factors
    JOURNAL OF CRITICAL REVIEWS ISSN- 2394-5125 VOL 7, ISSUE 11, 2020 Deep scrutiny of compilers in industry with estimating on conglomerate factors Dr Sandeep Kulkarni 1, Prof(Dr) K P Yadav 2 1,2Sangum University, Bilwara, Rajasthan [email protected], [email protected] Received: 05 May 2020 Revised: and Accepted: 15 July 2020 ABSTRACT: As to understand the basic knowledge of compilers , various types of compilers in the programming world ,we will study in detail the compilers available in various languages. As we are going to study their compilers working usage for which they have used in various companies in software industries. M- DOS with Microsoft windows uses Borland C++ compilers with the help of any C and C++Integrated development environment tool. As it is advance version when compared to Turbo C++ it known for good performance in debugging purpose so for this Turbo debugger and this software is written mode of DOS which is protected.There are set of library which is helpful for building graphical windows projects known as Object windows library . With the C++ program DOS applications is created. Applications such as pop up boxes, application top menus, dialog boxes for this turbo vision is used. Applications presenting in 2 dimensional drawing. Borland graphics libraries CGA and VGA , it also supports third party supporting classes and also video libraries. Industries supporting or developing these kind of applications are GSN Consulting, Einfochips Limited. So will have detailed study on programming language used in industry on compiler based performances. KEYWORDS: Deep scrutiny of compilers in industry with estimating on conglomerate factors I.
    [Show full text]