on 12-12-2006 12:59 PM
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!
For the XI part, how do you send data normally from your program to XI ?
IDoc ?
RFC ?
PROXY ?
Sandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.