SAP Message ARCH_STANDARDS500 - Program error: Program mode not implemented correctly

Diagnosis
On the selection screen, the user has decided that the program is calledin test mode (live mode). However, the ARCHIVE_OPEN_FOR_*function module or the OPEN_* method in the CL_XADK_API class wascalled using the &v3& parameter in the opposite mode, that is in livemode (test mode). (The value of the &v3& parameter was "&v1&", the valueof the selection screen parameter for this parameter was "&v2&".)
These two values must match.

System Response
INCLUDE ARCH_STNDRD_CHECK_SYS_RESP10 OBJECT DOKU ID TX

Procedure
INCLUDE ARCH_STNDRD_CHECK_WHATODO_1 OBJECT DOKU ID TX