Entering content frameComponent documentation Web Transaction Programming Locate the document in its SAP Library structure

This documentation is a reference guide to the Web transactions implementation model for developing IACs.

Web transactions are Internet-enabled R/3 dialog transactions that Internet and intranet users can call from a Web browser as Internet Application Components (IACs).

The Web transactions implementation model allows ABAP developers to use ABAP dialog programs as a basis for developing IACs.

The link between the Web server and the R/3 System is provided by the Internet Transaction Server (ITS), which acts as a generic Common Gateway Interface (CGI) program.

Interaction Between the ITS and R/3

If you set up Web pages containing URLs, which link to the R/3 System, and a Web user makes a request by selecting one of these links, the request is processed as follows.

  1. User starts a transaction in the Web browser.
  2. The Web browser passes the request to the Web server.
  3. The Web server forwards the request to the ITS.
  4. The ITS establishes a connection with the R/3 System using the DIAG protocol, prepares the request, and starts the relevant transaction.
  5. Since the ITS functions as a normal SAP GUI when communicating with R/3, it uses the DIAG protocol as the transmission channel for data exchange.

  6. R/3 sends screen output to the ITS, which converts the data to HTML format, and returns it via the Web server to the Web browser, where it is displayed as an HTML page.

Web Transaction Implementation

To implement a Web transaction, you must:

To do this, you must create the necessary external files required by the ITS to drive the transaction. These files make up an ITS service and consist of:

MIME files include graphics, images, sound, and video files.

To create these components, you use the SAP@Web Studio.

When generating the HTML templates that correspond to Web transaction screens, the ITS inserts additional HTMLBusiness statements into the standard HTML code.
HTMLBusiness is an SAP-specific macro language for handling data transfer between R/3 screens and HTML pages. At runtime, the ITS executes these extra statements to create the finished HTML pages to run the Web transaction.

Web transactions must satisfy special requirements regarding:

Since HTML (on the Internet side) and ABAP (on the R/3 side) offer different programming features, some objects used in ABAP programs or on R/3 screens are not supported by HTML, so you have to adapt the HTML code accordingly.

Apart from exchanging data between the Internet and the R/3 System, and converting HTML to R/3 screen data and vice versa, the ITS also performs system administration functions.

Further Information

To support the development of Web transactions, there is a set of macros and functions that you can use to import data from, and export data to, the ITS. For further information, see:

Structure link Web Transaction API

For a step-by-step tutorial covering all the steps you need to take when programming Web transactions, supported by examples, see:

Structure link Web Transaction Tutorial

An important aspect of Web transactions development is synchronization, which is the means by which the ITS keeps R/3 screens in step with their corresponding HTML templates. For further information about ITS synchronization, see:

Structure link ITS Synchronization

For further information about creating, managing, and publishing the files required by the ITS to drive Web transactions, see:

Structure link SAP@Web Studio

For further information about HTMLBusiness, see:

Structure link HTMLBusiness Language Reference

For information about other implementation models for developing IACs, see:

WebRFC Programming
Structure link Web Reporting

Leaving content frame