Tuesday, 25 June 2013

Auto Register Program on SAP Gateway after Terminated

    Auto Register Program on SAP Gateway after Terminated

 

There are external RFC server programs that close the connection to the gateway and close themselves after an error. As a result of this behavior, the RFC no longer works using this destination.
As a workaround, such a program has to be started using a script.

Windows

SM59: Program (exec) could not be started

          SM59: Program (exec) could not be started

 

Symptom

Solution

1. Ensure rfcexec and rfcexec.sec files are in your executable directory, cdexe, /sapmnt/SID/exe/. If not there, you can download from SAP Service Marketplace or copy from other SID (but ensure the version is compatible with the current kernel).

Reset SAP SPAM & SAINT Queue

Reset SAP SPAM & SAINT Queue

1. Open transaction code SE37, fill in OCS_RESET_QUEUE and execute.
      
2. In this example, we are going to reset spam queue. So, put SPAM in Value of IV_TOOL Import parameters. Put X in Value of IV_FORCE in Import parameters.
     
3. Select Yes to continue.
    
4. The OCS queue will be deleted and you can verify in transaction code SPAM.