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

Former Member
0 Likes
897

Hi! All,

I need to post customer credit memos for different needs (FB01). I am trying to use BAPI_ACC_DOCUMENT_POST.

I have populated header with

obj_type 'BKPFF'

obj_key '13' (external no. range, So I populated a # not used, I will use get_number_next in my code after I get success msg in se37)

bus_ 'RFBU' & my sys, username text, compcode, docdate etc...

I have populated GLaccount with item 1, GL account, profit center.

I have populated currency with 2 line items, 1 for GLentry and 1 for customer.

Actually, I displayed a document in FB03 and have used the values except the doc #.

I dont know where the mistake is. The errors are

E RW 609 Error in document: BKPFF 3 APQCLNT230

E F5 151 Incorrect doc.no.: $ 1. Select document number between 0000000001 and 0000999999

Whatever I try I get this error!!!!

Your timely help will be appreciated and rewarded.

Thank you,

Priyanka

4 REPLIES 4
Read only

Former Member
0 Likes
480

Hey what actually is your error. With out the document number what's the use of going to FB03? What do you want to see there?

Once a doc. no is created using this BAPI take that number and go to FB03 to look how it got posted. let me know if you have any other issues while using the BAPI.

Read only

0 Likes
480

Hi! Vinny,

thank you for the response. I dont think I explained myself well. I entered the values in header, account GL & account receivable.

Errors are

E RW 609 Error in document: BKPFF 3 APQCLNT230

E F5 151 Incorrect doc.no.: $ 1. Select document number between 0000000001 and 0000999999

What could be wrong?

Thank you,

-Priyanka

Read only

0 Likes
480

Problem solved

Read only

0 Likes
480

Hi, I have the same problem, please, could you tell me how do you solved this?

Thanks.