Web Transaction API

Use

The Application Programming Interface (API) for Web transactions consists of ABAP macros and function modules for developing Web transactions, also known as Internet Application Components (IACs). These are programmed based on the implementation model for Web transactions.

You can use these macros and function modules in ABAP programs to import data from, and export data to, a Web browser using the Internet Transaction Server (ITS).

The Web Transaction API supports the transfer of context fields and Multipurpose Internet Mail Extension (MIME) data between transactions in the SAP system and their Internet-enabled versions displayed in a Web browser.

Prerequisites

To use the macros and function modules of the Web Transaction API, you must include the module avwrtcxm in the ABAP program.

Example:

        
program sapmpw02. include avwrtcxm.
         

Features

API Macros

The API macros to use for handling context fields and MIME data are listed in the table below. For more information, click the appropriate link.

Macro

Description

field-set

Assigns values to ITS variables in the active context.

field-transport

Sends all data accumulated by field-set calls to the ITS.

field-get

Fetches values of ITS variables from the context.

set-persistent

Makes a context field persistent / transient.

mime-download

Transfers MIME data from the SAP system to the ITS during PBO.

mime-upload

Transfers MIME data from the ITS to the SAP system during PAI.

its-import_context

Returns all context fields of the ITS as an internal table.