SAP_CMPERR 

Use

If you are using the SAP-specific function SAP_CMPERR and an error occurs, a short description of the error is output.

 

CM_RETCODE return_code;

..

CMALLC(conv_id,&return_code);

if (return_code != CM_OK)

{

printf("SAP-INFO: %s\n", SAP_CMPERR());

}
..