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_DOCUMENT_POST Not Returning All Error Messages

Former Member
0 Likes
1,161

Hi,

I'm currently using BAPI_ACC_DOCUMENT_POST in one of my developments. I'm currently testing the BAPI to see if it will detect the following:

- Accounts blocked for posting

- Blocked posting period

I ran a variant with both errors present to the BAPI, but it only returned an account blocked error. It only showed the blocked posting period error after the account was unblocked.

Hoping to get your insights on this!

Thanks,

Karl

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
885

If the first error was fatal, I would not expect SAP programming to continue to the second fatal error! If you want all potential errors, write a program that examines and reports all possible errors prior to your BAPI call.

Edited by: BreakPoint on Apr 5, 2011 5:06 PM

4 REPLIES 4
Read only

Former Member
0 Likes
886

If the first error was fatal, I would not expect SAP programming to continue to the second fatal error! If you want all potential errors, write a program that examines and reports all possible errors prior to your BAPI call.

Edited by: BreakPoint on Apr 5, 2011 5:06 PM

Read only

0 Likes
885

Would that mean you can't use the BAPI to check for possible errors all at once that will prevent posting?

Read only

0 Likes
885

Hi!

To check for errors before posting, you should use the following bapi:



BAPI_ACC_DOCUMENT_CHECK

Hope it helps.

Best regards,

Esteban

Read only

0 Likes
885

Thanks Este! I tried using the BAPI but the messages it returned is the same as with BAPI_ACC_DOCUMENT_POST. It did not returned all error messages in one execution.