‎2008 Mar 14 10:12 AM
Hi Experts,
I am facing an error while executing the BAPI called BAPI_ACC_DOCUMENT_POST. The error says
Error in Document: BKPFF $
BAPI call with wrong business transaction F-02.
So please help me to avoid this error.
Thanks in Advance.
‎2008 Mar 17 9:25 PM
Hi,
It sounds like you may be trying to use an SAP transaction code 'F-02' instead of one of the valid business transaction values in the BAPI parameter DOCUMENTHEADER-BUS_ACT. Take a look at form check_glvor in include program LACC9F10. The error message you described is RW613, which is returned when none of the valid cases for business transaction are passed to the BAPI.
The BAPI function module documentation describes which business transaction values are valid for the type of posting you are attempting. For example: RFBU for G/L postings, SD00 for billing in SD. As stated in the BAPI documentation, "You can find further information in the SAP Library under "Financials -> Accounting - General (AC) -> Interfaces to Accounting (AC)".
Since you mentioned 'F-02', my hunch is that you need to use 'RFBU' as the business transaction (DOCUMENTHEADER-BUS_ACT) instead of 'F-02'.
Regards,
Jamie