2008 Feb 01 5:06 PM
Hi Friends,
during the BAPI_ACC_INVOICE_RECEIPT_POST I have an error, but this error is not shown in the return table.
When I try to create a new Invoice with the same obj_key the return table has 1 entry 'S' but later the Business workplace pops up with ' a new message in the inbox' and that shows an error during the BAPI call.
How can I avoid this and catch the error.
Thank you very much in advance.
Rg. Jimbob
Hi Friends,
during the BAPI_ACC_INVOICE_RECEIPT_POST I have an error, but this error is not shown in the return table.
When I try to create a new Invoice with the same obj_key the return table has 1 entry 'S' but later the Business workplace pops up with ' a new message in the inbox' and that shows an error during the BAPI call.
How can I avoid this and catch the error.
Thank you very much in advance.
Rg. Jimbob
2008 Feb 01 6:11 PM
Use transaction SM13 to analyze failed updates. Also examine the system log (SM21) and dumps (ST22).
Rob
2008 Feb 01 6:41 PM
Thank you Bob,
but my Problem is, I want to run it in a Job and there, I don't need the workplace popup.
To make sure you got me right.
After the bapi call it returns with an entry 'S' everything went well, but a minute later it comes up with the message.
'there is a new message in your box, or whatever' and this shows an error.
Of course I can check the table of sm21 to find the error message, but the popup is still where.
Any ideas?
Rg. Jimbob
2008 Feb 01 6:49 PM
I believe the popup is coming because even though the message says the BAPI call was successful, in fact it was not.
Did you examine the database to see if the document is there. My bet is that it is not. and you will need to use the transactions I suggested to see what is going on.
Rob
2008 Feb 01 7:03 PM
Bob,
I think it takes a bit time to proceed the BAPI and it comes back before it is ready, ' with success'.
however, this is not so tragic, I could check it afterwards and commit it.
But the popup troubels me.
I will try it in Job, maybe it does not popup there.
2008 Feb 01 7:04 PM
2008 Feb 01 7:08 PM
2008 Feb 01 7:12 PM
you know, I could wait for a few seconds and check wether it is done or not, but the 'popup'!!!
2008 Feb 01 7:29 PM
It's not there because the actaul update has failed.This sometimes happens. You need to use the transactions I mentioned in the very first answer I gave.
Rob
2008 Feb 01 7:39 PM
Rob,
It is actually not my problem if it fails or not, this I can check.
But I want avoid the 'popup' below.
SAP office express info
"Express document "Update was terminated" received from author "jimbob" "
Rg. Jimbob
2008 Feb 01 7:51 PM
YOU'RE NOT LISTENING. THE UPDATE HAS FAILED. THE DOCUMENT WAS NOT CREATED. IT NEVER WILL BE CREATED. YOU CAN WAIT FROM NOW TILL TUESDAY.
Sometimes (maybe due to a configuration error) SAP thinks everything is OK and tries to update the database (does an INSERT or something). But Oracle or DB2 or whatever the database you are using disagrees and cannot do the update even though SAP thinks everything is OK. Then you get express mail.
USE THE TRANSACTIONS I SUGGESTED.
Rob
2008 Feb 01 8:16 PM
I know the document is not created, because I did it on purpuse with the same number.
And I can check it during runtime, and I know why the popup comes up but I dont want the "POPUP". The only question is
???? how can I avoid the Popup?????
It seems to me we talking about different things.
2008 Feb 01 8:20 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |