SYS_ACT_PTTYP

Script Function: It returns the partner type of the user.

Syntax

SYS_ACT_PTTYP ()

Return codes

"D" - Activation through the Java UserInterface
"C" - Activation through CallAPI
"A" - Activation through Java Application Interface / Deployment Descriptor / Automic Web Interface

Comments

This script function determines how a task is activated.

When you use this function in post processing or when the option "Generate at runtime" is set, the system will supply an empty return code.

Example

This example shows the line that is written to the activation report if a task has been activated by a CallAPI.

:SET &PTTYP# = SYS_ACT_PTTYP()
:
IF &PTTYP#  = "C"
:   
PRINT "Task was activated through CallAPI."
:
ENDIF

See also:

Script Elements - Activation Data

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function