The Gateway to Learning SAP Open Server: CTOS, Fullpass and Other Samples [Part 2]

    By: Paul Vero on Jun 01, 2014

    This article is part two of a three-part feature focusing on the SAP Open Server. In this part, you'll be provided with a detailed code walk-through of the ctos sample application.

    Last month we checked out SAP Open Server from a high level. This month we’ll go a little lower, with a code walk-through of the ctos sample application. Next month I’ll discuss the infamous event handlers employed to receive requests and act upon them via their namesake code, creating an SAP ASE connection, sending the requests, receiving the responses and forwarding them back through the gateway to the calling client. It’s a wonderfully choreographed flow of code that makes it all work. The ctos sample is meant to help developers understand the SAP OS (Open Server) API and utilize it to create applications at their disposal.

    We end with a brief look at other samples that demonstrate specific concepts, such as registering an SAP Open Server stored procedure used to provide information to a caller specific for the purpose of the SAP Open Server, whether it is manipulating data/results from a backend server, providing access to remote sensing data or to kick off some processes based on a certain stock price.

    All this is possible due to the awesome OCS (Open Client/Server) Engineering team. The folks here now and from the past have been an inspiration to me over the years. And the production of the ctos sample application has been engaged in so many scenarios in Support. A device useful for education purposes proves useful in troubleshooting SAP Open Server and SAP ASE Server issues for various reasons and purposes. And now we shall see why.

    The ctos Code Walk-Through
    I like to start by looking at the ctos.h header file. The file contains definitions for all sorts of structures used for memory allocation, events, connections, commands and SAP Open Server related contexts; everything you need to get it going. The naming structure is common for all the structures. As an example we can take a look at the event handler structure:


    Login to read the article. Not a member? Create a free account!

    Released: June 1, 2014, 2:55 pm | Updated: October 8, 2014, 9:49 am
    Keywords: ASE Developer Article | Technical Journal | CTOS | Design | Developer Collaboration | Paul Vero | SAP Open Server




    Copyright © 2014 ISUG-TECH. All Rights Reserved
    All material, files, logos and trademarks within this site are copyright their respective organizations

    Terms of Service - Privacy Policy - Contact the Help Desk