‎2010 Nov 10 5:35 PM
Hi Friends,
My Requirement is to upload data using transaction F-02 (Enter GL Account posting) with DA document type.
For this, the suitable BAPI I have found is BAPI_ACC_DOCUMENT_POST. But for DA document posting we need to maintain the posting keys 40 and 14. But the bapi BAPI_ACC_DOCUMENT_POST does not have posting key field.
I need to add the posting key field to this bapi by copying standard bapi to customer namespace. Please give me some ideas of how to proceed in this regard.
As an alternative, I tried with BDC, but in the FBL5n transaction, it is not going to make correct entry. Then I concluded that BAPI is the correct solution.
Thanks
Murali
‎2010 Nov 10 7:05 PM
Posting keys are populated by the EXTENSION1 structure - see OSS note 487722 or the documentation for BTE RWBAPI01. There should be examples on this forum as well...
‎2010 Nov 10 7:16 PM
Hi
The accounting BAPI, so BAPI_ACC_DOCUMENT_POST too, set the posting key automatically:
Vendor: 21/31
Customer: 01/11
G/L: 40/50
The posting key depends on the sign of the amount
Now If it needs another key it should set the table T030B for a particular operation key (KTOSL)
But I've never tried that solution
That BAPI calls 2 exit:
The BTE RWBAPI01
The BADI ACC_DOCUMENT (method CHANGE)
You can try to use one of them
Max