Procdure to Make tclsap

The following is a possible procedure to follow to create the tclsap executables.

  1. Make and install tcl and tk.
    The official ftp location for tcl/tk is : ftp.smli.com Make sure that you have at least tcl version 7.4 and tk version 4.0 or later.

  2. If you have not already done so, locate the SAP RFC "package" from the SAP distribution and install it. (On an SAP distribution for HPUX the file is called RFCHP.Z. It is a compressed tar file.)

    Uncompress and "untar" the resulting file. It should give you a directory called rfcsdk. The header and library files are contained within the rfcsdk directory.)

  3. Expand the tclsap distribution into a directory.

  4. Edit the Makefile. Put in the correct locations for the TCL, TK, X11 and SAP libraries. Put in the correct locations for the SAP, X11 and tcl header files. Define where the installed binaries are to be copied.

    If you are not using HPUX-9.x, you may need to change some of the compiler C flags.

    Note: if you do not want an extended version of tk, the X11 and TK locations are not needed. Do a "make tclsap".

  5. Type make and see what happens. It should compile "fairly" quickly. With any luck there will be no errors.

  6. Test the programs in the local directory

    Test the tcl extensions by typing ./tclsap Sap_System_Info.tcl
    (it will fail if you don't have a correct sideinfo file and do not enter the SAP System ID, Client, User ID and Password on the command line.)

    Similarly test the tk shell (wishtcl) by typing ./wishsap Sap_Info.tk
    (This script is X11 based and requires screen entry. This also requires a correct sideinfo file for successful operation.)

  7. If the above were successful, "su" to the user that will own the installed executables and type make install

  8. Enjoy.


If there are questions about this document please direct them to Garth Kennedy (garth@mcs.net)

garth@mcs.net