The program is not a web transaction, so it cannot be used as one. Either a User Interface record was passed on a transfer to a main or called program, or the gateway servlet sent a request to start a main or called program.
Correct the program logic, or regenerate the main or called program as a web transaction.