4GL syntax for if this is a soap api call

SOLVED

Is there a 4gl syntax that represents a if the process is by a soap api call?

For example, 

let say im making a modification to sales order via the modify soap call. I have code in APRES_MOD, but I don't want that code to be executed when the modification is being done via an api call. Is there a way to write in the 4GL code that will my ignore my code if it is a soap call?

Thanks,

Chris