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

Getting Error while using BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
2,730

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.

1 REPLY 1
Read only

Former Member
0 Likes
1,453

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