2011 Feb 24 9:34 PM
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
2011 Feb 24 10:19 PM
What happens if you pass the business area to BAPI Interface? Do you still get the error?
2011 Feb 24 10:37 PM
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
2011 Feb 24 10:55 PM
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...
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |