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. ...
avwrtcxm stands for ALE via Web Runtime Context Macros.