cancel
Showing results for 
Search instead for 
Did you mean: 

How stop the process of a job program and no sent data to XI?

Former Member
0 Kudos

People,

I have a program that stop by a error message that I put after a select like this:


  IF sy-subrc <> 0.
    
    v_error2 = 'E'.
    MOVE 'No data found. REGUH'(e01) TO emsg.
    PERFORM call_error_function USING emsg.
    PERFORM call_log_function.
    MESSAGE: 'No data found. REGUH'(e01) TYPE 'E'.
    
  ENDIF.

For example if not exist data on REGUH display a error message and the program stop but the problem is that some of this programs are executed by a job and when present the error the status of the program are presented like CANCELED and I need to change the status to FINISHED but in the log present the tables with the message that no have data or something like that.

Other thing that I need is not sent the message to XI if no have data. I made that with the error message but now I don't know how!

Help me with this please!

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

For the XI part, how do you send data normally from your program to XI ?

IDoc ?

RFC ?

PROXY ?

Sandro

Former Member
0 Kudos

Hi,

To send data from SAP to XI, you can use:

IDoc

RFC and Proxy.

For IDoc if you have no data then the IDoc is not created and hence no error needs to be processed.

For RFC and Proxy that you must be calling in your report:

1. First option is to check for the data before making a call to RFC or Proxy. If there is no data don't make the call

or if you don't get the data and you want to send a message that there is not data then you have to make another message and update this message and send it to SAP XI

Regards

Vijaya

Answers (0)