To use the macros and function modules of the Web Transaction API, you must include the module avwrtcxm in the ABAP program.
program sapmpw02.
include avwrtcxm. ...
avwrtcxm stands for A LE v ia W eb R untime C ontext M acros.