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

error in BAPI_ACC_DOCUMENT_POST

former_member515329
Participant
0 Likes
567

I m populating FB01 tcode...using BAPI BAPI_ACC_DOCUMENT_POST..in my flat file for populating Fb01..

when i m using oby_type = BKP/BKPFF/BKPFI the BAPI is showing posting error " and cannot be posted"...but when i use some other oby_type such as ABR ACE AFRU AIBU AMBU AMDP...it is posting successfully...but where is no entry in BKPF/FB03 ...what is the error i m doing here...

PLs help.........?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
479

Hi,

You need not pass the obj_type. Instead need to pass alteast the below field to the header:

bus_act = 'RFBU'.

username = sy-uname.

doc_date

pstng_date

doc_type

comp_code

fisc_year

ref_doc_no

Regards

Shiva

2 REPLIES 2
Read only

Former Member
0 Likes
479

Hi

We are also doing similar kind of interface and we are not passing any value OBJ_TYPE field, but we are passing 'RFBU' to BUS_ACT field

Regards

Madhan D

Read only

Former Member
0 Likes
480

Hi,

You need not pass the obj_type. Instead need to pass alteast the below field to the header:

bus_act = 'RFBU'.

username = sy-uname.

doc_date

pstng_date

doc_type

comp_code

fisc_year

ref_doc_no

Regards

Shiva