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 80 Using SAP via connector 80 Summary 84

Appendix A - Using VBScript® Inside ABAP® 85

Appendix B - Viewing SAP® Table Content with VBScript® Inside HTML 88

Appendix - 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