2010 Sep 29 4:21 AM
Hi,
We are using a substitution to populate the profit centre for the AP line item from profit centre of the G/L line item while posting the FI documents. This substitution is defined at the "Complete document" node in the transaction GGB1. The pre-requisites for this substitution are document type and the company code. This substitution is working when the FI document is posted manually using the t.code fb60 or f-02 and also when posting through BDCs on these transactions.
One of my program was using a BDC of FB60 and was calling this substitution. Now i changed the BDC to BAPI_ACC_DOCUMENT_POST and the substitution is not triggered and the profit centre is not copied from the G/L line items. The same document while posting through the transaction FB60 is getting the profit centre from the G/L line item through the substitution. The pre-requisites are satisfied when calling through the BAPI also but still the substitution is not called.
Is there any restriction on the substitution for BAPIs?
Thanks in advance.
Regards,
Immanuel.
2010 Sep 29 4:47 AM
Howdy,
The BAPI doesn't call the substitutions - you can call the substitutions manually, eg function module FI_SUBSTITUTION_HEADER.
Cheers
Alex
Howdy,
The BAPI doesn't call the substitutions - you can call the substitutions manually, eg function module FI_SUBSTITUTION_HEADER.
Cheers
Alex
2010 Sep 29 4:47 AM
Howdy,
The BAPI doesn't call the substitutions - you can call the substitutions manually, eg function module FI_SUBSTITUTION_HEADER.
Cheers
Alex
2010 Sep 29 5:15 AM
Hi Alex,
Thanks for your reply.
There are other substitutions which are defined at the "Line item" level in GGB1 and these substitutions are triggered when the document is posted using BAPI_ACC_DOCUMENT_POST. The control stops at the breakpoint in the substitution when the document is posted via BAPI.
Is it because my substitution is defined at the "Complete document" level that it is not called?
Regards,
Immanuel.
2010 Oct 13 7:59 AM
2010 Oct 13 8:05 PM
Hi
Do you mind sharing the solution you found? I am having a similar problem.
Thanks
Floyd
2010 Oct 14 7:59 AM
Hi Floyd,
My requirement helped me. In my substitution there were a lot of logic to derive the profit centre based on different scenarios. From these logics i separated the logic required to derive the profit centre for my requirement and implemented that logic in my program itself. Then I passed this profit centre through the EXTENSION1 table and filled it in the BTE for the BAPI.
I am not sure if this will work for you.
Regards,
Immanuel.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |