Use
You can use the function SAP_CMCANCREGTP() to cause the Gateway to terminate a registered program. Both functions will only terminate programs that have the status INIT or WAITING. Running programs are not affected. The return code CM_DEALLOCATED_NORMAL is sent to the registered program in the SAP_CMACCPTP call.
Syntax
SAP_CMCANCREGTP(tpname,gwhost,gwserv,&total,&canceled,&returncode);
Parameters
tpname
Transaction program namegwhost Gateway host
gwserv Gateway service
total Total no. of registrations
canceled No. of terminated programs
returncode Return code
Integration
The function module GWY_CANCEL_REG_PROGRAMS provides the same functionality in the R/3 System.