Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_INVOICE_RECEIPT_POST incoming message

joerg_arndt
Participant
0 Likes
1,584

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,559

Use transaction SM13 to analyze failed updates. Also examine the system log (SM21) and dumps (ST22).

Rob

Read only

joerg_arndt
Participant
0 Likes
1,559

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

Read only

0 Likes
1,559

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

Read only

joerg_arndt
Participant
0 Likes
1,559

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.

Read only

0 Likes
1,559

Jimbo - see if the document is there!!

Rob

Read only

joerg_arndt
Participant
0 Likes
1,559

No, it is not there.

Read only

joerg_arndt
Participant
0 Likes
1,559

you know, I could wait for a few seconds and check wether it is done or not, but the 'popup'!!!

Read only

0 Likes
1,559

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

Read only

0 Likes
1,559

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

Read only

0 Likes
1,559

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

Read only

0 Likes
1,559

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.

Read only

0 Likes
1,559

If the update fails, you will get the popup.

Rob