Interface to Processing Programs 

Use

You can define your own processing programs which communicate with Message Control via a defined interface. This interface consists of

Activities

The return code (type like sy-subrc = INT4) should be changed by the routine and the screen flag (US_SCREEN of type c) should be transferred.

The return code has the value 999 at time of call. If this value does not change, the calling program assumes that either the form routine or the program could not be found in TNAPR. The called form routine should therefore deliver a return code which does not have the value 999, if possible, and has the value 0 in successful cases. The program RSNAST00 writes the message status based on this return code (table NAST). See also section: Message Status Record

If US_SCREEN is set to ‘X’, the screen is the output device. If the value is set to ‘ ‘ (SPACE), the message is printed.

Assign a transmission medium to your processing program and store it with the output type (table TNAPR). For more information, see

Define processing program and form

Special feature in transmission medium 5: Communication Strategy

The processing program must analyze the Communication strategy and determine the correct dispatch medium. The include program RVADOPFO can be included with this.