2008 Sep 03 8:29 AM
Hello abap Gurus,
I am scheduling a back ground job for goods issue against work orders, using BAPI now i need to post the error returned to the error log, i.e., when BAPI returns 'E' type than the message should be posting to error log and should be viewable from there with timestamp, please be quick to reply.
<removed_by_moderator>
Thanks
devender.
Edited by: Julius Bussche on Sep 3, 2008 9:56 AM
Hello abap Gurus,
I am scheduling a back ground job for goods issue against work orders, using BAPI now i need to post the error returned to the error log, i.e., when BAPI returns 'E' type than the message should be posting to error log and should be viewable from there with timestamp, please be quick to reply.
<removed_by_moderator>
Thanks
devender.
Edited by: Julius Bussche on Sep 3, 2008 9:56 AM
2008 Sep 03 9:09 AM
2008 Sep 03 10:29 AM
Hi,
As my understanding it should write in error log.If it is not in error log then simply use WRITE for those error you can able to view in spool.
Thanks,
radha.
2008 Sep 03 12:04 PM
Hi,
I am elobrating the problem a bit more see i u can help.
I have to schedule a job which is a z program which will execute a bapi,
now want that the bapi RETURN should be read and if the return type is 'E' than i can see that message in my job log, please tell me if i am still unable to clear my problem.
Thanks
Devender
2008 Sep 03 12:16 PM
Just make a loop at return itab and use command WRITE to write the log. It will appear in the JOB log.
LOOP AT return INTO wa WHERE type EQ 'E'.
WRITE: /1 wa-MESSAGE, wa-message_v1, wa-message_v2. "and so on ...
ENDLOOP.
Regards.
Valter Oliveira.
2008 Sep 04 5:11 AM
Hi ,
As our friend said After excuting Bapi , loop at return table for Record whic have error message, but insted of writing them directly use 'FORMAT_MESSAGE' function module to get the correct message
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |