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

Business Area error in BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
1,882

I am using BAPI_ACC_DOCUMENT_POST to post an accounting document (FB50). In the header of BAPI parameter I pass BUS_ACT as 'RFBU'.

I am getting an error message Cost center belong to business area 'XXX' not 'YYY'. The reason is see for this error is there is a substitution rule defined saying if business area is blank, default this to 'YYY'. Business area is not passed through interface of BAPI, but business area 'XXX' is maintained in Cost Center master data.

In the case of BAPI, BAPI is getting the business area from substitution and during the function call 'K_COBL_CHECK' inside BAPI, the business area of G/L line item and business are from cost center is not matching.

But when the same is entered through FB50, its getting the business area from cost center and business area. Is there any SAP Note to solve this issue. Is any one aware of this.

Thanks

Vishnu

I am using BAPI_ACC_DOCUMENT_POST to post an accounting document (FB50). In the header of BAPI parameter I pass BUS_ACT as 'RFBU'.

I am getting an error message Cost center belong to business area 'XXX' not 'YYY'. The reason is see for this error is there is a substitution rule defined saying if business area is blank, default this to 'YYY'. Business area is not passed through interface of BAPI, but business area 'XXX' is maintained in Cost Center master data.

In the case of BAPI, BAPI is getting the business area from substitution and during the function call 'K_COBL_CHECK' inside BAPI, the business area of G/L line item and business are from cost center is not matching.

But when the same is entered through FB50, its getting the business area from cost center and business area. Is there any SAP Note to solve this issue. Is any one aware of this.

Thanks

Vishnu

3 REPLIES 3
Read only

Former Member
0 Likes
1,089

What happens if you pass the business area to BAPI Interface? Do you still get the error?

Read only

0 Likes
1,089

If I pass the business area same as that maintained in the cost center master then the BAPI goes well. The substitution rule defined is if the business area is blank then get a default value.

Thanks

Vishnu

Read only

0 Likes
1,089

And if business area is blank (not maintained in cost center master) and you don't pass anything, BAPI works correctly right? If you could determine the business area , why not pass it to BAPI?

BAPI sometimes do have minor differences from online transactions.. I don't see it as a big issue.. you can look for OSS notes or see how others handled it...