Application Development 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: 

BAPI_ACC_DOCUMENT_POST Not Returning All Error Messages

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi!

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



BAPI_ACC_DOCUMENT_CHECK

Hope it helps.

Best regards,

Esteban

0 Kudos

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.