04-05-2011 3:50 PM
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
04-05-2011 4:05 PM
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
04-05-2011 4:05 PM
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
04-05-2011 4:11 PM
Would that mean you can't use the BAPI to check for possible errors all at once that will prevent posting?
04-05-2011 7:32 PM
Hi!
To check for errors before posting, you should use the following bapi:
BAPI_ACC_DOCUMENT_CHECK
Hope it helps.
Best regards,
Esteban
04-06-2011 9:11 AM
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.