SAP RFC SYS FAIL

Get Example source ABAP code based on a different SAP table
  


SECRET
ARTICLE

SYSTEM_FAILURE: 'Screen display without connection to user.'
In a remote function call, one of the following messages is displayed for the RFC exception SYSTEM_FAILURE:
'CPIC server sent screen <(> <)>P1 <(> <)>P2 (termination)'
(<(> <)>P1 = program name, <(> <)>P2 = screen number)
'Screen display without connection to user.'

ABAP runtime error
On the RFC client: CALL_FUNCTION_REMOTE_ERROR
Long text: 'CPIC server sending screen ... (termination)'
On the RFC server: DYNPRO_SEND_IN_BACKGROUND
Long text: 'Screen display without connection to user.'

Cause and Conditions
The system tried to display a screen or list using an RFC connection.
This error can occur in the following circumstances:
RFC communication between two ABAP systems or within an ABAP system. The following errors can occur:
If you run the calling program in a background process and the server program tries to output screens or lists, the communication is always broken, regardless of the user type. Make sure that the RFC server program always runs in a dialog process.
If you run the calling program in a dialog process, the action leads to the communication being terminated because the user has insufficient authorization. The user in the RFC connection is not of the type DIALOG. Check the user profile for the user type DIALOG (transaction SU01 or Tools -> Administration, Users -> User maintenance -> User). If the RFC user has the type CPIC, background, or BDC, the function module called would terminate as soon as it tries to display a screen or list.
If the RFC communication is between an ABAP system and an external program such as a C or Visual Basic program, the communication is always broken when a screen is output, regardless of the user type. The exception to this is if the external program has a SAP GUI (RFC with SAP GUI). For further information, consult the system log (transaction SM21) or the error message 'Screen output without connection to user'. You can also refer to the dump analysis (transaction ST22).

Solution
In the case of RFC communication between two ABAP systems or within an SAP system, you can solve the problem as follows:
If you run the calling program in a background job, you must modify the function modules called so that they do not display any screens or lists.
If you run the calling program in a dialog process, use an RFC user with user type 'Dialog'.
If the RFC communication is between an ABAP system and an external program that does not have RFC with SAP GUI, you must change the function modules called so that they do not display any screens or lists.